diff --git a/README.md b/README.md index f88d499..2d851c1 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`, `kubelet`, `kubeadm`, `kubectl`, `git`. +- Installs `containerd.io`, `kubelet`, `kubeadm`, `kubectl`, `git`, `vim`. - Sets default config for `containerd` with cGroups enabled. - Enables some `iptables`. - "Resets" `/etc/hosts` file diff --git a/armbian_initial_setup.yaml b/armbian_initial_setup.yaml index e28aee2..86e12c9 100644 --- a/armbian_initial_setup.yaml +++ b/armbian_initial_setup.yaml @@ -10,9 +10,6 @@ ansible_user: "root" ansible_password: "1234" ansible_become_password: "{{ ansible_password }}" -# ansible_user: "orangepi" -# ansible_password: "orangepi" -# ansible_become_password: "orangepi" # Temporal # New values ## Users @@ -25,8 +22,6 @@ new_language: "en_US.UTF-8" - - # SSH with ROOT tasks: @@ -117,6 +112,5 @@ # REBOOT - name: reboot ansible.builtin.shell: 'sleep 1 && dhclient -r && dhclient && reboot' -# ignore_errors: true # expected to fail due the imminent restart ignore_unreachable: true become: yes diff --git a/ksetup/tasks_master.yaml b/ksetup/tasks_master.yaml index 2844fb0..4845ed2 100755 --- a/ksetup/tasks_master.yaml +++ b/ksetup/tasks_master.yaml @@ -27,9 +27,7 @@ owner: "{{ ansible_user_id }}" become: true - # Network Plugin - - name: Calico ansible.builtin.command: "kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/calico.yaml" @@ -37,9 +35,7 @@ - name: Remove Taint (allows deployment in control plane) ansible.builtin.shell: "kubectl taint nodes --all node-role.kubernetes.io/control-plane-" - # Join token / command - - name: Generate join token shell: kubeadm token create --print-join-command register: kubeadm_join_cmd diff --git a/ksetup/tasks_prepare_node.yaml b/ksetup/tasks_prepare_node.yaml index a04830a..9432460 100755 --- a/ksetup/tasks_prepare_node.yaml +++ b/ksetup/tasks_prepare_node.yaml @@ -9,7 +9,7 @@ - name: Swapoff ansible.builtin.command: swapoff -a -- name: Disable ram on boot (orangepi) # Untested +- name: Disable ram on boot (orangepi) # Untested, confident on working. copy: dest: "/etc/default/orangepi-zram-config" content: ENABLED=false @@ -17,7 +17,7 @@ - ansible_distribution | lower == "orangepi" - ansible_architecture == "aarch64" -- name: Disable ram on boot (armbian) # Untested +- name: Disable ram on boot (armbian) copy: dest: "/etc/default/armbian-zram-config" content: ENABLED=false @@ -96,6 +96,7 @@ - kubeadm - kubectl - git # fuck it, you will need it + - vim # fuck it, I need it. - name: Hold kubeadm ansible.builtin.dpkg_selections: