From 383aba4e8ebed1eb917856b37cfd3e634b39a2f5 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Wed, 8 Nov 2017 21:39:07 -0800 Subject: [PATCH] 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 --- resources/manifests/kube-proxy.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/manifests/kube-proxy.yaml b/resources/manifests/kube-proxy.yaml index b303c7c..5cb0fb9 100644 --- a/resources/manifests/kube-proxy.yaml +++ b/resources/manifests/kube-proxy.yaml @@ -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