Creating a single control-plane cluster with kubeadm v1.22
k8s1.20后使用runtime做为pod的运行
环境
部署
一、Installing kubeadm
1.Letting iptables see bridged traffic
2.Installing runtime
cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf
overlay
br_netfilter
EOF
sudo modprobe overlay
sudo modprobe br_netfilter
# Setup required sysctl params, these persist across reboots.
cat <<EOF | sudo tee /etc/sysctl.d/99-kubernetes-cri.conf
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-ip6tables = 1
EOF
# Apply sysctl params without reboot
sudo sysctl --system3.Installing kubeadm, kubelet and kubectl
Last updated