Set metrics-server preferred address types

So, v0.3.0 changed how the options are specified, so it makes sense that
we needed to make this change. See:
* https://github.com/kubernetes/kubernetes/issues/44540#issuecomment-424508625
* https://github.com/kubernetes/kubernetes/issues/44540#issuecomment-425218584

From checking the address preferences configured on our API server i.e.
and then mirroring those options to metrics-server. See:
* https://github.com/kubernetes-incubator/metrics-server/issues/67#issuecomment-438421549
This commit is contained in:
King'ori Maina 2018-12-12 12:02:14 +03:00
parent a4d850ec7b
commit b24da5bd44
No known key found for this signature in database
GPG Key ID: 04398F1A6E1D9B22
1 changed files with 3 additions and 0 deletions

View File

@ -138,6 +138,9 @@ spec:
- name: metrics-server
image: gcr.io/google_containers/metrics-server-amd64:v0.3.1
imagePullPolicy: Always
command:
- /metrics-server
- --kubelet-preferred-address-types=InternalIP,Hostname,ExternalIP
volumeMounts:
- name: tmp-dir
mountPath: /tmp