first_commit
This commit is contained in:
14
ansible/install_cni.yaml
Normal file
14
ansible/install_cni.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
- name: Install Kubernetes CNI
|
||||
hosts: k8s_control_plane
|
||||
become: true
|
||||
tasks:
|
||||
- name: Download Calico manifest
|
||||
get_url:
|
||||
url: https://raw.githubusercontent.com/projectcalico/calico/v3.27.3/manifests/calico.yaml
|
||||
dest: /tmp/calico.yaml
|
||||
mode: '0644'
|
||||
|
||||
- name: Apply Calico CNI plugin
|
||||
shell: kubectl apply -f /tmp/calico.yaml
|
||||
environment:
|
||||
KUBECONFIG: /etc/kubernetes/admin.conf
|
Reference in New Issue
Block a user