Aim: To install MicroK8s on Ubuntu Server
Also see k8s docs here.
Download version of Ubuntu Server and create a bootable USB
Easiest to do from another machine running Ubuntu: See the tutorial
Boot from the USB and Install
Plug in the USB and reboot, ensuring your BIOS is set o boot from USB. Follow the guide to continue the setup procedure. Note that the last step of installing security updates will take a long time.
- Do install SSH so you can connect remotely. Suggest downloading keys e.g. from GitHub
microk8s enable dns
microk8s enable storage
microk8s enable helm
MicroK8s comes with it's own microk8s.kubectl cmd, so if you want to you can either configure kubectl or setup an alias
sudo snap install helm --classic
Join a Cluster
On existing node: microk8s add-node
On joining node: microk8s join ...
If the machines are local you might need to add the hostnames to /etc/hosts:
[ip address] [hostname]