5,322
edits
Line 88: | Line 88: | ||
# Disable swap | # Disable swap | ||
sudo swapoff -a && sudo sed -i '/swap/s/^/#/' /etc/fstab | sudo swapoff -a && sudo sed -i '/swap/s/^/#/' /etc/fstab | ||
sudo kubeadm init \ | sudo kubeadm init \ | ||
--cri-socket=/run/containerd/containerd.sock \ | --cri-socket=/run/containerd/containerd.sock \ | ||
Line 104: | Line 103: | ||
<pre> | <pre> | ||
# Disable swap | # Disable swap | ||
sudo swapoff -a | sudo swapoff -a && sudo sed -i '/swap/s/^/#/' /etc/fstab | ||
# | |||
# Add the line to join the cluster here | # Add the line to join the cluster here | ||
# kubeadm join <ip>:6443 --token <...> --discovery-token-ca-cert-hash <...> | # kubeadm join <ip>:6443 --token <...> --discovery-token-ca-cert-hash <...> |