-
Notifications
You must be signed in to change notification settings - Fork 1.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
TLS is disabled for node_exporter #1486
Comments
kube-prometheus is deploying node-exporter with kube-rbac-proxy sidecar. Sidecar is responsible for RBAC and TLS termination. We are using this architecture for historical reasons as node_exporter did have TLS termination capabilities before. It might be good to consider updating to use TLS termination in node_exporter itself. |
Thanks for the clarification. If either of the other issues linked covers this feel free to close. |
If we move TLS termination to node-exporter, can kube-rbac-proxy passthrough the TLS connection to upstream node-exporter? |
@raptorsun kube-rbac-proxy realizes 2 functions: TLS termination and access restriction. As such moving TLS termination to node_exporter won't allow us to remove kube-rbac-proxy sidecar. Additionally enabling TLS termination in node_exporter means something would need to provision those certificates. Maybe cert-manager as in #179? |
What is the feature required from this issue? Is it an option to expose HTTPS port of node-exporter and disable kube-rbac-proxy? |
The issue is about removing kube-rbac-proxy, using node_exporter buillt-in mechanisms for TLS termination and auth. It needs a bit of exploratory work to determine if this is even possible. |
ok, I will check its feasability first and see if we can proceed to add this feature. |
Just to point out, TLS in node_exporter is marked as experimental as per https://github.com/prometheus/node_exporter#tls-endpoint |
What happened?
I was looking through the specs generated and the found the message:
even though secure-listen-address is set
kube-prometheus/manifests/node-exporter-daemonset.yaml
Line 57 in 31d86b7
from what I can tell you have to use --web.config.file to get tls: https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md and prometheus/node_exporter#1277 and I wasn't able to find the
secure-listen-address
in the node-exporter code.Did you expect to see some different?
How to reproduce it (as minimally and precisely as possible):
deploy the manifests from main branch and look at logs of node_exporter pod
Environment
k8s
Prometheus Operator version:
Insert image tag or Git SHA here
Kubernetes version information:
kubectl version
Kubernetes cluster kind:
insert how you created your cluster: kops, bootkube, tectonic-installer, etc.
Manifests:
Anything else we need to know?:
related to #469 and #179
The text was updated successfully, but these errors were encountered: