Questions tagged [kubernetes-health-check]
215 questions
3
votes
1 answer
Kubernetes rollout give 503 error when switching web pods
I'm running this command:
kubectl set image deployment/www-deployment VERSION_www=newImage
Works fine. But there's a 10 second window where the website is 503, and I'm a perfectionist.
How can I configure kubernetes to wait for the image to be…

Michael Cole
- 15,473
- 7
- 79
- 96
3
votes
2 answers
Backup/Recover Kubernetes' current state (Namespaces/Pods/Controllers/etc)
I would like to be able to get a description of my current state of the cluster so that in the future I would be able to recover from a failure. Aside from recreating all of the services from source/cli individually, what solutions are available?

townie
- 302
- 3
- 9
3
votes
1 answer
Is there any way we can add or remove a probe for deployment
Sometimes people create a deployment without liveniess/readiness probe. How can we patch a probe for that deployment.I try to use PATCH + "Content-Type:application/strategic-merge-patch+json" it doesn't work.
On the other hand, if we created a…

workhardcc
- 1,270
- 3
- 12
- 21
3
votes
0 answers
Google container engine health checks from service load balancer
I have a Network(Service) load balancer on GCP and a kubernetes cluster with a pod that serves traffic on 80,443. How can I create a successful health check so the load balancer marks the nodes healthy? I tried creating health check for port 80, 443…

Rohit Phoenix
- 31
- 1
3
votes
2 answers
How should I check the health of my go service in Kubernetes?
I'm running a service written in go in a pod in Kubernetes. The service doesn't expose an HTTP interface; it's processing work from a queue.
I could:
Use an executable liveness check to see if the process is running
Expose an HTTP health check…

Ross McFarlane
- 4,054
- 4
- 36
- 52
3
votes
1 answer
Wait for clean shutdown before scaling down a pod on Kubernetes
I need to scale down the number of pods in a replica controllers. However, I need a clean scale down:
Stop to send load on the pods that will be scaled down
Wait for the pod to have finished to handle the load
Delete the pod
I do not want a pod…

poiuytrez
- 21,330
- 35
- 113
- 172
3
votes
2 answers
How to create a Kubernetes ServiceAccount with token?
I am trying to add --admission-control=ServiceAccount to my kube-apiserver call to be able to host a https connection from the kubernetes-ui and the apiserver. I am getting this on the controller manager.
Mar 25 18:39:51 master…

CESCO
- 7,305
- 8
- 51
- 83
2
votes
1 answer
Kubernetes: Load Balancer vs Readiness health check
I'm running a WebService backend application in Kubernetes (GKE). It is used only by our frontend Web app. Typically there are sequences of tens of requests coming from the same user (ClientIP).
My app is set up to run at least 2 instances…

mareks
- 31
- 5
2
votes
1 answer
Add health check for Nginx in docker file
I have a WebAssmebly Blazor App that runs locally, I deploy it to Azure K8s cluster using Helm,
The app pod keeps restarting when I checked the logs its complaining about health check that are missing
[21/Apr/2021:11:23:55 +0000] "GET…

ikenahim
- 331
- 1
- 3
- 15
2
votes
0 answers
Istio: Health check / sidecar fails when I enable the JWT RequestAuthentication
OBSOLETE:
I keep this post for further reference, but you can check better diagnose (not solved yet, but workarounded) in
Istio: RequestAuthentication jwksUri does not resolve internal services names
UPDATE:
In Istio log we see the next error. uaa…

Sourcerer
- 1,891
- 1
- 19
- 32
2
votes
1 answer
GCE health check not working with ingress nginx controller
I am installing nginx ingress controller (k8s.gcr.io/ingress-nginx/controller:v0.40.2) on a GKE cluster v1.17.12-gke.1504 with 3 nodes.
The ingress-nginx-controller is deployed as a Deployment; I don't want to deploy it as a DaemonSet because I'm…

Diego
- 304
- 1
- 8
2
votes
2 answers
Kubernetes on Azure - liveness and readiness probes failing - Liveness probe failed with connect: connection refused
I'm a noob with Azure deployment, kubernetes and HA implementation. When I implement health probes as part of my app deployment, the health probes fail and I end up with either 503 (internal server error) or 502 (bad gateway) error when I try…

Chris Halcrow
- 28,994
- 18
- 176
- 206
2
votes
7 answers
Kubernetes liveness probe on a secure mTLS health check endpoint
I would like some help to solve a particular Kubernetes + mTLS problem please.
How to make Kubernetes liveness probe work on a secure https mTLS health check endpoint please?
My application is a web application where a health check endpoint is…

PatPanda
- 3,644
- 9
- 58
- 154
2
votes
2 answers
Kubernetes HTTP health check fails with `http: server gave HTTP response to HTTPS client`
This occurred after I did a:
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
In apache which in effect does a 301 redirect based on a HTTP header.
Demonstarted with this curl:
curl…

Chris Stryczynski
- 30,145
- 48
- 175
- 286
2
votes
2 answers
gRPC & HTTP servers on GKE Ingress failing healthcheck for gRPC backend
I want to deploy a gRPC + HTTP servers on GKE with HTTP/2 and mutual TLS. My deployment have both a readiness probe and liveness probe with custom path. I expose both the gRPC and HTTP servers via an Ingress.
deployment's probes and exposed ports:
…

shelll
- 3,234
- 3
- 33
- 67