HTTP Probe Configuration in Kubernetes
📖 Scenario: You are deploying a web application in Kubernetes. To ensure your app is running and healthy, you need to configure an HTTP readiness probe. This probe will check if the app is ready to serve traffic by sending HTTP requests to a specific path.
🎯 Goal: Configure an HTTP readiness probe in a Kubernetes Pod manifest that checks the /health endpoint on port 8080.
📋 What You'll Learn
Create a Pod manifest with a container named
webapp using the image nginx:latest.Add an HTTP readiness probe to the container that sends requests to
/health on port 8080.Set the probe's initial delay to
5 seconds and period to 10 seconds.Print the final Pod manifest YAML.
💡 Why This Matters
🌍 Real World
HTTP probes help Kubernetes know when your app is ready to receive traffic and when it needs restarting, improving reliability.
💼 Career
Configuring readiness and liveness probes is a common task for DevOps engineers and site reliability engineers managing Kubernetes workloads.
Progress0 / 4 steps