Kubernetes: Difference between revisions

Line 86: Line 86:
# Disable swap
# Disable swap
sudo swapoff -a
sudo swapoff -a
# Comment out any swap in /etc/fstab
sudo kubeadm init \
sudo kubeadm init \
   --cri-socket=/run/containerd/containerd.sock \
   --cri-socket=/run/containerd/containerd.sock \
Line 100: Line 101:
Run the following on worker nodes.
Run the following on worker nodes.
<pre>
<pre>
# Disable swap
sudo swapoff -a
sudo swapoff -a
# Comment out any swap in /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 <...>