Questions tagged [kubernetes-health-check]
215 questions
1
vote
1 answer
How make a wait import sql file?
I have 3 containers: nginx, php-fpm and mysql 5.7 . I import a large SQL file with volume. When I connect to the container mysql, see only part of the tables.
How to properly wait for SQL file import. Could give an example of use (healthcheck or…

user246328
- 103
- 1
- 1
- 6
1
vote
0 answers
continous health check of first server inside second server using nodejs
I've been trying to do health check of first server inside serverTwo function using node js.
First i created two servers with two different ports using two different functions serverOne and serverTwo.
Now I need to write code inside serverTwo…

LiN
- 125
- 1
- 14
1
vote
2 answers
IApplicationBuilder does not includes a definition for UseHealthChecks
As suggested at the tutorial for kubernetes health check I like to implement the health chack at my .NET Core WebApi at class startup.cs at method Configure.
But the method .UseHealthCheck() is unknown.
I don't know what creates this problem. I…

Frank Mehlhop
- 1,480
- 4
- 25
- 48
1
vote
1 answer
What happens when a service receives a request but has no ready pods?
Having a kubernetes service (of type ClusterIP) connected to a set of pods, but none of them are currently ready - what will happen to the request?
Will it:
fail eagerly
timeout
wait until a ready pod is available (or forever, whichever is…

orirab
- 2,915
- 1
- 24
- 48
1
vote
3 answers
Clear Cache data in Kubernetes cluster
Is there any way of viewing cache data in kubernetes cluster ? Does it get stored in a folder somewhere or can It be shown via a monitoring tool (Prometheus) ?
And how to clean the cache data in k8s cluster ?

Shantanu Makkar
- 21
- 1
- 1
- 2
1
vote
0 answers
echo container image:tag (URI) in kubernetes readinessProbe or livenessProbe
I have many versions and tags of containers used by Deployment in k8s (and hence many log groups).
It would be nice if i could display the container URI and tag in a readinessProbe or livenessProbe which then flows to persisted logging.
Basically…

cryanbhu
- 4,780
- 6
- 29
- 47
1
vote
4 answers
Spring boot service in kubernetes always responses with HTTP status 400
We have Spring Boot service running in Kubernetes.
This service has endpoint:
- GET /healthz
We have liveness probe that uses this endpoint. Probe runs successfully.
It means that the endpoint is reachable from the service pod (localhost).
When…

Tantre
- 33
- 2
- 9
1
vote
1 answer
How can I control which data gets reported to the Istio Mixer by the side car?
How can I control the data being sent to the Istio Mixer? For example, my service has a health url (/health) that gets called every few seconds and the call goes through the side car which end up reporting data to the mixer. How can I configure the…

David
- 11
- 4
1
vote
0 answers
Kubernetes Watch - How to update? (Java API)
I have two tasks that I run in parallel threads and I'm pulling my hair on why the Watch functionality doesn't work. Please let me know if you have any insights.
Task 1: Get the status of the pods and show the current status.
Task 2: Keep a watch on…

BlueChips23
- 1,861
- 5
- 34
- 53
1
vote
1 answer
Kubernetes Lifecycle Hooks
I would like to take particular actions when a K8 Pod, or the node its running on, crashes/restarts/etc -- basically notify another part of the application that this has happened. I also need this to be guaranteed to execute. Can a kubernetes…

Geige V
- 1,389
- 1
- 16
- 28
1
vote
1 answer
How to get the id/name of the container in which my web application is running to serve the current user request
We are using Dockers and Kubernetes to containerize my .Net web application and scale up to 8-9 replicas. So we installed Dockers (in my Win 10 machine) and used Linux containers.
Orchestration is done by Kubernetes. I would like to get the name/id…

Hari
- 11
- 1
- 3
1
vote
0 answers
Load balancer health checks failed for HTTPS
I have a kubernetes endpoint at MY_IP:80-443 (for HTTP and HTTPS) and I have setup a health check for its loadbalancer looking at port 80. At this moment the endpoint just return 200 OK but the healthcheck keeps saying my pods are unhealthy (marked…

spondbob
- 1,523
- 2
- 17
- 34
1
vote
1 answer
Nodejs application healthcheck best practice
I'm looking into setting up a healthcheck mechanism for nodejs microservices running via container orchestrations. From a nodejs/express point of view, what is considered best practice to ensure that the service is indeed running on a given port on…

L P
- 1,776
- 5
- 25
- 46
1
vote
1 answer
Kubernetes endpoints empty , can I restart the pods?
I have a situation where I have zero endpoints available for one service. To test this, I specially crafted a yaml descriptor that uses a simple node server to set and retrieve the ready/live status for a pod:
apiVersion: extensions/v1beta1
kind:…

dawez
- 2,714
- 2
- 29
- 50
1
vote
1 answer
Readiness probe failed: HTTP probe failed with statuscode: 500 Back-off restarting failed container
I used kubeadm to deploy my Kubernetes dashboard.
When I tried to deploy the nginx-ingress-controller in my dev namespace with default service-account, I was getting liveness probe and readiness failing with status code.
nginx-ingress-controller…

krish123
- 11
- 1
- 1
- 2