Add 'prepare_k8s.yml'

This commit is contained in:
2024-05-03 19:42:42 +00:00
parent 01cf51cd3c
commit 1602f03145

22
prepare_k8s.yml Normal file
View File

@@ -0,0 +1,22 @@
- name: Setup HAProxy
hosts: all
become: yes
become_method: sudo
become_user: root
tasks:
- name: Install containerd
package:
name: containerd
enabled: true
state: present
- name: Install runc
package:
name: runc
state: present
- name: Install CNI Plugins
command chdir=/tmp {{ item }}
with items:
- wget https://github.com/containernetworking/plugins/releases/download/v1.4.1/cni-plugins-linux-arm64-v1.4.1.tgz
- mkdir -p /opt/cni/bin
- tar Cxzvf /opt/cni/bin cni-plugins-linux-arm64-v1.4.1.tgz
- rm cni-plugins-linux-arm64-v1.4.1.tgz