Questions tagged [kubernetes-health-check]
215 questions
7
votes
3 answers
Providing multiple health check URLs for kubernetes probes
I am using container Probes to check the health of the application running inside the container within kubernetes pod. For now my example pod config looks like,
"spec":{
"containers":[
{
"image":"tomcat",
"name":"tomcat",
…

Sujai Sivasamy
- 1,101
- 3
- 14
- 32
7
votes
0 answers
Kubernetes pods failing all at once
I have a really simple flask application running on kubernetes (GKE). The pods get a fair amount of traffic (60req/s +-) and they run under an autoscaling group with a minimum of 4 active and 10 max.
At every 4-5 hours the liveness probe starts…

Romeo Mihalcea
- 9,714
- 12
- 50
- 102
7
votes
2 answers
How to pause a kubernetes service
I've got a setup described bellow - so a simple replication controller, service and an https ingress deployed with kubernetes on google cloud.
I need to kill my app for a bit so that I can test how the rest of my stack reacts - what's a good way to…

Zlatko
- 18,936
- 14
- 70
- 123
7
votes
1 answer
Kubernetes/Container Engine: TLS handshake timeout
About 7 hours ago i was working with kubectl without problems. Now (after a few hours of sleep, and a reboot of my computer) all kubectl get commands gives me this error:
Unable to connect to the server: net/http: TLS handshake timeout
I did not do…

Jakob Kristensen
- 1,647
- 3
- 12
- 22
6
votes
2 answers
Spring Boot custom Kubernetes readiness probe
I want to implement custom logic to determine readiness for my pod, and I went over this: https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints.kubernetes-probes.external-state and they mention an example…

Hummus
- 559
- 1
- 9
- 21
6
votes
3 answers
liveness and readiness probe for multiple containers in a pod
I would like to know if there is a possibility to apply liveness and readiness probe check to multiples containers in a pod or just for one container in a pod.
I did try checking with multiple containers but the probe check fails for container A and…

sandy
- 61
- 1
- 2
6
votes
1 answer
Why is my DataDog instance reporting a Kubernetes "no_pod"?
We are running a Kubernetes Cluster in AWS and we are collecting the metrics in DataDog using the dd-agent DaemonSet.
We have a Pod being displayed in our metrics tagged as "no_pod" and it is using a lot of resources,…

jonhoare
- 1,279
- 7
- 15
5
votes
1 answer
Kubernetes Health Check: timeoutSeconds exceeds periodSeconds
In Kubernetes Kubernetes Health Check Probes, what happens if timeoutSeconds exceeds periodSeconds? For example:
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3
When will the Pod…

h q
- 1,168
- 2
- 10
- 23
5
votes
1 answer
Create JVM heapdump when K8s healthcheck restarts the pod - no OOM occur
I have a situation when all of a sudden a really long GC pause occurs and I need to find out what is the source of the sudden memory allocation. The long GC pause (around 30 seconds) causes the pod to fail several K8s health checks in a row and the…

Kikosha
- 343
- 6
- 16
5
votes
1 answer
How grpc-health-probe (gRPC health checking on Kubernetes) differentiates between liveness and readiness probes
I am writing one grpc service and using gRPC health checking on Kubernetes (https://github.com/grpc-ecosystem/grpc-health-probe). In my server, I added different implementation (one for liveness and other for readiness) of endpoints. I am wondering…

Abhay
- 928
- 1
- 10
- 28
5
votes
2 answers
Unable to connect to the server: x509: certificate is valid for
OS: Mac OS 10.13.6 Terminal
Kubectl for Remote Access
When I execute the command with "--insecure-skip-tls-verify" it works fine.
dev-env at balabimac in ~/kthw
$ kubectl --insecure-skip-tls-verify --context=kubernetes-me get pods
No resources…

BalaB
- 3,687
- 9
- 36
- 58
5
votes
1 answer
kubeadm join fails with http://localhost:10248/healthz connection refused
I'm trying to setup kubernetes (from the tutorials for centos7) on three VMs,
unfortunately the joining of the worker fails. I hope someone already had this problem (found it two times on the web with no answers), or might have a guess what's going…

StefanSchubert
- 73
- 1
- 1
- 9
5
votes
4 answers
What's the Kubernetes Client-Java API to get all deployments
I've been exploring the Kubernetes-Client/Java library and I can't figure out the API call to get all the deployments.
I'm looking for the K8-Client/Java API call for this command:
kubectl get deployments
NAME DESIRED CURRENT …

BlueChips23
- 1,861
- 5
- 34
- 53
5
votes
0 answers
Difference between container restart due to liveness problems or due to stop request
I am working with Kubernetes and a pod is composed by different containers.
I need to apply different behaviours when two specific events happen:
a container (for whatever reason) have problems and need to be restarted. This happens when liveness…

Michele Orsi
- 754
- 4
- 17
5
votes
3 answers
Kubernetes liveness probes with query string parameters
I've looked over the documentation and browsed the source, but I can't seem to figure out how to do this. Is there any way to send query string parameters along with the path when implementing a Kubernetes liveness probe?
The string I am sending,…

Josh
- 83
- 1
- 6