Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ad7195fd authored by Damien Saucez's avatar Damien Saucez
Browse files

masters can be workers

parent 922dbf3b
Branches
No related tags found
No related merge requests found
...@@ -51,6 +51,12 @@ ...@@ -51,6 +51,12 @@
- name: Wait for the node to be ready - name: Wait for the node to be ready
ansible.builtin.include_tasks: k8s-ready.yaml ansible.builtin.include_tasks: k8s-ready.yaml
- name: Allow masters to be workers if in workers
hosts: masters:&workers
tasks:
- name: Remove NoSchedule
shell: "kubectl taint nodes {{ hostvars[inventory_hostname]['name'] | default(inventory_hostname) }} node-role.kubernetes.io/control-plane:NoSchedule-"
- name: Install k8s nodes - name: Install k8s nodes
hosts: workers:!masters hosts: workers:!masters
vars: vars:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment