Friday, July 14, 2017

First go at kubernetes - minikube on osx with vmwarefusion

Following the instructions https://github.com/kubernetes/minikube it is very quick and easy to get a test up and running.
  1. brew cask install minikube 
  2. minikube start --vm-driver=vmwarefusion 

However the cluster fails to start again after the first time.
Ref: https://github.com/kubernetes/minikube/issues/1382
After making a fresh cluster I put the tar file in by hand.
  1. minikube ssh
  2. sudo cp /Users/[mylogin]/.minikube/machines/minikube/userdata.tar /var/lib/boot2docker/
and it now starts after a stop.

Deploy the dashboard because it looks cool 

kubectl create -f https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml

Strange. First time I had to use kubectl proxy to get to it.

Later that doesn't work but

minikube service list
shows the url it's listening on and that works. Also minicube dashboard now opens it in the default browser.