Visit the official information for installing Minikube: https://kubernetes.io/docs/tasks/tools/install-minikube/
You need to install Virtualbox, Minikube, and kubectl.
Once installed, run:
minikube start
This will start a VM in the background and will keep running. When you don't want it, you can run minikube stop
.
Enable the dashboard:
minikube addons enable dashboard
minikube dashboard
Download the .yaml file and save somewhere.
Either upload the file with the dashbard - there is a "Create" button at the top right. Or use the command line:
kubectl config use-context minikube
kubectl apply -f design-ubuntu-localhost.yaml
Wait a few minutes. You can view the status in the dashboard with minikube dashboard
. You can test if it is up with:
curl -I -H 'Host: design.ubuntu.localhost' `minikube ip`
Add the minikube ip
output to your /etc/hosts
file to view it in a web browser. In the hosts file:
[IP FROM COMMAND] design.ubuntu.localhost
# My entry:
# 192.168.99.100 design.ubuntu.localhost
Then visit http://design.ubuntu.localhost