This commit is contained in:
Eliezer Croitoru 2024-01-28 11:05:27 +00:00
parent 8e77f6eda9
commit 4022aafe7c
3 changed files with 13 additions and 2 deletions

View File

@ -21,3 +21,7 @@ upgrade:
clear-ctrlr:
bash reset-ctrlr.sh
remove-containerd:
apt update
apt purge -y containerd

View File

@ -1,3 +1,9 @@
#!/usr/bin/env bash
kubeadm init --control-plane-endpoint=172.16.250.216 --node-name $(hostname -f ) --pod-network-cidr=10.244.0.0/16
kubeadm config images pull --cri-socket /run/containerd/containerd.sock
kubeadm init \
--pod-network-cidr=10.244.0.0/16 \
--upload-certs \
--node-name $(hostname -f )
--control-plane-endpoint=$(hostname -f )

View File

@ -8,7 +8,8 @@ mkdir -p /etc/containerd
containerd config default | tee /etc/containerd/config.toml
sed -i -e "s@SystemdCgroup = false@SystemdCgroup = true@g" /etc/containerd/config.toml
sed -i -e "s@SystemdCgroup = false@SystemdCgroup = true@g" \
/etc/containerd/config.toml
echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/010-k8s.conf
echo "br_netfilter" > /etc/modules-load.d/k8s.conf