Basic Kubernetes install with microk8s
microk8s is an open-source lightweight low-ops system using core Kubernetes components. .
Last updated
microk8s is an open-source lightweight low-ops system using core Kubernetes components. .
Last updated
In order to run utopia on a single node VM using microk8s, all you need is a vm running Ubuntu LTS environment, see documentation for version.
Check out this video, or follow with the documentation below
Log into your VM terminal and run:
This will install microk8s. once this is completed you can run:
This will give your user access to microk8s and assign the ~/.kube directory to your user You may need to logout and log back into your VM for these to take effect.
Then add storage capabilities:
you can also enable some metric scraping tools for monitoring
and lastly you will need to enable metallb for loadbalancer capabilities. To make things simple, get the external IP of your VM, the run:
you will be prompted for an IP range, you can input your vm IP as a range. EG: 192.168.15.42-192.168.15.42
This will make sure the utopia ingress loadbalancer is given this IP.
Before you install Utopia, it is recommended to add your kube config details to your local kube config to allow ease of access from your local machine.
To view your new config you can run:
you can then take these details and add them to your local config file. This file is usually found in ~/.kube
Once you have done this you can continue installation as per the Kubernetes installation guide. Alternatively you can import your helm chart to the VM, in this case microk8s already comes with kubectl and helm installed, so the installation command on the VM just becomes
once installed and everything has provisioned. All you need to do is create your DNS 'A' records with the VM IP and the ingress names you have chosen.