If you are using Ubuntu, the quickest way to get started is to install MicroK8s directly from the snap store by clicking the “Install” button.
However, you can also install MicroK8s from the command line:
sudo snap install microk8s --classic
If you are using a different Linux distribution, you will have to install snapd first. Refer to Snapd documentation for more information on installing snapd on your Linux distribution.
For other platforms (Windows, macOS, Raspberry Pi etc) and install methods, please see the MicroK8s documentation
MicroK8s is a snap and as such it is frequently updated to each release of Kubernetes. To follow a specific upstream release series it’s possible to select a channel during installation. For example, to follow the v1.18 series:
sudo snap install microk8s --classic --channel=1.18/stable
Channels are made up of a track and an expected level of MicroK8s’ stability. Try snap info microk8s
to see what versions are currently published. At the time of this writing we have:
channels:
latest/stable: v1.19.0 2020-09-08 (1668) 214MB classic
latest/candidate: v1.19.0 2020-09-03 (1668) 214MB classic
latest/beta: v1.19.0 2020-09-03 (1668) 214MB classic
latest/edge: v1.19.0 2020-09-04 (1673) 214MB classic
dqlite/stable: –
dqlite/candidate: –
dqlite/beta: –
dqlite/edge: v1.16.2 2019-11-07 (1038) 189MB classic
1.19/stable: v1.19.0 2020-09-03 (1667) 214MB classic
1.19/candidate: v1.19.0 2020-09-02 (1667) 214MB classic
1.19/beta: v1.19.0 2020-09-02 (1667) 214MB classic
1.19/edge: v1.19.0 2020-09-04 (1674) 214MB classic
1.18/stable: v1.18.8 2020-08-25 (1609) 201MB classic
1.18/candidate: v1.18.8 2020-08-17 (1609) 201MB classic
1.18/beta: v1.18.8 2020-08-17 (1609) 201MB classic
1.18/edge: v1.18.8 2020-08-13 (1609) 201MB classic
1.17/stable: v1.17.11 2020-08-25 (1608) 179MB classic
1.17/candidate: v1.17.11 2020-08-21 (1608) 179MB classic
1.17/beta: v1.17.11 2020-08-21 (1608) 179MB classic
1.17/edge: v1.17.11 2020-08-13 (1608) 179MB classic
1.16/stable: v1.16.14 2020-08-23 (1606) 179MB classic
1.16/candidate: v1.16.15 2020-09-04 (1671) 179MB classic
1.16/beta: v1.16.15 2020-09-04 (1671) 179MB classic
1.16/edge: v1.16.15 2020-09-02 (1671) 179MB classic
1.15/stable: v1.15.11 2020-03-27 (1301) 171MB classic
1.15/candidate: v1.15.11 2020-03-27 (1301) 171MB classic
1.15/beta: v1.15.11 2020-03-27 (1301) 171MB classic
1.15/edge: v1.15.11 2020-03-26 (1301) 171MB classic
1.14/stable: v1.14.10 2020-01-06 (1120) 217MB classic
1.14/candidate: ↑
1.14/beta: ↑
1.14/edge: v1.14.10 2020-03-26 (1303) 217MB classic
1.13/stable: v1.13.6 2019-06-06 (581) 237MB classic
1.13/candidate: ↑
1.13/beta: ↑
1.13/edge: ↑
1.12/stable: v1.12.9 2019-06-06 (612) 259MB classic
1.12/candidate: ↑
1.12/beta: ↑
1.12/edge: ↑
1.11/stable: v1.11.10 2019-05-10 (557) 258MB classic
1.11/candidate: ↑
1.11/beta: ↑
1.11/edge: ↑
1.10/stable: v1.10.13 2019-04-22 (546) 222MB classic
1.10/candidate: ↑
1.10/beta: ↑
1.10/edge: ↑
You may need to configure your firewall to allow pod-to-pod and pod-to-internet communication:
sudo ufw allow in on cni0 && sudo ufw allow out on cni0
sudo ufw default allow routed