Merge pull request #71283 from Klaven/kubeadm_857

Updates to always pass spec.nodeName as --hostname-override
pull/58/head
k8s-ci-robot 2018-11-20 17:31:24 -08:00 committed by GitHub
commit 1431aeb45d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,7 @@ spec:
command:
- /usr/local/bin/kube-proxy
- --config=/var/lib/kube-proxy/{{ .ProxyConfigMapKey }}
- --hostname-override=$(NODE_NAME)
securityContext:
privileged: true
volumeMounts:
@ -91,6 +92,11 @@ spec:
- mountPath: /lib/modules
name: lib-modules
readOnly: true
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
hostNetwork: true
serviceAccountName: kube-proxy
volumes: