Kubernetes client certificate expires next week warning
>>>
apiserver_client_certificate_expiration_seconds_count
{job="apiserver"} > 0 and
histogram_quantile
(0.01, sum by (job, le) (
rate
(
apiserver_client_certificate_expiration_seconds_bucket
{job="apiserver"}[5m]))) < 7*24*60*60
The rule first ensures that at least one client‑certificate metric is being reported (apiserver_client_certificate_expiration_seconds_count{job="apiserver"} > 0). It then computes the 1 % low‑percentile of the certificates' remaining lifetime over the past 5 minutes (histogram_quantile(0.01, …)) and fires if that value is under one week (< 7*24*60*60), indicating a certificate will expire within the next week.
Exporters Used
Related Alerts
Kubernetes API client errors
Kubernetes API server errors
Kubernetes API server latency
Kubernetes Container oom killer
Kubernetes CronJob suspended
Kubernetes CronJob too long
Kubernetes DaemonSet misscheduled
Kubernetes DaemonSet rollout stuck
Kubernetes Deployment generation mismatch
Kubernetes Deployment replicas mismatch
Kubernetes HPA metrics unavailability
Kubernetes HPA scale inability
Kubernetes HPA scale maximum
Kubernetes HPA underutilized
Kubernetes Job failed
Kubernetes Job not starting
Kubernetes Job slow completion
Kubernetes Node disk pressure
Kubernetes Node memory pressure
Kubernetes Node network unavailable
Kubernetes Node not ready
Kubernetes Node out of pod capacity
Kubernetes Node scheduling disabled
Kubernetes PersistentVolume error
Kubernetes PersistentVolumeClaim pending
Kubernetes Pod not healthy
Kubernetes ReplicaSet replicas mismatch
Kubernetes StatefulSet down
Kubernetes StatefulSet generation mismatch
Kubernetes StatefulSet replicas mismatch
Kubernetes StatefulSet update not rolled out
Kubernetes Volume full in four days
Kubernetes Volume out of disk space
Kubernetes client certificate expires soon
Kubernetes pod crash looping