mirror of
https://github.com/outbackdingo/terraform-render-bootstrap.git
synced 2026-01-27 18:20:40 +00:00
Mount /run/xtables.lock in flannel Daemonset
* Mount xtables.lock (like Calico and Cilium) since iptables may be called by other processes (kube-proxy)
This commit is contained in:
@@ -75,6 +75,8 @@ spec:
|
||||
mountPath: /etc/kube-flannel/
|
||||
- name: run-flannel
|
||||
mountPath: /run/flannel
|
||||
- name: xtables-lock
|
||||
mountPath: /run/xtables.lock
|
||||
volumes:
|
||||
- name: flannel-config
|
||||
configMap:
|
||||
@@ -89,3 +91,8 @@ spec:
|
||||
- name: cni-conf-dir
|
||||
hostPath:
|
||||
path: /etc/kubernetes/cni/net.d
|
||||
# Access iptables concurrently
|
||||
- name: xtables-lock
|
||||
hostPath:
|
||||
type: FileOrCreate
|
||||
path: /run/xtables.lock
|
||||
|
||||
@@ -74,6 +74,8 @@ spec:
|
||||
- name: ssl-certs-host
|
||||
mountPath: /etc/ssl/certs
|
||||
readOnly: true
|
||||
- name: xtables-lock
|
||||
mountPath: /run/xtables.lock
|
||||
volumes:
|
||||
- name: kubeconfig
|
||||
configMap:
|
||||
@@ -84,3 +86,8 @@ spec:
|
||||
- name: ssl-certs-host
|
||||
hostPath:
|
||||
path: ${trusted_certs_dir}
|
||||
# Access iptables concurrently
|
||||
- name: xtables-lock
|
||||
hostPath:
|
||||
type: FileOrCreate
|
||||
path: /run/xtables.lock
|
||||
|
||||
Reference in New Issue
Block a user