Install MicroK8s with Multipass
First, install Multipass for your operating system:
With multipass installed, you can now create a VM to run MicroK8s. At least 8 Gigabytes of RAM and 40G of storage is recommended – you can pass these requirements when you launch the VM:
You can now find the IP address which has been allocated by running:
Will return something like:
Take a note of this IP as you will need to add it to your
Run a shell into your VM:
Install the MicroK8s snap and configure the network:
You will also need to add
ubuntu user to
microk8s group as follows:
Then, enable the following required add-ons:
Enable TokenRequest feature (required by Istio) by passing in extra argument to the api server.
If you don't see any content, try exiting the multipass vm and entering again.
Add the lines:
Make sure this line is set to these values:
Save your changes. Execute to make changes take effect
Check microk8s is running with
If you see a "not running" error, run
- Since the api server was just changed, it's most likely that's where the error is.
- Check what reports as "FAIL"
- Assuming it's the api server
- Untar the report file, go to the daemon-apiserver folder, open
- Search for "error" and see what comes up.
Download the latest
opctlfor your operating system from our release page.
Run the following command to initialize a
params.yamltemplate for microk8s:
If you don't have a loadbalancer, and want to use a local one, you can use metallb.
params.yamlbefore applying, follow the instructions in the template, you can also refer to the configuration files section.
See configuration metallb for metallb specific details.
- Get Kubernetes config from MicroK8s:
- Finally, run the following command to deploy to your cluster:
The CLI will display the URL for accessing Onepanel once the deployment completes.
- To get access to this new cluster via browser, we need to carry out extra steps.
Example request flow
Execute these steps in the host machine.
Grab the IP address for your microk8s. Example:
Add an entry to your hosts file to point to the fqdn you setup in
Adding this entry means the host browser will try to access the multipass vm we setup for microk8s.
Next, enter into multipass VM
Execute inside the multipass VM
Inside the multipass VM, add an entry to the
Once you have entered and saved the host change, verify you the onepanel website is running.
You can debug the request with
curl -vvv app.alex.xyz
We need a listener running on port 80. That listener should direct traffic to the istio gateway.
This will run actively in the current terminal prompt.
Now, go back to your host machine, open your internet browser and go to:
You should see the website load up.
- Use the following command to get your auth token to log into Onepanel: