diff --git a/ansible/roles/kubernetes_control_plane/tasks/main.yaml b/ansible/roles/kubernetes_control_plane/tasks/main.yaml index 1810a47..37cca44 100644 --- a/ansible/roles/kubernetes_control_plane/tasks/main.yaml +++ b/ansible/roles/kubernetes_control_plane/tasks/main.yaml @@ -9,3 +9,6 @@ - name: Copy Kubernetes admin configuration on all nodes ansible.builtin.include_tasks: copy-config.yaml + +- name: Remove control plane scheduling restrictions + ansible.builtin.include_tasks: untaint.yaml diff --git a/ansible/roles/kubernetes_control_plane/tasks/untaint.yaml b/ansible/roles/kubernetes_control_plane/tasks/untaint.yaml new file mode 100644 index 0000000..9bba5c5 --- /dev/null +++ b/ansible/roles/kubernetes_control_plane/tasks/untaint.yaml @@ -0,0 +1,7 @@ +- name: Remove control plane NoSchedule taint + kubernetes.core.k8s_taint: + state: absent + name: "{{ ansible_facts['hostname'] }}" + taints: + - key: node-role.kubernetes.io/control-plane + effect: NoSchedule