kubenurse icon indicating copy to clipboard operation
kubenurse copied to clipboard

404 Not Found service endpoints

Open eli-halych opened this issue 4 years ago • 8 comments

"user_agent": "curl/7.76.1",
 "request_uri": "/alive",
 "remote_addr": "127.0.0.1:38864",
 "api_server_direct": "ok",
 "api_server_dns": "ok",
 "me_ingress": "404 Not Found",
 "me_service": "Get \"http://kubenurse.kube-system.svc.cluster.local:8080/alwayshappy\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)",
 "neighbourhood_state": "ok",

Any idea why /alive and other endpoints return 404 when trying to send requests to the service?

eli-halych avatar Feb 08 '22 12:02 eli-halych

Do you have any NetworkPolicies or similar in place, which are causing the timeout? Are other services reachable as usual (=kube-proxy works)?

P.S. When the me_service works, you're a step further and propably the me_ingress will work then too

djboris9 avatar Feb 08 '22 13:02 djboris9

#34 fixed my problem with me_service - the endpoint became available and it is in the OK state now. Regarding me_ingress, I am still working on it, because I am using traefik instead of nginx.

eli-halych avatar Feb 10 '22 15:02 eli-halych

at least the ingress.className should be set to a matching one for traefik

djboris9 avatar Feb 10 '22 15:02 djboris9

Is there any documentation or an example how to enable traefik ingress routing for kubenurse? The idea is to use mydummyurl.com/kubenurse path within the Kubernetes cluster.

eli-halych avatar Feb 11 '22 13:02 eli-halych

Alright, I noticed it is actually working when I check the /metrics endpoint. And all the pods are "turning on/off" meaning readiness probes are succeeding, then failing and then it's on repeat. No restarts - just readiness probes failing chaotically. But the /metrics endpoint is stable overall.

eli-halych avatar Feb 11 '22 16:02 eli-halych

Could you please share your Helm values you are using to deploy the kubenurse? So I can deploy it with the same configuration and have a better understanding what is failing.

djboris9 avatar Feb 15 '22 18:02 djboris9

I solved it with this MR #38 - a new chart designed for Traefik version 2.x that allows access to Kubenurse via the path example.com/kubenurse/* .

This was my case. And since I used Traefik 2.x, I switched Ingress resource and backend/frontend logic to the one suitable for version 2.x - Middlewares and IngressRoutes.

eli-halych avatar Feb 18 '22 14:02 eli-halych

@djboris9, what do you think about this MR #38?

eli-halych avatar Mar 24 '22 12:03 eli-halych

@eli-halych cf my comment in #38.

closing this issue, as it has more to do with Traefik Ingress Controller peculiarities than with an actual issue.

clementnuss avatar Dec 15 '23 08:12 clementnuss