Skip to content

Commit

Permalink
metrics-server: Set preferred address type to InternalIP when non AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
hakman committed Dec 2, 2022
1 parent 361b9af commit d36642c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (neq 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
Expand Down

0 comments on commit d36642c

Please sign in to comment.