Installation Using Kubeadm for a Single-Node Kubernetes Cluster
Kubeadm is a tool provided by Kubernetes to create and manage clusters. You can use Kubeadm to set up a single-node Kubernetes cluster on a single server (master node) and run your workloads there.
Step 1: Install Kubernetes Components You will need to install kubeadm
, kubelet
, and kubectl
on your server.
For Ubuntu/Debian-based systems:
# Update the system
sudo apt update && sudo apt upgrade -y
# Install required packages
sudo apt install -y apt-transport-https ca-certificates curl
# Add Kubernetes APT repository
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt update
# Install Kubernetes components
sudo apt install -y kubelet kubeadm kubectl