mirror of https://github.com/k3s-io/k3s
Fixes kubeadm 857
updated manifest file to always pass spec.nodeName as the --hostname-override.pull/58/head
parent
e20c15174e
commit
5ad7e4ee09
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue