[deploy-env] Pause after restart coredns

Change-Id: Ic7a078b081f663395e526a742fda1dcaf6190a19
This commit is contained in:
Vladimir Kozhukalov
2025-06-24 13:22:20 -05:00
parent 529f0a3dd7
commit 4167d69073

View File

@@ -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