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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What kind of Liveness probes exist?

A
  • HTTP Tests against URL
  • TCP Test for socket
  • exec command to perform certain test
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly