-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Health check for service is not working k8s crd #6492
Comments
Hello, the documentation is wrong, we will remove this section. You have to use the heathcheck systems from k8s. |
Is there a reason why health check is not enabled for services in k8s CRDs? This would be useful when requests are routed to services that are located outside of the k8s cluster. K8s itself dosen't support a liveness probe for ExternalName services. |
Yes, this is what I want. I have different external services but how can I know the health status and how should I notify/tell traefik which one is down or not. |
It occurred to me that k8s service does not do active health check. The pod liveness/readiness check are done by kubelet on node. On event of node crash, we are left with pod eviction strategy of the whole k8s cluster which can only be globally configured through command line arguments of kube-controller-manager and each kubelet process, with timeout. If that is the case, then it should be practically useful we could have "traditional" load balancer health check mechanism in effect with traefik inside k8s. |
Do you want to request a feature or report a bug?
Bug
What did you do?
I want to use the health check function in traefik 2.1.6 which refered in https://docs.traefik.io/reference/dynamic-configuration/kubernetes-crd/ to detect the k8s service heart beat.
I set up the env as documents mentioned above but there is no health check requests sent to the k8s service at all.
Traefik -> IngressRoute (health check http 80)-> | k8s service1 nginx
| k8s service2 nginx (dead)
What did you expect to see?
On my 2 back k8s service should receive health check from traefik ingress routes periodically (like 5 seconds).
What did you see instead?
I uese tcpdump on k8s service to monitor the port 80, no http requests received at all.
Output of
traefik version
: (What version of Traefik are you using?)Version: 2.1.6
Codename: cantal
Go version: go1.13.8
Built: 2020-02-28T17:40:18Z
OS/Arch: linux/amd64
What is your environment & configuration (arguments, toml, provider, platform, ...)?
traefik-deployment.yml
lx-ingressroutes.yml
nginx0.yml
nginx1.yml
If applicable, please paste the log output in DEBUG level (
--log.level=DEBUG
switch)The text was updated successfully, but these errors were encountered: