Jump to content

Kubernetes: Difference between revisions

33 bytes removed ,  26 January 2022
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
# 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 104: Line 103:
<pre>
<pre>
# Disable swap
# Disable swap
sudo swapoff -a
sudo swapoff -a && sudo sed -i '/swap/s/^/#/' /etc/fstab
# 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 <...>