Fix bugs, Update for EL8
This commit is contained in:
parent
a4b0c9fc81
commit
cecb684e05
6 changed files with 37 additions and 49 deletions
|
|
@ -100,12 +100,15 @@
|
|||
# - kubernetes_master|bigip_pool
|
||||
|
||||
- name: Check if a node is still tainted
|
||||
command: kubectl get nodes '{{ ansible_hostname | lower }}' -o jsonpath='{.spec.taints}'
|
||||
when: kubernetes_master_taint
|
||||
command: kubectl --kubeconfig=/etc/kubernetes/admin.conf get nodes '{{ ansible_hostname | lower }}' -o jsonpath='{.spec.taints}'
|
||||
register: current_taint
|
||||
when:
|
||||
- kubernetes_master_taint|bool
|
||||
|
||||
- name: taint the machine if needed
|
||||
# command: kubectl --kubeconfig=/etc/kubernetes/admin.conf taint nodes --all node-role.kubernetes.io/master-
|
||||
command: kubectl taint nodes '{{ ansible_hostname | lower }}' node-role.kubernetes.io/master-
|
||||
when: kubernetes_master_taint|bool and current_taint.stdout
|
||||
when:
|
||||
- kubernetes_master_taint|bool
|
||||
- current_taint.stdout
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue