Docker and CI/CD · Middle · Question 31 of 75
Does Kubernetes use the Dockerfile HEALTHCHECK?
- 1Yes, it restarts pods when the healthcheck fails
- ✓Correct answer: No, it uses its own liveness and readiness probes
- 3Yes, but only for images built with BuildKit
Explanation
Kubernetes ignores the image healthcheck. Define probes in the pod spec so it knows when to route traffic and when to restart.