mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	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:
		@@ -136,12 +136,19 @@ spec:
 | 
				
			|||||||
          initialDelaySeconds: 60
 | 
					          initialDelaySeconds: 60
 | 
				
			||||||
          timeoutSeconds: 5
 | 
					          timeoutSeconds: 5
 | 
				
			||||||
        volumeMounts:
 | 
					        volumeMounts:
 | 
				
			||||||
 | 
					        - mountPath: /run/xtables.lock
 | 
				
			||||||
 | 
					          name: xtables-lock
 | 
				
			||||||
 | 
					          readOnly: false
 | 
				
			||||||
        - name: config-volume
 | 
					        - name: config-volume
 | 
				
			||||||
          mountPath: /etc/coredns
 | 
					          mountPath: /etc/coredns
 | 
				
			||||||
      volumes:
 | 
					      volumes:
 | 
				
			||||||
        - name: config-volume
 | 
					      - name: xtables-lock
 | 
				
			||||||
          configMap:
 | 
					        hostPath:
 | 
				
			||||||
            name: node-local-dns
 | 
					          path: /run/xtables.lock
 | 
				
			||||||
            items:
 | 
					          type: FileOrCreate
 | 
				
			||||||
 | 
					      - name: config-volume
 | 
				
			||||||
 | 
					        configMap:
 | 
				
			||||||
 | 
					          name: node-local-dns
 | 
				
			||||||
 | 
					          items:
 | 
				
			||||||
            - key: Corefile
 | 
					            - key: Corefile
 | 
				
			||||||
              path: Corefile
 | 
					              path: Corefile
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user