Questions tagged [readinessprobe]

114 questions
1
vote
2 answers

Should i create a API for readinessprobe to work kubernetes

I am trying to create a RollingUpdate and trying to use below code to see if pod came up or not. Should i create explicit API path like /healthz in my application so that kubernetes pings it and gets 200 status back or else its internal url for…
Hacker
  • 7,798
  • 19
  • 84
  • 154
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

Task Cancelled Exception from SQL Server Readiness Health Check Endpoint during POD restart

I am encountering a persistent issue in our system where we receive a "Task Cancelled" exception from the SQL Server and Service Readiness Health-Check Endpoint during POD restarts. Please note we have implemented Health-checks using…
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
0
votes
1 answer

Spring Boot livenessState: DOWN and readinessState: OUT_OF_SERVICE even if application is running fine

i'm developing/running a SpringBoot App on Kubernetes 1.24, which i'm also using to learn several techniques with mostly using WebClient and with my newest attempt, also sending E-Mails with JavaMailSender etc. Lately i was updating a few parts in…
0
votes
1 answer

Traffic is getting send to unready pod in kubernetes

We have added readiness probe and the container is in unready state until it is fully loaded but in case of horizontal autoscaling a new pod which is in unready state starts getting traffic due to which request are failing. We are using nginx…
0
votes
2 answers

How to define a readiness probe on a container for checking another containers health in the same pod?

I have a Deployment object with Container A and Container B in OpenShift. The requirement here is that whenever container B exits, container A should follow or otherwise the entire pod should be replaced. Is there any way to achieve this? This is my…
0
votes
1 answer

Why startup probe is ignored?

I deployed WAS to Kubernetes(version 1.16). I used all three types of probes. The Liveness probe is set to check if the WAS process is running and if all open ports are listening. The Readiness probe calls the healthcheck api of WAS via http get.…
0
votes
0 answers

What has caused Readiness probe failed error, after successfully deployed on Jenkins?

readinessProbe: httpGet: port: 8080 path: actuator/health/readiness initialDelaySeconds: 120 failureThreshold: 5 periodSeconds: 60 livenessProbe: httpGet: port: 8080 path: actuator/health/liveness initialDelaySeconds: 300 failureThreshold:…
0
votes
2 answers

Kubernetes pod's liveness probe failing without any error message

I'm running pods in EKS and in the pods there 3 containers. One of the container restarting in every 5 min with message "Liveness probe failed:". In Liveness probes there is no error message why liveness probe failed. Here is the output of the pod…
0
votes
0 answers

Readiness and liveness probes for application with dependencies (DB, Celery, RabbitMQ)

Imagine there is a Django application. The application dependencies: DB, Celery (workers, beat), RabbitMQ (as a broker for Celery). If with liveness probe it is more or less clear (if the liveness probe did not pass, it restarts pod), then with…
0
votes
0 answers

What is reactive analog of ReadinessStateHealthIndicator?

To customize spring boot actuator for /actuator/health we can implement our own HealthIndicator To customize spring boot actuator for /actuator/healthin reactive app we can implement our own ReactiveHealthIndicator To customize spring boot actuator…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
1 answer

Kubernetes - What happens if startupProbe runs beyond periodSeconds

I have a Deployment which runs a simple apache server. I want to execute some commands after the service is up. I am not quite sure how much time the post action commands going to take. I have "timeoutSeconds" set as more than…
0
votes
1 answer

My Spring custom HealthIndicator not called when using actuator liveness and readiness endpoints

Our Spring custom HealthIndicator bean's health() method is not being called when we use /actuator/health/readiness (e.g. testing it from postman: http://localhost:9743/actuator/health/readiness) or /actuator/health/liveness. When we use…
0
votes
1 answer

How to test one service in another's readiness probe?

I have to implement readiness probe for every service in my spring boot app. Every of my services in application expose liveness and readiness endpoints. Some of my services depends on others. The question is: How to check service A in readiness of…