Debug taints
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-11-18 17:54:13 +01:00
parent ed4c1145b6
commit 4786507366

View File

@ -11,6 +11,16 @@
INSTALL_K3S_EXEC: 'server --cluster-init --disable local-storage' INSTALL_K3S_EXEC: 'server --cluster-init --disable local-storage'
when: ansible_facts.services['k3s.service'] is undefined when: ansible_facts.services['k3s.service'] is undefined
- ansible.builtin.shell:
cmd: >-
kubectl get nodes -o go-template='{{range $item := .items}}{{with $nodename := $item.metadata.name}}{{range $taint := $item.spec.taints}}{{if (eq $taint.effect "NoSchedule")}}{{printf "%s\n" $nodename}}{{end}}{{end}}{{end}}{{end}}'
kubectl get nodes -o jsonpath='{range .items[]}{.metadata.name}{"\t"}{.spec.taints[].effect}{"\n"}{end}'
with_sequence: count=50
register: taints
- debug:
var: taints
- name: Ensure API availability - name: Ensure API availability
ansible.builtin.uri: ansible.builtin.uri:
url: https://{{ vapp['guestinfo.ipaddress'] }}:6443/livez?verbose url: https://{{ vapp['guestinfo.ipaddress'] }}:6443/livez?verbose