-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[prometheus-node-exporter] make kube-rbac-proxy listen host configurable #6716
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -240,7 +240,7 @@ spec: | |||||
| {{- if .Values.kubeRBACProxy.extraArgs }} | ||||||
| {{- .Values.kubeRBACProxy.extraArgs | toYaml | nindent 12 }} | ||||||
| {{- end }} | ||||||
| - --secure-listen-address=:{{ .Values.service.port}} | ||||||
| - --secure-listen-address={{ .Values.kubeRBACProxy.listenHost }}{{ .Values.service.port}} | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - --upstream=http://127.0.0.1:{{ $servicePort }}/ | ||||||
| - --proxy-endpoints-port={{ .Values.kubeRBACProxy.proxyEndpointsPort }} | ||||||
| - --config-file=/etc/kube-rbac-proxy-config/config-file.yaml | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -61,6 +61,9 @@ kubeRBACProxy: | |||||
|
|
||||||
| # Specify the port used for the Node exporter container (upstream port) | ||||||
| port: 8100 | ||||||
| # Host prefix for kube-rbac-proxy secure listen address. | ||||||
| # Keep ":" to listen on all interfaces, or set values like "127.0.0.1:" or "$(POD_IP):". | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
The only reasonable setting for the IP to listen on is the pod's IP (POD_IP). Setting an environment variable in the container from a fieldRef is currently not supported by the chart, though. |
||||||
| listenHost: ":" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If not set, the field's value is an empty string:
Suggested change
|
||||||
| # Specify the name of the container port | ||||||
| portName: http | ||||||
| # Configure a hostPort. If true, hostPort will be enabled in the container and set to service.port. | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.