Files
k8s/ansible/install_cni.yaml
2025-06-29 15:32:24 +02:00

15 lines
434 B
YAML

- 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