Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/psi-4ward/check_k8s_pod-ready
Kubernetes pod-readiness monitoring plugin
https://github.com/psi-4ward/check_k8s_pod-ready
Last synced: 22 days ago
JSON representation
Kubernetes pod-readiness monitoring plugin
- Host: GitHub
- URL: https://github.com/psi-4ward/check_k8s_pod-ready
- Owner: psi-4ward
- Created: 2020-01-22T13:44:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-22T13:49:08.000Z (almost 5 years ago)
- Last Synced: 2024-12-09T08:46:37.147Z (25 days ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kubernetes/OpenShift pod-readiness monitoring plugin
Check if all pods for a given namespace/app pass the readiness probe.
## Requirements
* bash
* [jq](https://stedolan.github.io/jq/)## Installation
1. `bash` and `jq` should be available in almost every linux distribution
2. Create a K8s ServiceAccount and aqquire a toke. See the [example](./k8s-service-account-example).## Usage
```bash
$ TOKEN=$(oc sa get-token icinga-ready-check -n kube-system)
$ ./check_k8s-readiness.sh -p my-project -a some-app -e 192.168.99.102:8443 -t $TOKEN
some-app-5-ffhcr is READY
ERROR: some-app-5-k9zd5 is CrashLoopBackOff$ ./check_k8s-readiness.sh -p my-project -a no-pods-exists -e 192.168.99.102:8443 -t $TOKEN
Error: No pods found for my-project/no-pods-exists.
```## Licence
MIT