Merge "[deploy-env] Pause after restart coredns"
This commit is contained in:
@@ -51,6 +51,17 @@
|
||||
kubectl rollout status -n kube-system deployment/coredns
|
||||
when: inventory_hostname in (groups['primary'] | default([]))
|
||||
|
||||
- name: Give coredns time to restart
|
||||
pause:
|
||||
seconds: 30
|
||||
when: inventory_hostname in (groups['primary'] | default([]))
|
||||
|
||||
- name: Get coredns rollout restart status
|
||||
become: false
|
||||
shell: |
|
||||
kubectl rollout status -n kube-system deployment/coredns
|
||||
when: inventory_hostname in (groups['primary'] | default([]))
|
||||
|
||||
- name: Use coredns as default DNS resolver
|
||||
copy:
|
||||
src: files/cluster_resolv.conf
|
||||
|
||||
Reference in New Issue
Block a user