Add xtables.lock file to mounts

nodelocaldns needs to use the same iptables lock file to avoid
contention with other entities modifying iptables rules.
This commit is contained in:
Pavithra Ramesh 2019-01-24 13:21:06 -08:00
parent 960705ac98
commit 9611b112eb

View File

@ -136,12 +136,19 @@ spec:
initialDelaySeconds: 60
timeoutSeconds: 5
volumeMounts:
- mountPath: /run/xtables.lock
name: xtables-lock
readOnly: false
- name: config-volume
mountPath: /etc/coredns
volumes:
- name: config-volume
configMap:
name: node-local-dns
items:
- name: xtables-lock
hostPath:
path: /run/xtables.lock
type: FileOrCreate
- name: config-volume
configMap:
name: node-local-dns
items:
- key: Corefile
path: Corefile