Questions tagged [livenessprobe]

107 questions
1
vote
2 answers

Why pod goes to CrashLoopBackOff after restarting successfully few times due to liveliness probe failed

I've a simple spring boot application with following liveness probe: livenessProbe: httpGet: path: /health port: 56017 initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds:…
1
vote
1 answer

Kubernetes Liveness and readiness probes causing error logs 'http: TLS handshake error from 10.234.0.1:49330: EOF'

I am configuring readiness and liveness probes for my kuberenetes deployment. Here is how i added it: ports: - name: http containerPort: {{ .Values.service.internalPort }} protocol: TCP livenessProbe: tcpSocket: port:…
AnjK
  • 2,887
  • 7
  • 37
  • 64
1
vote
0 answers

Quarkus-kubernetes- How to avoid zombie process?

I have one application that is creating zombies processes each 1-2 seconds in my cluster. I'm using Process in my app, but only when I receive specific commands which is not the case right now. String command = "helm install release…
Sebastien Dionne
  • 757
  • 2
  • 19
  • 34
1
vote
1 answer

Why is a failed startupProbe not killing the Pod but allowing it to run?

I created a startup probe and made it so it would always fail. It should result in the pod getting killed and restarting, but it doesn't. I see one event of the startup probe failing (and no events after that), but the pods show as 1/1 Running. And…
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
1
vote
1 answer

Is that possible to use Http and Command livenessProbe in the same deployment?

I just have a doubt on whether is possible to run multiples liveness probes in the same deployment.yaml. For example: I already have a liveness probe that runs a python script that check my application like: livenessProbe: failureThreshold: 5 …
Arthur Ávila
  • 69
  • 2
  • 9
1
vote
1 answer

Choosing between TCP probe and HTTP probe for liveness and readiness in kubernetes

To keep things simple, I think its better to just check the TCP port for liveness and readiness in kubernetes as it doesn't require knowledge of health-check endpoint (HTTP path) but just the port number. Any guide on the disadvantages of just…
wings
  • 338
  • 4
  • 15
1
vote
1 answer

openshift livenessProbe logging only when status NOT 200

I have a simple livenessProbe http check: livenessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 20 timeoutSeconds: 30 failureThreshold: 3 successThreshold: 3 In my logs there are tons of /health…
Martin Fric
  • 726
  • 2
  • 9
  • 27
1
vote
1 answer

"Cannot resolve configuration property" in Spring boot when trying to configure probes

In my Spring Boot 2.3.3.RELEASE I'm tyring to enable to readiness and liveness endpoints. I added this to the yml file: But IntelliJ marks the values with "Cannot resolve configuration property" , and the endpoints are not accessible (e.g.…
riorio
  • 6,500
  • 7
  • 47
  • 100
1
vote
1 answer

curl and grep Command in liveness probes in kuberenetes

I am new to Kubernetes. I have written a deployment for my python console application. this app is subscribed to NATS (message queue). I have written command in liveness prob to check the connection_id(my app connection id) in the nats server is…
Sazzad
  • 773
  • 11
  • 22
0
votes
0 answers

Liveness probe failed: Get-http context deadline exceeded (Client.Timeout exceeded while awaiting headers)

After a DO update to 1.24.16-do.0 , my cloud-config pod encountered Liveness probe failed: Get- context deadline exceeded (Client.Timeout exceeded while awaiting headers). When i curl the ip, i'm getting a 137 error, as the pod is backing…
fipse
  • 15
  • 5
0
votes
0 answers

FastAPI - Kubernets Liveness fails once a different function runs more than 5 sec

I have a Python application of FastAPI based on Kubernetes. I have configured the liveness, readiness, and startup probes on Kubernetes to run my 'healthz' endpoint for testing if the application is fine or not. But if I am running a different heavy…
Amodon
  • 1
0
votes
2 answers

Shell command retrieving output of curl not working

I am trying to execute this command through a Kubernetes livenessProbe, and I don't think it's working as expected as I see that the probe has failed in the pod events log. This is the command: sh -c reply=$(curl -s -o /dev/null -w %{http_code}…
SS123
  • 3
  • 2
0
votes
0 answers

Is it possible to capture video/audio on the browser while ensuring it is a live feed?

My problem is that using basic HTML5 solutions do not guarantee the video is live, it can be uploaded from disk (pre-recorded) or a virtual camera can be used to send a fake feed. Is this even possible on the browser? I tried using HTML5 to capture…
RickiEme
  • 1
  • 1
0
votes
0 answers

HTTP HEAD request /error triggers automatically for a spring boot application with health check configured

I am having a spring boot application sample-microservice. My MS is deployed on OCP server, and also has health check configured with readiness and liveness probes. So, once the application starts up, I get below…
0
votes
0 answers

Delay of liveness probe relative to readiness probe

Is it best practice to set the liveness probes initialDelaySeconds_livenessProbe >= initialDelaySeconds_readinessProbe + periodSeconds_readinessProbe * timeoutSeconds_readinessProbe? Take for example the following readinessProbe: …
Stefan Bollmann
  • 640
  • 4
  • 12
  • 32