12
This commit is contained in:
parent
8e77f6eda9
commit
4022aafe7c
4
Makefile
4
Makefile
@ -21,3 +21,7 @@ upgrade:
|
||||
|
||||
clear-ctrlr:
|
||||
bash reset-ctrlr.sh
|
||||
|
||||
remove-containerd:
|
||||
apt update
|
||||
apt purge -y containerd
|
||||
|
@ -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 )
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user