Compare commits

..

1 Commits

Author SHA1 Message Date
sholdee
563fbca3be Merge f6ee0c72ef into cddbfc8e40 2024-01-15 21:31:28 -06:00

View File

@@ -73,12 +73,12 @@
command: >- command: >-
{% if item.type == 'daemonset' %} {% if item.type == 'daemonset' %}
k3s kubectl wait pods k3s kubectl wait pods
--namespace='{{ item.namespace }}' --namespace='calico-system'
--selector={{ item.selector }} --selector={{ item.selector }}
--for=condition=Ready --for=condition=Ready
{% else %} {% else %}
k3s kubectl wait {{ item.type }}/{{ item.name }} k3s kubectl wait {{ item.type }}/{{ item.name }}
--namespace='{{ item.namespace }}' --namespace='calico-system'
--for=condition=Available --for=condition=Available
{% endif %} {% endif %}
--timeout=7s --timeout=7s
@@ -88,12 +88,10 @@
retries: 30 retries: 30
delay: 7 delay: 7
with_items: with_items:
- { name: calico-typha, type: deployment, namespace: calico-system } - { name: calico-typha, type: deployment }
- { name: calico-kube-controllers, type: deployment, namespace: calico-system } - { name: calico-kube-controllers, type: deployment }
- { name: csi-node-driver, type: daemonset, selector: 'k8s-app=csi-node-driver', namespace: calico-system } - { name: csi-node-driver, type: daemonset, selector: 'k8s-app=csi-node-driver' }
- { name: calico-node, type: daemonset, selector: 'k8s-app=calico-node', namespace: calico-system } - { name: calico-node, type: daemonset, selector: 'k8s-app=calico-node' }
- { name: calico-apiserver, type: deployment, selector: 'k8s-app=calico-apiserver', namespace: calico-apiserver }
loop_control: loop_control:
label: "{{ item.type }}/{{ item.name }}" label: "{{ item.type }}/{{ item.name }}"
when: ansible_hostname == hostvars[groups[group_name_master | default('master')][0]]['ansible_hostname'] when: ansible_hostname == hostvars[groups[group_name_master | default('master')][0]]['ansible_hostname']
run_once: true # stops "skipped" log spam