From 2fc8ac9e81dc8975dba237ab8482ed1cc8c715dd Mon Sep 17 00:00:00 2001 From: Marek Siarkowicz Date: Fri, 19 Apr 2019 11:43:14 +0200 Subject: [PATCH] [metrics-server addon] Restore metrics-server using of IP addresses This preference list matches is used to pick prefered field from k8s node object. It was introduced in metrics-server 0.3 and changed default behaviour to use DNS instead of IP addresses. It was merged into k8s 1.12 and caused breaking change by introducing dependency on DNS configuration. --- cluster/addons/metrics-server/metrics-server-deployment.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/cluster/addons/metrics-server/metrics-server-deployment.yaml b/cluster/addons/metrics-server/metrics-server-deployment.yaml index 0ab7bef2e8f..5862f0679fb 100644 --- a/cluster/addons/metrics-server/metrics-server-deployment.yaml +++ b/cluster/addons/metrics-server/metrics-server-deployment.yaml @@ -57,6 +57,7 @@ spec: # Remove these lines for non-GKE clusters, and when GKE supports token-based auth. - --kubelet-port=10255 - --deprecated-kubelet-completely-insecure=true + - --kubelet-preferred-address-types=InternalIP,Hostname,InternalDNS,ExternalDNS,ExternalIP ports: - containerPort: 443 name: https