Update 'k8s/setup_calico.yml'
This commit is contained in:
		@@ -20,9 +20,10 @@
 | 
				
			|||||||
  - name: Setup Calico Instance
 | 
					  - name: Setup Calico Instance
 | 
				
			||||||
    shell: "{{ item }} chdir=$HOME/calico"
 | 
					    shell: "{{ item }} chdir=$HOME/calico"
 | 
				
			||||||
    with_items:
 | 
					    with_items:
 | 
				
			||||||
      - "curl https://raw.githubusercontent.com/projectcalico/calico/v3.27.3/manifests/custom-resources.yaml -O"
 | 
					      - "curl https://raw.githubusercontent.com/projectcalico/calico/v3.27.3/manifests/custom-resources.yaml | sed -e "s:192.168.0.0/16:{{ POD_NETWORK_CIDR }}:g" | kubectl apply -f -"
 | 
				
			||||||
      - "sed -i 's:192.168.0.0/16:{{ POD_NETWORK_CIDR }}:g' $HOME/calico/custom-resources.yaml"
 | 
					      # - "curl https://raw.githubusercontent.com/projectcalico/calico/v3.27.3/manifests/custom-resources.yaml -O"
 | 
				
			||||||
      - "kubectl apply -f $HOME/calico/custom-resources.yaml"
 | 
					      # - "sed -i -e 's:192.168.0.0/16:{{ POD_NETWORK_CIDR }}:g' $HOME/calico/custom-resources.yaml"
 | 
				
			||||||
 | 
					      # - "kubectl apply -f $HOME/calico/custom-resources.yaml"
 | 
				
			||||||
    args: 
 | 
					    args: 
 | 
				
			||||||
      creates: $HOME/calico/custom-resources.yaml
 | 
					      creates: $HOME/calico/custom-resources.yaml
 | 
				
			||||||
  - name: Check if Metrics API is installed
 | 
					  - name: Check if Metrics API is installed
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user