Questions tagged [kubernetes-health-check]
215 questions
11
votes
2 answers
Readiness probe failed: Get http://10.32.1.71:80/setting s: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
The configuration I have is Jenkins on Kubernetes and the project is written in PHP.
The issue here is that the pod is attached to an ingress(than on a loadBalancer using GCE) and when the pod is unhealthy it won't add it.
The first time I load the…

DaAmidza
- 336
- 2
- 7
- 25
11
votes
1 answer
Unhealthy nodes for load balancer when using nginx ingress controller on GKE
I have set up the nginx ingress controller following this guide.
The ingress works well and I am able to visit the defaultbackend service and my own service as well.
But when reviewing the objects created in the Google Cloud Console, in particular…

john2x
- 22,546
- 16
- 57
- 95
11
votes
2 answers
Is it possible to health check a Kubernetes API server over HTTP or TCP?
I need to load balance a cluster of Kubernetes API servers (version 1.7) on DigitalOcean, but the problem is that the Kubernetes API server seemingly only supports HTTPS and the DigitalOcean load balancer can only do HTTP or TCP health checks.
Is…

aknuds1
- 65,625
- 67
- 195
- 317
11
votes
3 answers
Why Kubernetes Pod gets into Terminated state giving Completed reason and exit code 0?
I am struggling to find any answer to this in the Kubernetes documentation. The scenario is the following:
Kubernetes version 1.4 over AWS
8 pods running a NodeJS API (Express) deployed as a Kubernetes Deployment
One of the pods gets restarted for…

David Fernandez
- 585
- 1
- 6
- 20
10
votes
3 answers
What happens to a Docker Container when HEALTHCHECK fails
The docker docs say what a HEALTHCHECK instruction is and how to check the health of a container. But I am not able to figure out what happens when healthcheck fails. Like will the container be restarted or stoped or any of these two as per user…

samshers
- 1
- 6
- 37
- 84
10
votes
3 answers
why both liveness is needed with readiness
While doing health check for kubernetes pods, why liveness probe is needed even though we already maintain readiness probe ?
Readiness probe already keeps on checking if the application within pod is ready to serve requests or not, which means that…

Ramesh
- 353
- 3
- 8
9
votes
1 answer
Kubernetes (K8s) - Can you check what time a pod restarts at?
I am trying to create a system health check. I would like to be able to determine how often the pods are restarting. Since the pods have liveness probes, they may continuously restart if something is wrong. Is there anyway to check the time a pod…

beanwa
- 222
- 2
- 4
- 11
9
votes
4 answers
cant delete pod using kubctl delete pod
I want to delete a pod permanently so I can create the deployment.yaml and derveice.yaml again from fresh, so I tried:
kubctl delete pod
and the pod is still there, also tried:
kubectl delete pods --grace-period=0
and didnt work.
the…

jack miao
- 1,398
- 1
- 16
- 32
9
votes
3 answers
How to scrape pod level info using prometheus kubernetes?
I am trying to scrape pod level info using prometheus kubernetes. Here is the config i am using:
- job_name: 'kubernetes-pods'
kubernetes_sd_configs:
- api_servers:
- 'https://kubernetes.default'
role: pod
relabel_configs:
-…

nocturnal
- 395
- 2
- 6
- 15
9
votes
2 answers
configuring kubernetes restart policy
According to the docs -
Failed containers that are restarted by Kubelet, are restarted with an
exponential back-off delay, the delay is in multiples of
sync-frequency 0, 1x, 2x, 4x, 8x … capped at 5 minutes and is reset
after 10 minutes of…

user1708860
- 1,683
- 13
- 32
8
votes
2 answers
Kubernetes's http liveness probe failed when pod under heavy load
Just as the title says, Kubernetes's liveness probe always fails when pod is under heavy load(500+ concurrency, 100000 request), i gave more cpu & memory resources to the pod, but it does not work.
Is there any method to handle this situation…

Williams Mao
- 81
- 1
- 1
- 4
7
votes
2 answers
NEG says Pods are 'unhealthy', but actually the Pods are healthy
I'm trying to apply gRPC load balancing with Ingress on GCP, and for this I referenced this example. The example shows gRPC load balancing is working by 2 ways(one with envoy side-car and the other one is HTTP mux, handling both…

isbee
- 161
- 1
- 8
7
votes
3 answers
How do I make Kubernetes scale my deployment based on the "ready"/ "not ready" status of my Pods?
I have a deployment with a defined number of replicas. I use readiness probe to communicate if my Pod is ready/ not ready to handle new connections – my Pods toggle between ready/ not ready state during their lifetime.
I want Kubernetes to scale the…

orirab
- 2,915
- 1
- 24
- 48
7
votes
2 answers
Setting up a Kuberentes cluster with HTTP Load balancing ingress for RStudio and Shiny results in error pages
I'm attempting to create a cluster on Google Kubernetes Engine that runs nginx, RStudio server and two Shiny apps, following and adapting this guide.
I have 4 workloads that are all green in the UI, deployed via:
kubectl run nginx --image=nginx…

MarkeD
- 2,500
- 2
- 21
- 35
7
votes
3 answers
Does HPA(Horizontal pod autoscaling) considers the mean of CPU utilization of multiple containers(in a pod) to scale the pods?
I would like to know, if HPA considers the mean of CPU utilization of multiple containers in a pod, in order to scale up/down the no. of pods. For instance, if I specify a HPA like below for a deployment(pod) that has 2 containers. In order for the…

Suhas Chikkanna
- 1,292
- 5
- 20
- 34