metrics-server: Set preferred address type to `InternalIP` when non AWS

This commit is contained in:
Ciprian Hacman 2022-12-02 14:57:33 +02:00
parent f1c1a50391
commit 8920b15f75
1 changed files with 1 additions and 1 deletions

View File

@ -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