Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
closes #225 (#278)
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo F <leonardofe@pm.me>
  • Loading branch information
Valeyard1 authored Oct 15, 2020
1 parent d131c34 commit a2c7ce0
Showing 1 changed file with 43 additions and 3 deletions.
46 changes: 43 additions & 3 deletions kubernetes/show/health-status/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,51 @@
# Kubernetes show health-status

## command
## Premisses

- Set kubeconfig credentials (`rit set credentials`)

## Command

- Prompt

```bash
rit kubernetes show health-status
```

## description
- Docker

```bash
rit kubernetes show health-status --docker
```

- Stdin

```bash
echo '{"namespace": "kube-system", "pod_part_name": "coredns"}' | rit kubernetes
show health-status --stdin
```

- Stdin + docker

```bash
echo '{"namespace": "kube-system", "pod_part_name": "coredns"}' | rit kubernetes
show health-status --stdin --docker
```

## Description

This _health-status_ command checks if the container is running as expected.

How does ritchie do it? The command will fetch the port which is configured in
the livenessProbe of the container. If the container doesn't have it configured,
the command will fail. If it does have it, ritchie will make a port forward from
the container to your machine, and test if it can connect to it.

The user has to inform 2 different kinds of inputs:

- the namespace that the pod is running
- the name of the pod (or at least a part of it)

## Demonstration

This formula check health status of kubernets
[![asciicast](https://asciinema.org/a/365442.svg)](https://asciinema.org/a/365442)

0 comments on commit a2c7ce0

Please sign in to comment.