Questions tagged [livenessprobe]
107 questions
1
vote
1 answer
Pods failing liveness and readiness when on a single node
I am building a Kubernetes cluster using kubeadm and have an issue with a single node.
The worker nodes are running with sub-interfacing and policy based routing, which work as intended; however, out of the 4 worker nodes, if pods are moved to one…

mgcdrd
- 66
- 3
1
vote
0 answers
Kubernetes readinessProbe Failed
Pod works normally and internal applications run normally when using only the livenessProbe.
Pod fails when you add with readinessProbe.
Pod runs normally when using only the livenessProbe.
I want to use the readinessProbe with it, but it keeps…

JoDev
- 11
- 3
1
vote
0 answers
Openshift Liveness Probe with Exec command not working without any error
My Open shift Liveness Probe with Exec command is not working , its not giving any error as well means its considering it as success. It's checking cert expiry days from current date and if condition in "if statement" is satisfied then Probe should…

DevOps_Enthusiast
- 11
- 2
1
vote
1 answer
Availability with Kubernetes
We run an internal a healthcheck of the service every 5 seconds. And we run Kubernetes liveness probes every 1 second. So in the worst scenario the Kubernetes loadbalancer has up-to-date information every 6 seconds.
My question is what happens when…

Doru Popescu
- 45
- 4
1
vote
2 answers
Do the # in front of success and failure in Kubectl pod Describe (Kubernetes) mean something?
Does the # in front of success and failure in a Kubectl describe (refer picture) meant to represent something?
All of the elements in each of those probes represent a config element for the probe but success and failure are prefixed with a #. I…

Manglu
- 10,744
- 12
- 44
- 57
1
vote
0 answers
Do Something after a health check call on Kubernetes Pod
I have a spring boot microservice running on K8s. I have configured liveness and readiness probes in my yaml file.
For my specific case I want to save a record in database with timestamps whenever the probes get executed in Kubernetes. How can I do…

p P
- 11
- 1
1
vote
1 answer
Proper Usage of Kubernetes Probes
TL;DR is the last paragraph, but the rest is here for context if that's not clear enough.
I have a K8s pod running a PHP application. It's split up into an FPM container, and an Nginx container. The liveness and readiness checks are set up to check…

Afraz
- 795
- 1
- 6
- 20
1
vote
1 answer
Liveness/Readiness probe failure for bitnami/zookeeper and bitnami/kafka image
I am trying to add liveness and readinessprobe for zookeeper using bitnami/zookeeper image, but the pod creation is failing, please let me know what values need to be added in liveness and readiness probe.
Below is the value that I have tried…

SVD
- 385
- 4
- 24
1
vote
2 answers
how to replace or find correct path for kustomize
I have deployment and I want to replace "path" value in liveness probe section. What is correct path for this in kustomize?
- patch: |-
- op: replace
path: ??????????
value:
https://xyz.staging.something.eu/ping
…

a11eksandar
- 145
- 2
- 10
1
vote
0 answers
Is there a way to limit the number of restarts of pod?
I have implemented liveness probe in my kubernetes deployment file. as of now it attempts restart infinite number of times.
Is there a way to limit this number of restart attempts?

Aman Deep
- 51
- 6
1
vote
2 answers
When does a Pod get destroyed?
Pod lifecycle is managed by Kubelet in data plane.
As per the definition: If the liveness probe fails, the kubelet kills the container
Pod is just a container with dedicated network namespace & IPC namespace with a sandbox container.
Say, if the…

overexchange
- 15,768
- 30
- 152
- 347
1
vote
1 answer
When is liveness probe retried in k8s?
I am trying to understand the retry behavior for liveness probe, its not clear from documentation.
I will to illustrate with an example. Consider the following spec for liveness probe
periodSeconds: 60
timeoutSeconds: 15
failureThreshold: 3
Lets…

Aditya Dara
- 13
- 3
1
vote
2 answers
Kubernetes Command Based Liveness Probes
I have a file in /tmp/healthy as mentioned in official documentation and YAML is available
livenessProbe:
exec:
command:
- cat
- /tmp/healthy
But in my case file always be here and it will contain message like Success or Failure
It is…

Umair
- 119
- 13
1
vote
1 answer
kubernetes liveness probe failed but manual probe succeeded
I have set up a liveness probe for a long running application in a pod. It failed a few times within a day causing the pod to be restarted a few times. There is no readiness probe.
livenessProbe:
httpGet:
path: /
port: http
scheme:…

kakarukeys
- 21,481
- 10
- 35
- 48
1
vote
1 answer
Kubernetes liveness probe httpGet schema not working correctly
I am deploying some web app on kubernetes and I want to set liveness probe for this application.
When I configure my deployment with liveness probe, kubelet start health check. I was defined httpGet with scheme "HTTP" parameter but kubelet using…

Ömer
- 43
- 1
- 7