From 637604d08f7ab64993c89f37a434c745b4b80d57 Mon Sep 17 00:00:00 2001
From: ArchiFleKs <lefevre.kevin@gmail.com>
Date: Wed, 17 Jan 2018 16:35:53 +0100
Subject: [PATCH] Add lib/modules to kube-proxy to enable LVS

kube-proxy is complaining of missing modules at startup. There is a plan
to also support an LVS implementation of kube-proxy in additon to
userspace and iptables
---
 .../node/templates/manifests/kube-proxy.manifest.j2         | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/roles/kubernetes/node/templates/manifests/kube-proxy.manifest.j2 b/roles/kubernetes/node/templates/manifests/kube-proxy.manifest.j2
index daf0fcb4f..a83efd03c 100644
--- a/roles/kubernetes/node/templates/manifests/kube-proxy.manifest.j2
+++ b/roles/kubernetes/node/templates/manifests/kube-proxy.manifest.j2
@@ -49,6 +49,9 @@ spec:
     - mountPath: /var/run/dbus
       name: var-run-dbus
       readOnly: false
+    - mountPath: /lib/modules
+      name: lib-modules
+      readOnly: true
   volumes:
   - name: ssl-certs-host
     hostPath:
@@ -66,3 +69,6 @@ spec:
   - name: var-run-dbus
     hostPath:
       path: /var/run/dbus
+  - hostPath:
+      path: /lib/modules
+    name: lib-modules
-- 
GitLab