Ensure we have the kernel modules loaded for weave-npc
This commit is contained in:
1 parent
7a3e8e64b7
commit
cb73cf3f51
2 files changed
+11
No files matched your search
@@ -15,6 +15,12 @@ CONN_LIMIT=${CONN_LIMIT:-30}
|
|||||||
# Default for network policy
|
# Default for network policy
|
||||||
EXPECT_NPC=${EXPECT_NPC:-1}
|
EXPECT_NPC=${EXPECT_NPC:-1}
|
||||||
|
|
||||||
|
# Ensure we have the required modules for NPC
|
||||||
|
if [ "${EXPECT_NPC}" != "0" ]; then
|
||||||
|
modprobe br_netfilter
|
||||||
|
modprobe xt_set
|
||||||
|
fi
|
||||||
|
|
||||||
# kube-proxy requires that bridged traffic passes through netfilter
|
# kube-proxy requires that bridged traffic passes through netfilter
|
||||||
if ! BRIDGE_NF_ENABLED=$(cat /proc/sys/net/bridge/bridge-nf-call-iptables); then
|
if ! BRIDGE_NF_ENABLED=$(cat /proc/sys/net/bridge/bridge-nf-call-iptables); then
|
||||||
echo "Cannot detect bridge-nf support - network policy and iptables mode kubeproxy may not work reliably" >&2
|
echo "Cannot detect bridge-nf support - network policy and iptables mode kubeproxy may not work reliably" >&2
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ spec:
|
|||||||
mountPath: /host/etc
|
mountPath: /host/etc
|
||||||
- name: dbus
|
- name: dbus
|
||||||
mountPath: /host/var/lib/dbus
|
mountPath: /host/var/lib/dbus
|
||||||
|
- name: lib-modules
|
||||||
|
mountPath: /lib/modules
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
@@ -73,3 +75,6 @@ spec:
|
|||||||
- name: dbus
|
- name: dbus
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/dbus
|
path: /var/lib/dbus
|
||||||
|
- name: lib-modules
|
||||||
|
hostPath:
|
||||||
|
path: /lib/modules
|
||||||
Reference in new issue
Block a user