Installing a K3s cluster
This content provides a summary of how to install K3s, a lightweight and small Kubernetes cluster, on Ubuntu. For more information, see the K3s documentation .
Note: If installed, uninstall kubectl before completing the following steps.
Procedure
Either login as root or elevate to root with
sudo -iThe full hostname of your machine must contain at least two dots. Check the full hostname:
hostnameIf you need to update it (for example, from
k3stok.3.s), use the following pattern:hostnamectl hostname k.3.sInstall K3s:
curl -sfL https://get.k3s.io | sh -Choose the image registry types: remote image registry or edge cluster local registry. Image registry is the place that will hold the agent image and agent cronjob image.