Skip to content

Commit 2fc8ac9

Browse files
committed
[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.
1 parent 3cbb20c commit 2fc8ac9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cluster/addons/metrics-server/metrics-server-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ spec:
5757
# Remove these lines for non-GKE clusters, and when GKE supports token-based auth.
5858
- --kubelet-port=10255
5959
- --deprecated-kubelet-completely-insecure=true
60+
- --kubelet-preferred-address-types=InternalIP,Hostname,InternalDNS,ExternalDNS,ExternalIP
6061
ports:
6162
- containerPort: 443
6263
name: https

0 commit comments

Comments
 (0)