0
0
Kubernetesdevops~5 mins

HTTP probe configuration in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an HTTP readiness probe in Kubernetes?
An HTTP readiness probe checks if a container is ready to accept traffic by sending an HTTP request to a specified endpoint. If the probe succeeds, Kubernetes routes traffic to the container.
Click to reveal answer
beginner
What fields are essential to configure an HTTP liveness probe in a Pod spec?
Key fields include httpGet (with path and port), initialDelaySeconds, periodSeconds, and timeoutSeconds. These define how Kubernetes checks if the container is alive.
Click to reveal answer
beginner
How does Kubernetes react if an HTTP liveness probe fails repeatedly?
If the liveness probe fails multiple times, Kubernetes restarts the container to try to fix the problem and keep the application healthy.
Click to reveal answer
intermediate
What is the difference between readiness and liveness probes using HTTP?
Readiness probes check if the app is ready to serve traffic, while liveness probes check if the app is alive and should be restarted if not responding.
Click to reveal answer
beginner
Show a simple example of an HTTP readiness probe configuration in a Kubernetes Pod spec.
Example:<br>
readinessProbe:
  httpGet:
    path: /health
    port: 8080
  initialDelaySeconds: 5
  periodSeconds: 10
Click to reveal answer
What does the httpGet field specify in an HTTP probe?
AThe container image to use
BThe command to run inside the container
CThe TCP port to open
DThe HTTP path and port to check
What happens if a readiness probe fails?
AKubernetes stops sending traffic to the container
BKubernetes restarts the container immediately
CNothing happens
DThe pod is deleted
Which field controls how long Kubernetes waits before starting probes?
AtimeoutSeconds
BperiodSeconds
CinitialDelaySeconds
DfailureThreshold
What is the default protocol used in an HTTP probe?
AHTTPS
BHTTP
CTCP
DUDP
If an HTTP liveness probe fails, what is Kubernetes' typical response?
ARestart the container
BStop the pod permanently
CIgnore the failure
DSend an alert only
Explain how to configure an HTTP readiness probe in a Kubernetes Pod and why it is important.
Think about how Kubernetes knows when to send traffic to your app.
You got /3 concepts.
    Describe the difference between HTTP liveness and readiness probes and their effects on container lifecycle.
    One decides if the app gets traffic, the other decides if the app needs restarting.
    You got /3 concepts.