Kubernetes - Health Checks and Probes
Which of the following is the correct YAML snippet to define a liveness probe using HTTP GET on path
/health at port 8080?/health at port 8080?httpGet with path starting with a slash and port as a number./health and port 8080. livenessProbe:
exec:
command: ["curl", "/health"]
initialDelaySeconds: 5
periodSeconds: 10 uses exec with curl incorrectly. livenessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 5
periodSeconds: 10 uses tcpSocket which is different. livenessProbe:
httpGet:
path: health
port: 8080
initialDelaySeconds: 5
periodSeconds: 10 misses the leading slash in path.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions