Questions tagged [readinessprobe]

114 questions
3
votes
1 answer

Why is the "readinessState" detail of /health different from the readiness probe status?

In Spring-Boot 2.4, I have this problem with the Actuator health endpoint and readiness probe. When one of my custom key components is down, the /health/readiness endpoint says DOWN and the /health endpoint too, but the readinessState detail of…
AdrienW
  • 3,092
  • 6
  • 29
  • 59
3
votes
1 answer

What should a kubernetes readiness check check

I understand how to set up a readiness probe in kubernetes, but are there any best practices about what the microservice should actually check when the readiness probe is called? Two specific examples: A microservice that fronts a db where without…
user2133814
  • 2,431
  • 1
  • 24
  • 34
3
votes
1 answer

Kubernetes custom action when readiness probe fails

I am currently trying to scale automatically a deployment when the readiness probe hass failed for its pods currently running. A pod is IDLE until a POST request is sent to it and while it is processing the request, it is not answering any other…
Gabi
  • 65
  • 2
  • 5
3
votes
2 answers

How does a Liveness/Readiness probe communicate with a pod?

I am very new to k8s so apologies if the question doesn't make sense or is incorrect/stupid. I have a liveness probe configured for my pod definition which just hits a health API and checks it's response status to test for the liveness of the…
Marco Polo
  • 113
  • 1
  • 6
3
votes
2 answers

Kubernetes - run job after pod status is ready

I am basically looking for mechanics similair to init containers with a caveat, that I want it to run after pod is ready (responds to readinessProbe for instance). Are there any hooks that can be applied to readinessProbe, so that it can fire a job…
Łukasz
  • 1,980
  • 6
  • 32
  • 52
2
votes
2 answers

k8s readiness probes working in GKE, not in Microk8s (on MacOS)

I have a Kong deployment. apiVersion: apps/v1 kind: Deployment metadata: name: local-test-kong labels: app: local-test-kong spec: replicas: 1 selector: matchLabels: app: local-test-kong strategy: rollingUpdate: …
Rakib
  • 12,376
  • 16
  • 77
  • 113
2
votes
1 answer

Kubernetes readiness probe fails

I wrote a readiness_probe for my pod by using a bash script. Readiness probe failed with Reason: Unhealthy but when I manually get in to the pod and run this command /bin/bash -c health=$(curl -s -o /dev/null --write-out "%{http_code}"…
batupaksoy
  • 31
  • 3
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

How to test a file exists from a Kubernetes probe?

I have a sidecar container in a MySQL Pod which will use the MySQL socket file in order to access the database. I would like to be sure MySQL has successfully started and therefore have created the socket file before than this sidecar container…
ZedTuX
  • 2,859
  • 3
  • 28
  • 58
2
votes
0 answers

Spring boot recover from readiness or liveness states

I am experimenting with K8s and the spring boot liveness and readiness probes. One thing I cannot seem to understand and fix properly is how is my spring boot application supposed to recover from a failed state? I have a simple scenario - my app is…
lapadets
  • 1,067
  • 10
  • 38
2
votes
3 answers

pod readinessprobe issue with database and container

I have an application deployed to kubernetes. Here is techstack: Java 11, Spring Boot 2.3.x or 2.5.x, using hikari 3.x or 4.x Using spring actuator to do healthcheck. Here is liveness and readiness configuration within application.yaml: endpoint: …
Shivraj
  • 462
  • 2
  • 9
  • 27
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

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 verify certificates for Liveness probe configured to https?

I'm using readinessProbe on my container and configured it work on HTTPS with scheme attribute. My server expects the get the certificates. how can I configure the readiness probe to support HTTPS with certificates exchange? I don't want it to skip…
Mary1
  • 320
  • 4
  • 13
2
votes
1 answer

istio new installation causing readinees probe failed

I am installing istio version 1.1.5 on Azure kubernetes services. i have followed the installation procedure mentioned in this istio site isito installation I have installed istio-demo installation pack. after successful installation,few resources…
pappu_kutty
  • 2,378
  • 8
  • 49
  • 93