Posts

Showing posts with the label Liveness probes

Kubernetes Probes: Keeping Your Containerised Applications Healthy

Image
  In the world of Kubernetes, probes play a vital role in maintaining the health and responsiveness of your containerised applications. These probes act as health checks, constantly monitoring the state of your containers and ensuring they are ready to serve traffic or need a restart. Let’s explore three types of probes —   Startup, Readiness, and Liveness   — and how they contribute to a resilient Kubernetes environment. Startup Probe: Ensuring a Smooth Beginning The Startup Probe is like a watchful guardian, ensuring that your container has successfully initialized and is ready for action. This probe is particularly useful for containers that require additional setup time or perform complex initialization tasks. It runs only once at the start of the container’s lifecycle, making sure everything is in order before moving forward. startupProbe: exec: command: - cat - /app/app.js initialDelaySeconds: 5 peri