Merge pull request #73293 from prameshj/nodelocal-update

Modify nodelocaldns yaml to include updateStrategy and xtables.lock
This commit is contained in:
Kubernetes Prow Robot 2019-01-24 20:07:57 -08:00 committed by GitHub
commit 7d91e1223d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,9 @@ metadata:
kubernetes.io/cluster-service: "true" kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile addonmanager.kubernetes.io/mode: Reconcile
spec: spec:
updateStrategy:
rollingUpdate:
maxUnavailable: 10%
selector: selector:
matchLabels: matchLabels:
k8s-app: node-local-dns k8s-app: node-local-dns
@ -133,9 +136,16 @@ 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: xtables-lock
hostPath:
path: /run/xtables.lock
type: FileOrCreate
- name: config-volume - name: config-volume
configMap: configMap:
name: node-local-dns name: node-local-dns