A readiness check determines whether a Pod should receive traffic from a Service. When the check repeatedly fails, Kubernetes marks the Pod unready and removes its IP address from the Service endpoint list. section 15.3
Configure a container probe using one of these checks:
- An HTTP request checks a response code, such as GET /healthz. section 15.3
- A TCP check verifies that the application is listening on a port. section 15.3
- A custom command runs a script containing multiple tests. section 15.3
HTTP readiness probe
Add readinessProbe under the container specification: readinessProbe: httpGet: path: /healthz, port: http; periodSeconds: 5. Apply the updated Deployment and watch Pod status with kubectl get po -l app=numbers -o wide -w.






