Kubernetes API server readiness
186-k8s-apiserver-readyz.yaml
Kubernetes
What this example does
Control-plane readiness from inside a pod; requires a ServiceAccount token and cluster CA.
Checks and behavior
- Control-plane readiness from inside a pod; requires a ServiceAccount token and cluster CA.
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 readiness
url: https://kubernetes.default.svc/readyz
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