Questions tagged [livenessprobe]
107 questions
8
votes
3 answers
Liveness and readiness probe connection refused
I keep getting this error when I try to setup liveness & readiness prob for my awx_web container
Liveness probe failed: Get http://POD_IP:8052/: dial tcp POD_IP:8052: connect: connection refused
Liveness & Readiness section in my deployment for the…

Abderrahmane
- 385
- 2
- 3
- 14
7
votes
1 answer
k8s readiness and liveness probes failing even though the endpoints are working
I've got a Next.js app which has 2 simple readiness and liveness endpoints with the following implementation:
return res.status(200).send('OK');
I've created the endpoints as per the api routes docs. Also, I've got a /stats basePath as per the docs…

Milkncookiez
- 6,817
- 10
- 57
- 96
6
votes
3 answers
liveness and readiness probe for multiple containers in a pod
I would like to know if there is a possibility to apply liveness and readiness probe check to multiples containers in a pod or just for one container in a pod.
I did try checking with multiple containers but the probe check fails for container A and…

sandy
- 61
- 1
- 2
5
votes
3 answers
kubernetes liveness probe exec command environment variables in an if statement not working
I am having difficulty getting a kubernetes livenessProbe exec command to work with environment variables.
My goal is for the liveness probe to monitor memory usage on the pod as well as also perform an httpGet health check.
"If container memory…

david_beauchamp
- 161
- 1
- 7
5
votes
0 answers
Readiness probe gives out of service error
I have updated spring boot to 2.5.2 from 2.1.8.RELEASE. Before that liveness and readiness probe was fine. Now after updating the spring boot I have updated my application properties…

Fay007
- 2,707
- 3
- 28
- 58
5
votes
3 answers
Are Kubernetes liveness probe failures voluntary or involuntary disruptions?
I have an application deployed to Kubernetes that depends on an outside application. Sometimes the connection between these 2 goes to an invalid state, and that can only be fixed by restarting my application.
To do automatic restarts, I have…

roim
- 4,780
- 2
- 27
- 35
5
votes
1 answer
Kubernetes Health Check: timeoutSeconds exceeds periodSeconds
In Kubernetes Kubernetes Health Check Probes, what happens if timeoutSeconds exceeds periodSeconds? For example:
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3
When will the Pod…

h q
- 1,168
- 2
- 10
- 23
5
votes
2 answers
K8s liveness probe behavior when the pod contains more than one container?
Scenario: A K8S pod has more than one container and liveness/readiness probes are configured for each of the containers. Now if the liveness probe is succeeding on some containers and failing on few containers, what will k8s do.
will it restart…

samshers
- 1
- 6
- 37
- 84
5
votes
2 answers
How to define k8s liveness probe and readness probe for worker pod
I have a k8s cluster. Our service is queue based. Our pod subscribe to an event queue,fetch event and do tasks. So for this kind of service, how to define k8s liveness probe and readiness probe?

Ruoxuan.Wang
- 179
- 1
- 2
- 13
4
votes
1 answer
How to add readiness probe for snapshot-controller Deployment
I am trying to add livenessprobe for snapshot-controller. snapshot-controller deployment mentioned here to be specific. I tried to exec into controller pod to see what can be used for liveness probe. But not able to get into the pod. Has someone…

ambikanair
- 4,004
- 11
- 43
- 83
4
votes
1 answer
What happens when kubernetes liveness-probe return false?
What happens when Kubernetes liveness-probe returns false?
Does Kubernetes restart that pod immediately?

J.J. Beam
- 2,612
- 2
- 26
- 55
4
votes
1 answer
Is there a liveness probe in Kubernetes that can catch when a python container freezes?
I have a python program that runs an infinite loop, however, every once in a while the code freezes. No errors are raised or any other message that would alert me something's wrong. I was wondering if Kubernetes has any liveness probe that could…

boblerbob
- 149
- 3
- 9
3
votes
2 answers
How does the failureThreshold work in liveness & readiness probes? Does it have to be consecutive failures?
I'm unable to find any references other than this link that confirms that the failure has to be consecutive. https://github.com/kubernetes/website/issues/37414
Background: Our Java application is getting restarted every day because of liveness probe…

Raghu
- 909
- 7
- 23
3
votes
3 answers
k8s spring boot pod failing readiness and liveness probe
I have configured a spring-boot pod and configured the liveness and readiness probes.
When I start the pod, the describe command is showing the below output.
Events:
Type Reason Age From Message
---- …

zilcuanu
- 3,451
- 8
- 52
- 105
3
votes
2 answers
Kubernetes - How to read response body in livenessProbe of a container?
Below is the current configuration for livenessProbe:
livenessProbe:
httpGet:
path: /heartbeat
port: 8000
initialDelaySeconds: 2
timeoutSeconds: 2
periodSeconds: 8
failureThreshold:…

overexchange
- 15,768
- 30
- 152
- 347