Skip to content
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 with "GoogleHC/1.0" user agent fails and stops traffic #862

Closed
maxmoeschinger opened this issue Dec 21, 2023 · 0 comments · Fixed by #863
Closed

Health check with "GoogleHC/1.0" user agent fails and stops traffic #862

maxmoeschinger opened this issue Dec 21, 2023 · 0 comments · Fixed by #863
Labels
bug Something isn't working

Comments

@maxmoeschinger
Copy link
Contributor

Report

Health check in google container engine is using an other user agent than k8s

Expected Behavior

to return healthy response on google container engine health check

Actual Behavior

Returning 404 and failing the check

Steps to Reproduce the Problem

  1. Deploy keda http in gce

Logs from KEDA HTTP operator

{"level":"error","ts":1703160586.9367507,"logger":"LoggingMiddleware.RoutingMiddleware.StaticHandler","caller":"handler/static.go:36","msg":"Not Found","routingKey":"//10.23.128.144/","namespacedNameError":"PANIC=value method k8s.io/apimachinery/pkg/types.NamespacedName.MarshalLog called using nil *NamespacedName pointer","stream":"<nil>","stacktrace":"github.com/kedacore/http-add-on/interceptor/handler.(*Static).ServeHTTP\n\tgit.luolix.top/kedacore/http-add-on/interceptor/handler/static.go:36\ngit.luolix.top/kedacore/http-add-on/interceptor/middleware.(*Routing).ServeHTTP\n\tgit.luolix.top/kedacore/http-add-on/interceptor/middleware/routing.go:46\ngit.luolix.top/kedacore/http-add-on/interceptor/middleware.(*Logging).ServeHTTP\n\tgit.luolix.top/kedacore/http-add-on/interceptor/middleware/logging.go:42\nnet/http.serverHandler.ServeHTTP\n\tnet/http/server.go:2936\nnet/http.(*conn).serve\n\tnet/http/server.go:1995"}
{"level":"info","ts":1703160586.9369504,"logger":"LoggingMiddleware","caller":"middleware/logging.go:73","msg":"35.191.2.22:41208 - - [21/Dec/2023:12:09:46 +0000] \"GET / HTTP/1.1\" 404 9 \"\" \"GoogleHC/1.0\""}

HTTP Add-on Version

0.6.0

Kubernetes Version

1.28

Platform

Google Cloud

Anything else?

No response

@maxmoeschinger maxmoeschinger added the bug Something isn't working label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant