From 2e68916722cd893c33a8fba8e8128790eb0a9198 Mon Sep 17 00:00:00 2001 From: Oriol Date: Mon, 13 Mar 2023 22:36:45 +0000 Subject: [PATCH] Added git to its downloads. Slight syntax modifications. --- README.md | 2 +- ksetup/tasks_master.yaml | 29 +---------------------------- ksetup/tasks_prepare_node.yaml | 1 + 3 files changed, 3 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 3535430..f88d499 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ _kubeadm_join_command: Placeholder, will be populated at later stages of the scr - Update -> Upgrade. - Uninstalls `containerd`. - Installs Docker (Debian) and Kubernetes repos. -- Installs `containerd.io`, `kublet`, `kubeadm`, `kubectl`. +- Installs `containerd.io`, `kubelet`, `kubeadm`, `kubectl`, `git`. - Sets default config for `containerd` with cGroups enabled. - Enables some `iptables`. - "Resets" `/etc/hosts` file diff --git a/ksetup/tasks_master.yaml b/ksetup/tasks_master.yaml index 9f3bd9b..2844fb0 100755 --- a/ksetup/tasks_master.yaml +++ b/ksetup/tasks_master.yaml @@ -30,37 +30,10 @@ # Network Plugin -# Download and install Flannel - -#- name: Download and install Flannel -# ansible.builtin.get_url: -# url: https://github.com/flannel-io/flannel/releases/download/v0.19.2/flanneld-arm64 -# dest: /usr/local/bin/flanneld -# owner: root -# group: root -# mode: '0755' -# -#- name: Create Flannel networks directory -# ansible.builtin.file: -# path: /var/lib/k8s/flannel/networks -# state: directory -# recurse: yes -# owner: root -# group: root -# mode: '0755' -#- -# - name: Calico ansible.builtin.command: "kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/calico.yaml" -#- name: Calico Tigera ? -# ansible.builtin.shell: "kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/tigera-operator.yaml" -# become_user: some_user -#- name: Calico Custom resources ? -# ansible.builtin.command: "kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/custom-resources.yaml" -# -# -## Remove taints +# Remove taints - name: Remove Taint (allows deployment in control plane) ansible.builtin.shell: "kubectl taint nodes --all node-role.kubernetes.io/control-plane-" diff --git a/ksetup/tasks_prepare_node.yaml b/ksetup/tasks_prepare_node.yaml index f8e02ec..a04830a 100755 --- a/ksetup/tasks_prepare_node.yaml +++ b/ksetup/tasks_prepare_node.yaml @@ -95,6 +95,7 @@ - kubelet - kubeadm - kubectl + - git # fuck it, you will need it - name: Hold kubeadm ansible.builtin.dpkg_selections: