Allow using insecure TLS for metrics-server with Kubernetes 1.19+

This commit is contained in:
Ciprian Hacman 2021-05-22 05:19:10 +03:00
parent 0d92bfee56
commit 2df8e56fc9
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ spec:
{{ else }}
- --cert-dir=/tmp
{{ end }}
{{ if not UseKopsControllerForNodeBootstrap }}
{{ if and UseKopsControllerForNodeBootstrap (not (WithDefaultBool .MetricsServer.Insecure true)) }}
- --kubelet-insecure-tls
{{ end }}
image: {{ or .MetricsServer.Image "k8s.gcr.io/metrics-server/metrics-server:v0.4.3" }}