mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2025-04-25 01:19:28 +02:00
only remove the taints from control plane
This commit is contained in:
parent
16de20c8e4
commit
5f52f7a337
@ -112,7 +112,7 @@
|
|||||||
- not kubernetes_init_stat.stat.exists
|
- not kubernetes_init_stat.stat.exists
|
||||||
|
|
||||||
- name: Allow pods on control plane (if configured).
|
- name: Allow pods on control plane (if configured).
|
||||||
command: "kubectl taint nodes --all node-role.kubernetes.io/control-plane-"
|
command: "kubectl taint nodes {{ item.inventory_hostname_short }} node-role.kubernetes.io/control-plane-"
|
||||||
register: taint_removed
|
register: taint_removed
|
||||||
until: >
|
until: >
|
||||||
("untainted" in taint_removed.stdout) or
|
("untainted" in taint_removed.stdout) or
|
||||||
@ -121,6 +121,7 @@
|
|||||||
failed_when: false
|
failed_when: false
|
||||||
retries: 100
|
retries: 100
|
||||||
delay: 5
|
delay: 5
|
||||||
|
loop: "{{ groups['k8s_control_plane'] }}"
|
||||||
when:
|
when:
|
||||||
- join_ctrl_plane.changed
|
- join_ctrl_plane.changed
|
||||||
- inventory_hostname == groups['k8s_control_plane'][0]
|
- inventory_hostname == groups['k8s_control_plane'][0]
|
||||||
|
Loading…
Reference in New Issue
Block a user