mirror of https://github.com/kubernetes/kops.git
metrics-server: Set preferred address type to `InternalIP` when non AWS
This commit is contained in:
parent
f1c1a50391
commit
8920b15f75
|
|
@ -132,7 +132,7 @@ spec:
|
|||
- --secure-port=4443
|
||||
- --kubelet-use-node-status-port
|
||||
- --metric-resolution=15s
|
||||
- --kubelet-preferred-address-types={{ if or IsIPv6Only (eq GetCloudProvider "hetzner")}}InternalIP{{ else }}Hostname{{ end }}
|
||||
- --kubelet-preferred-address-types={{ if or IsIPv6Only (not (eq GetCloudProvider "aws"))}}InternalIP{{ else }}Hostname{{ end }}
|
||||
{{ if not (WithDefaultBool .MetricsServer.Insecure true) }}
|
||||
- --tls-cert-file=/srv/tls.crt
|
||||
- --tls-private-key-file=/srv/tls.key
|
||||
|
|
|
|||
Loading…
Reference in New Issue