Skip to content

Commit

Permalink
Add /run/xtables.lock mount to kube-flannel.yml
Browse files Browse the repository at this point in the history
This prevents iptables contention with kube-proxy and the host OS.

Fixes flannel-io#988.
  • Loading branch information
David Shepherd authored and manuelbuil committed Jan 24, 2022
1 parent df6eb03 commit 5f27126
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Documentation/kube-flannel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ spec:
mountPath: /run/flannel
- name: flannel-cfg
mountPath: /etc/kube-flannel/
- name: xtables-lock
mountPath: /run/xtables.lock
volumes:
- name: run
hostPath:
Expand All @@ -235,3 +237,7 @@ spec:
- name: flannel-cfg
configMap:
name: kube-flannel-cfg
- name: xtables-lock
hostPath:
path: /run/xtables.lock
type: FileOrCreate

0 comments on commit 5f27126

Please sign in to comment.