Fast and Secure upstream Kubernetes
Designed for developing Kubernetes Workloads locally
This scenario will help you deploy and use Microk8s on Ubuntu. Microk8s is a fast, lightweight, way to run a Kubernetes development. The project was built by the dedicated Kubernetes team at Canonical for the developer community.
Microk8s can be deployed on Ubuntu, Debian, Linux Mint, Gentoo, ArchLinux, Fedora, OpenSUSE and more...
Deploy Microk8s on Ubuntu
Microk8s is deployed via Snaps. Snaps are containerised software packages that are simple to create and install. They auto-update and are safe to run. Moreover, because they bundle their dependencies, they work on all major Linux systems without modification.
The microk8s snap is frequently updated to match each release of Kubernetes. It can be installed using the command below:
snap install microk8s --classic --beta
To avoid colliding with a kubectl already installed and to avoid overwriting any existing Kubernetes configuration file, microk8s adds a microk8s.kubectl command.
To view the newly deployed node, run
microk8s.kubectl get node
If you receive an error it means that microk8s is still starting in the background. Wait a couple of moments and try again.
As with kubectl, it's possible to use the existing commands, such as describing the details of the node.
microk8s.kubectl describe node host01
If you only are using microk8s, consider adding an alias using the following command:
snap alias microk8s.kubectl kubectl