This commit is contained in:
parent
ed4c1145b6
commit
4786507366
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user