Installing the Microk8s snap couldn’t be much easier. However there are a couple of extra steps and gotchas if you want to install this in a VM on the DigitalOcean.
1 snap install microk8s --classic
You can alias the
commands if you don’t want to keep running
snap alias microk8s.kubectl kubectl
snap alias microk8s.helm helm
Microk8s makes it simple to enable common add-ons the ones we are enabling
# Dashboard for a bit of a nice interface to see what's happening
# Ingress for managing domain names
# Helm so we can install services from templates
When we want to get to our dashboard we can’t login over http, so we need proxy connections to our local workstation. For this we will need to install
locally, luckily this is also available as a snap, so we can install that with a
snap install kubectl
To get the config for your local
you can run another handy command
this will print a config file to the terminal that you can copy the into
then you can run
Before you run the proxy command you can get your access token by running.
1 kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep default-token | cut -d " " -f1)
Now we have setup
locally you can run
to access your cluster from localhost. The URL to your dashboard will be
A blogging strategy that will save you time, increase your SEO health, make that content calendar easy to deal with and help with your sanity.
Lead developer Ade Attwood has moved on to pastures new after 6 years with us. As has now become tradition and as it is a rare event, one last show and tell from Ade. Enjoy!
Multiple times in Web Development you will go through the process of creating a new repository for a new application or project that you are tasked to build. We think it is really important to get the order of tasks correct at the start of a new application…