Skip to content

k8s-tls-watcher pod to check and alert for the expired certificates

License

Notifications You must be signed in to change notification settings

pratap-bhaskar/k8s-tls-watcher

Repository files navigation

Kubernetes TLS Watcher

An small utility used to check for the expiry of the tls certificates in the kubernetes cluster. Certificates are added in to the cluster as a secret which could be later mounted using ingresses (either through istio ingressgateway or nginx).

The container checks for all the kubernetes secrets of type kubernetes.io/tls, reads the public key for those secrets and finds out the time its to expire. This information is then presented as metrics for prometheus to scrape at 3031 port.

Metric : tls_certs_expiry_in_days with labels domain, secretname, namespace

Deploying on your cluster

Deploy folder contains the neccessary components to deploy the tls watcher to your cluster. I have used the pod monitor and prometheus rules.

As a prerequisite you would need Prometheus-Operator in your cluster.

kubectl apply -k deploy

About

k8s-tls-watcher pod to check and alert for the expired certificates

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published