Observability - Liveness Probes Flashcards
1
Q
What problems do liveness probes solve?
A
- an application running in an container could be stuck because of a bug
- would still be shown as a ready container with traffic routed to it
- liveness probe can help
2
Q
What can liveness probes do?
A
- periodically test if the application within a container is acutally healthy
- if unhealthy, container is destroyed and recreated
3
Q
What kind of Liveness probes exist?
A
- HTTP Tests against URL
- TCP Test for socket
- exec command to perform certain test
4
Q
How are Liveness probes defined?
A
like to Readiness Probes:
~~~
…
spec:
containers:
- name:
livenessProbe:
httpGet:
path:
port:
////
tcpSocket:
port: 3306
////
exec:
command:
- cat
- /app/is_healthy
~~~
5
Q
A