Canonical Kubernetes is the fastest, easiest way to deploy a fully-conformant Kubernetes cluster. Harnessing pure upstream Kubernetes, this distribution adds the missing pieces (e.g. ingress, dns, networking) for a zero-ops experience.
For more information and instructions, please see the official documentation at: https://documentation.ubuntu.com/canonical-kubernetes
Install Canonical Kubernetes and initialise the cluster with:
sudo snap install k8s --channel=1.32-classic/stable --classic
sudo k8s bootstrap
Confirm the installation was successful:
sudo k8s status
Use kubectl
to interact with k8s:
sudo k8s kubectl get pods -A
Remove the snap with:
sudo snap remove k8s --purge
To build the Kubernetes snap on an Ubuntu machine you need Snapcraft.
sudo snap install snapcraft --classic
Building the project by running snapcraft
in the root of this repository. Snapcraft spawns a VM managed by Multipass and builds the snap inside it. If you don’t have Multipass installed, snapcraft will first prompt for its automatic installation.
After snapcraft completes, you can install the newly compiled snap:
sudo snap install k8s_*.snap --classic --dangerous