Update 'k8s/setup_calico.yml'

master
alecsandru 9 months ago
parent 124808ca05
commit 985475dbb3
  1. 3
      k8s/setup_calico.yml

@ -7,6 +7,9 @@
- name: Check if Calico is installed
shell: "k get ns | grep tigera | wc -l"
register: NS_COUNT
- name: debug
debug:
msg: "Got NS COUNT: {{ NS_COUNT.stdout|int }}"
- name: Install Calico Operator
shell: "kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.27.3/manifests/tigera-operator.yaml"
when: NS_COUNT.stdout|int < 1

Loading…
Cancel
Save