parent
c273d4a34b
commit
dd76660094
@ -0,0 +1,18 @@ |
|||||||
|
- name: Setup Calico CNI Plugin |
||||||
|
hosts: root_master |
||||||
|
# become: yes |
||||||
|
# become_method: sudo |
||||||
|
# become_user: root |
||||||
|
tasks: |
||||||
|
- name: Install Calico Operator |
||||||
|
shell: "kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.27.3/manifests/tigera-operator.yaml" |
||||||
|
- name: Create Calico setup dir |
||||||
|
file: |
||||||
|
path: $HOME/calico |
||||||
|
state: directory |
||||||
|
- name: Setup Calico Instance |
||||||
|
shell: "{{ item }} chdir=$HOME/calico" |
||||||
|
with_items: |
||||||
|
- "curl https://raw.githubusercontent.com/projectcalico/calico/v3.27.3/manifests/custom-resources.yaml -O" |
||||||
|
- "sed -i 's:192.168.0.0/16:{{ POD_CIDR_NETWORK }}/g' custom-resources.yaml" |
||||||
|
- "kubectl apply -f custom-resources.yaml" |
Loading…
Reference in new issue