Add /lib/modules mount to kube-proxy

* Starting in Kubernetes v1.8, kube-proxy modprobes ipvs
* kube-proxy still uses iptables, but in future may switch to
ipvs, this prepares the way for that to happen
* https://github.com/kubernetes-incubator/bootkube/issues/741
This commit is contained in:
Dalton Hubble
2017-11-08 21:39:07 -08:00
parent aebb45e6e9
commit 383aba4e8e

View File

@@ -37,6 +37,9 @@ spec:
securityContext:
privileged: true
volumeMounts:
- mountPath: /lib/modules
name: lib-modules
readOnly: true
- mountPath: /etc/ssl/certs
name: ssl-certs-host
readOnly: true
@@ -51,9 +54,12 @@ spec:
operator: Exists
effect: NoSchedule
volumes:
- hostPath:
- name: lib-modules
hostPath:
path: /lib/modules
- name: ssl-certs-host
hostPath:
path: /usr/share/ca-certificates
name: ssl-certs-host
- name: etc-kubernetes
hostPath:
path: /etc/kubernetes