Kubernetes API server liveness
187-k8s-apiserver-livez.yaml
Kubernetes
What this example does
API server liveness is not equivalent to full cluster health.
Checks and behavior
- API server liveness is not equivalent to full cluster health.
Example hostnames and endpoints must be adapted. API-server probes require explicitly scoped RBAC; no cluster-admin credentials.
YAML configuration
# Kubernetes operator example. Replace sample names/addresses before use.
name: Kubernetes API server liveness
url: https://kubernetes.default.svc/livez
metadata:
owner: platform-operations
environment: production
runbook: https://ipsonic.com/probe/kubernetes.html
tags: [kubernetes, control-plane]
timeouts:
connect: 3
response: 6
total: 12
tls:
verify: true
ca_file_env: IPSONIC_K8S_CA_FILE
auth:
type: bearer
token_env: IPSONIC_K8S_TOKEN
tests:
status:
allow: [200]
monitoring:
output: nagios
on_failure: critical