Questions tagged [livenessprobe]

107 questions
3
votes
1 answer

How to negate exit code status to be used in Kubernetes livenessProbe?

How to negate exit code status to be used in Kubernetes livenessProbe? I'll be using the grep command and I would like to do below as a check. Return exit value 0, if grep has no hit Return exit value 1, if grep has a hit Since normally, grep will…
lemont80
  • 89
  • 2
  • 10
3
votes
1 answer

Mysql Kubernetes Deployment helm chart fails with readiness and liveness probe failed

I am new to stackoverflow, so pardon if I have not followed all rules for asking this question. So, I am using this helm chart: https://github.com/helm/charts/tree/master/stable/mysql for deploying mysql for our production env. Infact we have this…
3
votes
1 answer

Spring Boot 2.3 Liveness Probe feature fails in graceful shutdown

I'm testing the new feature graceful shutdown in Spring Boot 2.3 (server.shutdown=graceful and Tomcat Web server) with Kubernetes terminationGracePeriodSeconds field. When the graceful shutdown phase starts, new HTTP requests are rejected as…
3
votes
1 answer

Do Kubernetes liveness probes run in parallel with your application?

I have a pod running on Kubernetes for which I am designing a liveness probe. My application reads from a queue (via a loop which continually searches for new messages and executes other functions if it finds one) and is not exposed via HTTP, so I…
Lucy
  • 179
  • 1
  • 4
  • 14
3
votes
0 answers

Liveness probe failing but the endpoint is accessible from different pods

I'm trying to implement a simple liveness probe in my helm chart deployment template. Below is my liveness probe configuration. Spring boot /actuator/health endpoint is used as the health check endpoint. containers: - name: {{ .Release.Name…
2
votes
0 answers

Kubernetes: Liveness for apps deployed in liberty app server

As of today, our application has a health check endpoint that is used for liveness probe checks in k8s. Liberty is configured with 50 executor threads. If all the 50 executor threads are busy, the request would queue up and wait for an executor…
dinup24
  • 1,652
  • 3
  • 16
  • 26
2
votes
1 answer

How to add Kubernetes livenessprob and readinessprob to my .net core console application?

I have a simple consol application I want there is rabbitmq connection as a consumer and there is a database connection to SQL Server. Before Containarize the application. There is some commands I have implemented, For example if I enterned X the…
2
votes
1 answer

How to design readiness and livness probe for Angular application

I have an angular application which is deployed on apache container running on Kubernetes. I wanted to setup liveness and readiness probe for pods but I am out of ideas .Any help would be appreciated.
Ladu anand
  • 646
  • 2
  • 8
  • 30
2
votes
1 answer

Kubernetes startup probe skipped after container restart

Running on Kubernetes v1.20 I have a startup probe configured and a liveness probe. On the first start of the container, the startup probe is executed until the liveness probe takes over (as documented). However, it seems if the liveness probe fails…
2
votes
1 answer

Can you serve Kubernetes liveness endpoint with dedicated connections, that are available when regular connection pool gets exhausted?

When our PODs gets exhausted and could need some scaling up, Kubernetes confuses this exhaustion with death and restarts our POD:s. This has, of course, the opposite effect, the remaining POD:s gets even more load... So here comes my question, can…
Andreas L
  • 81
  • 1
  • 7
2
votes
1 answer

Liveness and Readiness probes failing in Kubernetes cluster- istio proxy sidecar injection is enabled in application

Below is the config for probes in my application helm chart {{- if .Values.endpoint.liveness }} livenessProbe: httpGet: host: localhost path: {{ .Values.endpoint.liveness | quote }} …
2
votes
1 answer

Kubernetes StatefulSets and livenessProbes

Liveness probes are supposed to trigger a restart of failed containers. Do they respect the default stateful set deployment and scaling guarantees. E.g. if the liveness probe fails at the same time for multiple pods within one and the same stateful…
2
votes
1 answer

Liveness Probe, Readiness Probe not called in expected duration

On GKE, I tried to use readiness probe/ liveness probe , and post alert using monitoring https://cloud.google.com/monitoring/alerts/using-alerting-ui as a test, I create a pod which has readiness probe/ liveness probe. Probe check failed everytime,…
2
votes
1 answer

How to use secret in probes authorization header on kubernetes?

I need to configure the probes in kubernetes. In my probes endpoints I use http and basic auth. Here is an example of my deployment.yml livenessProbe: httpGet: path: /actuator/health/liveness port: 8080 scheme: HTTP httpHeaders: - name:…
annaskwq
  • 43
  • 6
1
vote
1 answer

liveness probe to a redis service

I have a service that is dependent on a Redis cache which is running as a separate service. I have added probes to make sure my service doesn't come up before Redis is up. However, there are times when Redis gets restarted and when this happens, the…
sg1973
  • 91
  • 6