Skip to content

Commit

Permalink
Allow using insecure TLS for metrics-server with Kubernetes 1.19+
Browse files Browse the repository at this point in the history
  • Loading branch information
hakman committed May 22, 2021
1 parent 0d92bfe commit 3cefe89
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,12 @@ spec:
- args:
- --secure-port=4443
- --kubelet-use-node-status-port
{{ if not (WithDefaultBool .MetricsServer.Insecure true) }}
{{ if and (not (WithDefaultBool .MetricsServer.Insecure true)) UseKopsControllerForNodeBootstrap }}
- --tls-cert-file=/srv/tls.crt
- --tls-private-key-file=/srv/tls.key
{{ else }}
- --cert-dir=/tmp
{{ end }}
{{ if not UseKopsControllerForNodeBootstrap }}
- --kubelet-insecure-tls
- --cert-dir=/tmp
{{ end }}
image: {{ or .MetricsServer.Image "k8s.gcr.io/metrics-server/metrics-server:v0.4.3" }}
imagePullPolicy: IfNotPresent
Expand Down

0 comments on commit 3cefe89

Please sign in to comment.