mirror of https://github.com/k3s-io/k3s
Enable iptables -w in kubeadm selfhosted
Currently containerized kube-proxy cannot support iptables -w unless the xtables.lock is mounted. Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>pull/6/head
parent
695d438508
commit
289c37ae21
|
@ -72,11 +72,15 @@ spec:
|
||||||
- /usr/local/bin/kube-proxy
|
- /usr/local/bin/kube-proxy
|
||||||
- --kubeconfig=/var/lib/kube-proxy/kubeconfig.conf
|
- --kubeconfig=/var/lib/kube-proxy/kubeconfig.conf
|
||||||
{{ .ClusterCIDR }}
|
{{ .ClusterCIDR }}
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/kube-proxy
|
- mountPath: /var/lib/kube-proxy
|
||||||
name: kube-proxy
|
name: kube-proxy
|
||||||
|
# TODO: Make this a file hostpath mount
|
||||||
|
- mountPath: /run/xtables.lock
|
||||||
|
name: xtables-lock
|
||||||
|
readOnly: false
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
serviceAccountName: kube-proxy
|
serviceAccountName: kube-proxy
|
||||||
# TODO: Why doesn't the Decoder recognize this new field and decode it properly? Right now it's ignored
|
# TODO: Why doesn't the Decoder recognize this new field and decode it properly? Right now it's ignored
|
||||||
|
@ -87,6 +91,9 @@ spec:
|
||||||
- name: kube-proxy
|
- name: kube-proxy
|
||||||
configMap:
|
configMap:
|
||||||
name: kube-proxy
|
name: kube-proxy
|
||||||
|
- name: xtables-lock
|
||||||
|
hostPath:
|
||||||
|
path: /run/xtables.lock
|
||||||
`
|
`
|
||||||
|
|
||||||
KubeDNSVersion = "1.14.2"
|
KubeDNSVersion = "1.14.2"
|
||||||
|
|
Loading…
Reference in New Issue