From 1602f03145af6afa407be065938fad9250607944 Mon Sep 17 00:00:00 2001 From: alecsandru Date: Fri, 3 May 2024 19:42:42 +0000 Subject: [PATCH] Add 'prepare_k8s.yml' --- prepare_k8s.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 prepare_k8s.yml diff --git a/prepare_k8s.yml b/prepare_k8s.yml new file mode 100644 index 0000000..e4edba3 --- /dev/null +++ b/prepare_k8s.yml @@ -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 \ No newline at end of file