Questions tagged [readinessprobe]

114 questions
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
0 answers

Make a kubernetes pod ready after delay

I want to run a bash script inside a pod which takes 20 sec. to complete. I want the pod to be ready and be added to service endpoint only after that script finishes. How can i do that ?
sap
  • 234
  • 5
  • 16
1
vote
1 answer

Do Kubernetes http probes follow redirects?

According to the documentation: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ Any code greater than or equal to 200 and less than 400 indicates success. Any other code indicates failure. so…
9ilsdx 9rvj 0lo
  • 7,955
  • 10
  • 38
  • 77
1
vote
1 answer

How to redirect user requests to another deployment in Kubernetes?

I have the following scenario, I have two deployments on Kubernetes, my first deployment needs to be shut down due to some issue and user requests need to route to the second deployment and then the first deployment will shut down, once the second…
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

"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

Kubernetes: Readiness Check with httpGet

I am quite confused about readiness probe. Suppose I use httpGet with /health as the probing endpoint. Once the readiness check returns 500, the server will stop serving traffic. Then how can the /health endpoint work? In other words, once a…
Brian Shih
  • 301
  • 1
  • 8
1
vote
2 answers

How to connect http response to readiness and liveness probes

I try to restart the pod when an endpoint returns an HTTP 500 on the /health endpoint. The service, probe-pod, should never send traffic to the pod while it is failing. The application needs to has an endpoint /start, which will indicate if it can…
O.Man
  • 585
  • 2
  • 9
  • 20
1
vote
1 answer

Restarting statefulset pods quickly without affecting readiness check

We have a statefulset that we want to have minimum downtime (like any other statefulset out there I suppose), but the pod gets stuck at "terminating" state since the readiness probe failure threshold is 5 (adds a 5s downtime during "Terminating"…
1
vote
1 answer

Readiness Probe and Apache Common Http Client

I have simple OpenShift setup with a Service configured with 2 backend PODS. The PODS have its READINESS Probe configured. The Service is exposed via NodePort. All these configuration are fine it is working as expected. Once the readiness probes…
1
vote
1 answer

Kubernetes Readiness Probe in multi-tenant system

I am designing a system with a single kubernetes deployment for multiple tenants, but there are multiple databases, queues etc. per customer. Anything stateless is shared, and anything with state is separate for each tenant. Based on the request…
Narayana
  • 2,654
  • 3
  • 32
  • 32
1
vote
4 answers

Why kubernetes reports "readiness probe failed" along with "liveness probe failed"

I have a working Kubernetes deployment of my application. --- apiVersion: apps/v1 kind: Deployment metadata: name: my-app spec: ... template: ... spec: containers: - name: my-app image: my-image ... …
Maksim Sorokin
  • 2,334
  • 3
  • 34
  • 61
1
vote
2 answers

Readiness Probe does not allow access to an internal kubernetes service while pod is not ready

Readiness Probe keeps the application in at a non-ready state. While being in this state the application cannot connect to any kubernetes service. I'm using Ubuntu 18 for both master and nodes for my kubernetes cluster. (The problem still appeared…
Nicolas
  • 328
  • 2
  • 10
1
vote
1 answer

Kubernetes - Readiness probe not working for deployment

Can someone please tell what is the issue with my yaml file for deployment. When I remove readiness probe, I can see my deplyoment in kubectl get deployments as available. But with readiness probe, it remains unavailable as below. NAME …
1
vote
2 answers

Readiness-Probe another Service on boot-up of Pod

On my Kubernetes Setup, i have 2 Services - A and B. Service B is dependent on Service A being fully started through. I would now like to set a TCP Readiness-Probe in Pods of Service B, so they test if any Pod of Service A is fully operating. the…
tom-tr
  • 13
  • 3