Openstack and kubernetes in 5 minutes

This is a test to try Openststack and Kubernetes on single node (my workstation). It’s not a pruduction setup

Host OS: Ubuntu 20.04


It will install all core components of OpenStack: Keystone, Nova, Neutron, Glance, and Cinder.

sudo snap install microstack --edge --devmode

(WARNING: used devmode you cannot get auto-update)

sudo microstack.init --auto

The dashboard will be available at

the default username and password is:

username: admin

password: keystone

Since a lot of resources will be used, you can suspend the OpenStack services by freeing up resources on our workstation with:

sudo snap disable microstack

You can reactivate it with

sudo snap enable microstack


All core components will be installed

sudo snap install microk8s --classic

You can enable the dashboard with:

sudo microk8s enable dashboard

Add our user to microk8s group

sudo usermod -a -G microk8s <nome utente>
sudo chown -f -R <nome utente> ~/.kube

Get the token access with:

token=$(microk8s kubectl -n kube-system get secret | grep default-token | cut -d " " -f1)

Show the content of token with:

microk8s kubectl -n kube-system describe secret $token

Now you can start the dashboard port forward:

microk8s kubectl port-forward -n kube-system service/kubernetes-dashboard 10443:443

Now you can login to the console on https://localhost:10443 pasting the saved token

The dashboard will be show

When you are ok, you can stop services with:

sudo snap disable microk8