This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |