Interview Prep/Kubernetes/Scheduling, Resources & Autoscaling

What are liveness, readiness and startup probes?

BeginnerConceptScheduling, Resources & Autoscaling
Answer

Liveness failing makes the kubelet restart the container; readiness failing removes the Pod from Service endpoints without restarting; startup disables the other two until the app has started, protecting slow-booting apps. Probe types: httpGet, tcpSocket, exec and grpc.

readinessProbe:
  httpGet: { path: /ready, port: 8080 }
  periodSeconds: 5
  failureThreshold: 3
All Kubernetes questions Roadmap: Kubernetes core

More on Scheduling, Resources & Autoscaling