Monitor the expiration date of certificates generated by kubeadm
You need these environment variables:
KUBE_DIR
- Kubernetes base directory (default: /etc/kubernetes/)POLL_INTERVAL
- How often (in seconds) to check certificate expiration (default: 60)METRICS_PORT
- Prometheus metrics port (default: 9598)
export KUBE_DIR=/etc/kubernetes/ && \
export POLL_INTERVAL=60 && \
export METRICS_PORT=9598
make all
to build binaries and create the docker image
make docker-run
to run the image
A makefile exists that will help with the following commands:
Compile and run with make run
Create binaries, upx pack and buld Docker image with make all
Run docker image with make docker-run
Push image to Docker hub with make docker-push