Startup Probe Concept in Kubernetes
📖 Scenario: You are deploying a web application in Kubernetes. Sometimes the app takes time to start before it can respond to health checks. To avoid Kubernetes killing the pod too early, you will use a startupProbe.
🎯 Goal: You will create a Kubernetes pod manifest with a startupProbe that checks the app's readiness by sending an HTTP GET request to /healthz on port 8080. You will configure the probe to wait longer before failing, allowing the app to start properly.
📋 What You'll Learn
Create a pod manifest named
web-app with a container named web-container running image nginx.Add a
startupProbe that sends an HTTP GET request to /healthz on port 8080.Set
failureThreshold to 10 and periodSeconds to 5 in the startupProbe.Print the final pod manifest YAML.
💡 Why This Matters
🌍 Real World
Startup probes are used in Kubernetes to handle applications that take time to start. This prevents Kubernetes from killing pods too early during startup.
💼 Career
Understanding startup probes is important for DevOps roles managing Kubernetes clusters to ensure application stability and proper health monitoring.
Progress0 / 4 steps