Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 85d976d

Browse files
authored
Merge pull request #742 from dghubble/proxy-modprobe
Add /lib/modules mount to kube-proxy
2 parents 1d94dc9 + 8084a34 commit 85d976d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pkg/asset/internal/templates.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,9 @@ spec:
706706
securityContext:
707707
privileged: true
708708
volumeMounts:
709+
- mountPath: /lib/modules
710+
name: lib-modules
711+
readOnly: true
709712
- mountPath: /etc/ssl/certs
710713
name: ssl-certs-host
711714
readOnly: true
@@ -720,9 +723,12 @@ spec:
720723
operator: Exists
721724
effect: NoSchedule
722725
volumes:
723-
- hostPath:
726+
- name: lib-modules
727+
hostPath:
728+
path: /lib/modules
729+
- name: ssl-certs-host
730+
hostPath:
724731
path: /usr/share/ca-certificates
725-
name: ssl-certs-host
726732
- name: etc-kubernetes
727733
hostPath:
728734
path: /etc/kubernetes

0 commit comments

Comments
 (0)