Skip to content

Commit

Permalink
mount modules for auto load ip6tables moudles (#1665)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyd1988 authored Jul 6, 2022
1 parent 72fccd7 commit b4f8901
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2719,6 +2719,9 @@ spec:
- name: RPMS
value: $RPMS
volumeMounts:
- name: host-modules
mountPath: /lib/modules
readOnly: true
- name: shared-dir
mountPath: /var/lib/kubelet/pods
- mountPath: /etc/openvswitch
Expand Down Expand Up @@ -2769,6 +2772,9 @@ spec:
nodeSelector:
kubernetes.io/os: "linux"
volumes:
- name: host-modules
hostPath:
path: /lib/modules
- name: shared-dir
hostPath:
path: /var/lib/kubelet/pods
Expand Down
6 changes: 6 additions & 0 deletions yamls/kube-ovn-dual-stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ spec:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: host-modules
mountPath: /lib/modules
readOnly: true
- mountPath: /etc/openvswitch
name: systemid
- mountPath: /etc/cni/net.d
Expand Down Expand Up @@ -222,6 +225,9 @@ spec:
nodeSelector:
kubernetes.io/os: "linux"
volumes:
- name: host-modules
hostPath:
path: /lib/modules
- name: systemid
hostPath:
path: /etc/origin/openvswitch
Expand Down
6 changes: 6 additions & 0 deletions yamls/kube-ovn-ipv6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ spec:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: host-modules
mountPath: /lib/modules
readOnly: true
- mountPath: /etc/openvswitch
name: systemid
- mountPath: /etc/cni/net.d
Expand Down Expand Up @@ -202,6 +205,9 @@ spec:
nodeSelector:
kubernetes.io/os: "linux"
volumes:
- name: host-modules
hostPath:
path: /lib/modules
- name: systemid
hostPath:
path: /etc/origin/openvswitch
Expand Down
6 changes: 6 additions & 0 deletions yamls/kube-ovn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ spec:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: host-modules
mountPath: /lib/modules
readOnly: true
- mountPath: /etc/openvswitch
name: systemid
- mountPath: /etc/cni/net.d
Expand Down Expand Up @@ -228,6 +231,9 @@ spec:
nodeSelector:
kubernetes.io/os: "linux"
volumes:
- name: host-modules
hostPath:
path: /lib/modules
- name: systemid
hostPath:
path: /etc/origin/openvswitch
Expand Down

0 comments on commit b4f8901

Please sign in to comment.