Add master_node_install.sh

This commit is contained in:
RomanNum3ral 2026-03-26 11:55:26 +00:00
parent 967d168b1f
commit 9a902be4fc
1 changed files with 29 additions and 0 deletions

29
master_node_install.sh Normal file
View File

@ -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