-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[prometheus-node-exporter] Allow using custom TLS certificate in kube…
…-rbac-proxy (#4955) * [prometheus-node-exporter] Allow using TLS secret in kube-rbac-proxy - Support TLS resources in kube-rbac-proxy from a secret volume - Add extraVolumes - Add extraVolumeMounts to the containers of kube-rbac-proxy and node-exporter - Add support for client TLS auth Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com> * Add a CI test case Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com> --------- Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
charts/prometheus-node-exporter/ci/kube-rbac-proxy-tlssecret-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
fullnameOverride: prometheus-node-exporter | ||
|
||
kubeRBACProxy: | ||
enabled: true | ||
tls: | ||
enabled: true | ||
tlsClientAuth: true | ||
|
||
tlsSecret: | ||
enabled: true | ||
caItem: client-ca.crt | ||
secretName: '{{ include "prometheus-node-exporter.fullname" . }}-tls' | ||
volumeName: '{{ include "prometheus-node-exporter.fullname" . }}-tls' | ||
|
||
extraManifests: | ||
- | | ||
apiVersion: v1 | ||
data: | ||
client-ca.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURTekNDQWpPZ0F3SUJBZ0lJY3hXZmlGVnp1WUl3RFFZSktvWklodmNOQVFFTEJRQXdJREVlTUJ3R0ExVUUKQXhNVmJXbHVhV05oSUhKdmIzUWdZMkVnTn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Y1B4SE04VW40REZnNzBiRnpXQVJwZEVwSnk0TjMwWExyUTZJcWlpdHZwaGQ3QTg9Ci0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg== | ||
kind: Secret | ||
metadata: | ||
name: '{{ include "prometheus-node-exporter.fullname" . }}-tls' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters