From 9a902be4fcc465f77fcc5f1accba5815b38301e9 Mon Sep 17 00:00:00 2001 From: RomanNum3ral Date: Thu, 26 Mar 2026 11:55:26 +0000 Subject: [PATCH] Add master_node_install.sh --- master_node_install.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 master_node_install.sh diff --git a/master_node_install.sh b/master_node_install.sh new file mode 100644 index 0000000..6d8626d --- /dev/null +++ b/master_node_install.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +read -p "Be sure to have disabled swap! Press enter to continue..." + +sudo pacman -Syu --noconfirm +sudo pacman -S --needed --noconfirm \ + ca-certificates \ + curl \ + docker \ + docker-buildx \ + docker-compose \ + kubeadm \ + kubelet \ + kubectl \ + kubernetes-cnl + +# Build Kubernetes Clulster +kubeadm init +echo "Be sure to copy the join command for the workers!" + +# Get Config +mkdir -p $HOME/.kube +sudo cp -l /etc/kubernetes/admin.conf $HOME/.kube/config +sudo chown $(id -u):$(id -g) $HOME/.kube/config + +#Deploy Container Networking +kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml +kubectl get nodes +