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.25 series:
sudo snap install microk8s --classic --channel=1.25/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:
1.26/stable: v1.26.1 2023-02-07 (4595) 176MB classic
1.26/candidate: v1.26.1 2023-01-28 (4595) 176MB classic
1.26/beta: v1.26.1 2023-01-28 (4595) 176MB classic
1.26/edge: v1.26.2 2023-03-01 (4812) 177MB classic
latest/stable: v1.26.1 2023-02-08 (4595) 176MB classic
latest/candidate: v1.26.1 2023-01-19 (4519) 180MB classic
latest/beta: v1.26.1 2023-01-19 (4519) 180MB classic
latest/edge: v1.26.2 2023-03-03 (4828) 181MB classic
dqlite/stable: –
dqlite/candidate: –
dqlite/beta: –
dqlite/edge: v1.16.2 2019-11-07 (1038) 189MB classic
1.27/stable: –
1.27/candidate: –
1.27/beta: –
1.27/edge: v1.27.0-alpha.3 2023-03-03 (4836) 181MB classic
1.26-strict/stable: v1.26.1 2023-02-23 (4596) 176MB -
1.26-strict/candidate: v1.26.1 2023-01-29 (4596) 176MB -
1.26-strict/beta: v1.26.1 2023-01-29 (4596) 176MB -
1.26-strict/edge: v1.26.2 2023-03-01 (4811) 177MB -
1.25-strict/stable: v1.25.6 2023-01-29 (4504) 174MB -
1.25-strict/candidate: v1.25.6 2023-01-28 (4504) 174MB -
1.25-strict/beta: v1.25.6 2023-01-28 (4504) 174MB -
1.25-strict/edge: v1.25.7 2023-02-28 (4801) 175MB -
1.25/stable: v1.25.6 2023-02-07 (4565) 174MB classic
1.25/candidate: v1.25.6 2023-01-28 (4565) 174MB classic
1.25/beta: v1.25.6 2023-01-28 (4565) 174MB classic
1.25/edge: v1.25.7 2023-02-28 (4802) 175MB classic
1.24-eksd/stable: v1.24-8 2023-02-07 (4594) 171MB classic
1.24-eksd/candidate: v1.24-11 2023-02-24 (4759) 171MB classic
1.24-eksd/beta: v1.24-11 2023-02-24 (4759) 171MB classic
1.24-eksd/edge: v1.24-11 2023-02-28 (4793) 171MB classic
1.24/stable: v1.24.10 2023-02-02 (4561) 224MB classic
1.24/candidate: v1.24.10 2023-01-27 (4561) 224MB classic
1.24/beta: v1.24.10 2023-01-27 (4561) 224MB classic
1.24/edge: v1.24.11 2023-02-28 (4785) 225MB classic
1.23-eksd/stable: v1.23-13 2023-02-05 (4580) 167MB classic
1.23-eksd/candidate: v1.23-16 2023-02-24 (4758) 167MB classic
1.23-eksd/beta: v1.23-16 2023-02-24 (4758) 167MB classic
1.23-eksd/edge: v1.23-16 2023-02-23 (4758) 167MB classic
1.23/stable: v1.23.16 2023-01-28 (4549) 212MB classic
1.23/candidate: v1.23.16 2023-01-23 (4549) 212MB classic
1.23/beta: v1.23.16 2023-01-23 (4549) 212MB classic
1.23/edge: v1.23.17 2023-02-28 (4788) 213MB classic
1.22-eksd/stable: v1.22-21 2023-03-05 (4756) 164MB classic
1.22-eksd/candidate: v1.22-21 2023-02-24 (4756) 164MB classic
1.22-eksd/beta: v1.22-21 2023-02-24 (4756) 164MB classic
1.22-eksd/edge: v1.22-21 2023-02-23 (4756) 164MB classic
1.22/stable: v1.22.17 2022-12-18 (4374) 187MB classic
1.22/candidate: v1.22.17 2022-12-10 (4374) 187MB classic
1.22/beta: v1.22.17 2022-12-10 (4374) 187MB classic
1.22/edge: v1.22.17 2023-02-16 (4705) 187MB classic
1.21/stable: v1.21.13 2022-07-20 (3410) 191MB classic
1.21/candidate: v1.21.13 2022-07-09 (3410) 191MB classic
1.21/beta: v1.21.13 2022-07-09 (3410) 191MB classic
1.21/edge: v1.21.13 2022-06-08 (3410) 191MB classic
...
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