What do you monitor for certificate expiry on Kubernetes?
IntermediateProductionKubernetes & Multi-Cluster Observability
Answer
Expired certs cause total outages with zero warning in normal metrics, so we alert weeks ahead:
- Ingress / public endpoints: blackbox exporter
probe_ssl_earliest_cert_expiry - time() < 21 * 86400. - cert-manager:
certmanager_certificate_expiration_timestamp_secondsandcertmanager_certificate_ready_status{condition="False"}to catch renewals that silently fail. - Kubelet client certs:
kubelet_certificate_manager_client_ttl_seconds(self-managed clusters). - Clients hitting the API server with near-expiry certs:
apiserver_client_certificate_expiration_seconds(the mixin'sKubeClientCertificateExpiration).
Ticket at 21 days, page at 7 days. A failed renewal is the real signal; the expiry date is the backstop.
More on Kubernetes & Multi-Cluster Observability
Which `kube-prometheus-stack` values do you always change before going to production?IntermediateOn a managed control plane (EKS, GKE, AKS), which default components and rules do you turn off?IntermediateOne Prometheus per cluster or one central Prometheus scraping every cluster?AdvancedHow do you make sure every series can be traced back to its cluster and environment?BeginnerKarpenter replaces nodes every few hours. How do you keep monitoring cheap and useful?AdvancedHow do you use metrics to right-size requests and limits across the cluster?Intermediate