Skip to content

Latest commit

 

History

History
28 lines (27 loc) · 1.04 KB

02-install-configure-microk8s.md

File metadata and controls

28 lines (27 loc) · 1.04 KB

Install and Configure MikroK8s

To deploy Kubernetes on your Ubuntu-powered device install the microk8s snap.

This tutorial uses the 1.25 channel version

sudo snap install microk8s --classic --channel=1.25

To enable the microk8s command for your current user, run the following commands:

sudo usermod -a -G microk8s $USER
sudo chown -f -R $USER ~/.kube
newgrp microk8s

To validate the microk8s installation you can run the following command to display the current status of microk8s and enabled/disabled addons:

After installing the microk8s snap it can take a couple of minutes until the status becomes healthy

microk8s status

If it successfully displays the microk8s status, you are ready to operate via kubectl like shown in the following example:

microk8s.kubectl get nodes

To not type microk8s.kubectl every time, feel free to use this alias:

echo 'alias kubectl="microk8s kubectl"' >> ~/.bashrc && source ~/.bashrc

Next: deploy minio and postgres