James's Ramblings

Kubernetes: kubeadm

Created: September 20, 2020

Creating a cluster with kubeadm

Kubernetes Documentation: Cluster Installation With kubeadm

Overview:

  • Run kubeadm init on the primary control node.
  • Create a network.
  • Run kubeadm join on worker nodes and redundant master nodes.

kubeadm-upgrade

Kubernetes Documentation: Upgrading kubeadm clusters

Overview:

  • Upgrade the primary control node.
  • Upgrade additional control nodes.
  • Upgrade worker nodes.

Requirements:

  • Kubernetes version 1.18.0 or later.
  • Swap must be disabled.
  • Static control plane and etcd pods or external etcd.

Recommendations:

  • Read the release notes.
  • Check back-ups.

Turning swap off:

  • List devices: cat /etc/swaps.
  • Turn off all swap devices and files: swapoff -a.
  • Remove any matching references found in /etc/fstab.

Remove cluster info after deleting a node from the cluster

kubeadm reset

  • Residual iptables rules may be left.