Hands-on task
Readiness probe
The Kubernetes cluster in this sandbox (kubectl is already configured) has a ConfigMap web-conf with an nginx config in which the /healthz path answers ok. /root/probes.yaml holds a Deployment web (image nginx:1.27-alpine, config mounted from web-conf) with no readiness probe. Open the file in the Editor tab and give the container a readinessProbe — an HTTP GET on the path /healthz, port 80. Then apply the manifest to the cluster: the pod must become ready, which means the probe really passes.
- kubernetes
- readinessprobe
- healthcheck
- yaml
- yq
- kubectl apply