Kubernetes manifests · Workloads

Add health probes

Use readiness to control traffic and liveness to restart a stuck container.

readinessProbe:
  httpGet:
    path: /healthz
    port: 80
  initialDelaySeconds: 5
  periodSeconds: 10
livenessProbe:
  httpGet:
    path: /healthz
    port: 80
  initialDelaySeconds: 15

Official Kubernetes manifests documentation

More workloads commands

All workloads commands · Kubernetes manifests cheatsheet

Was this page helpful?