-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[nginx] Metrics of the defaultbackend #1733
Comments
@amalucelli thank you for the report. We will add two flags to enable this features. |
As a workaround for now, you can mask the apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: example
spec:
rules:
- http:
paths:
- path: /metrics
backend:
serviceName: default-http-backend
servicePort: 80 |
@aledbf what was your plan for supporting this? I have some free time. I think hiding it behind port 10254 is a nice solution. |
Exactly that :) |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/reopen |
@jonpulsifer: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Closing. For those interested in such metrics, the PR #3125 contains the required changes. This just requires a custom image. |
What could be the security impacte of this?? |
I'm working with nginx controller and using for the
default-backend-service
thegcr.io/google_containers/defaultbackend:1.4
image, and I verified that when I make a request todefaultbackend/metrics
by my external load balancer or directly into the container, I get a several metrics that I don't think that should be visible to the internet.I found that this is hardcoded in the
defaultbackend
image, and can't be disabled by a configuration.ingress-nginx/images/404-server/server.go
Line 62 in adfbc8c
Is this the default and expected behavior?
It would be nice if in the
defaultbackend
image the/healthz
and/metrics
paths could be also be exposed in a different port, like thenginx-ingress-controller
image.The text was updated successfully, but these errors were encountered: