Running Kubernetes 1.10 using MiniKube on Windows 10 (adding kubectl and helm/tiller)

Lucas Jellema 1

Some quick steps to get Minikube for K8S 1.10 up and running on Windows 10 (presuming VirtualBox has already been installed)

Download kubectl binary from: https://storage.googleapis.com/kubernetes-release/release/v1.11.0/bin/windows/amd64/kubectl.exe 

image

Copy kubectl.exe to any directory of your liking; add that directory to the PATH environment variable.

image

image

Download minikube from https://github.com/kubernetes/minikube/releases 

SNAGHTML111627d0

Download the minikube-windows-amd64.exe file, rename it to minikube.exe and add it to the same directory as the kubectl.exe file – or to any other directory included in the PATH variable.

image

Follow Quick start instructions: https://kubernetes.io/docs/setup/minikube/#quickstart 

minikube start

Some downloading will take place:

image

And after a little while, the minikube cluster is started in VirtualBox:

image

At this point, we start running a Pod – then exposing it and finally accessing it:

kubectl run hello-minikube –image=k8s.gcr.io/echoserver:1.10 –port=8080

kubectl expose deployment hello-minikube –type=NodePort

inspect Pod:

kubectl get pod

inspect service:

image

Retrieve the IP address for the Minikube cluster:

minikube ip

image

Now access the service running inside Kubernetes from the browser running on the host laptop machine:

image

And with that, Kubernetes is set up and ready for business.

Open the dashboard:

image

and the browser will show:

image

One additional step: installation of Helm in Minikube – based on this article: https://medium.com/@JockDaRock/take-the-helm-with-kubernetes-on-windows-c2cd4373104b 

Download the latest version of the compressed executable from the Helm github site, https://github.com/kubernetes/helm/releases.

SNAGHTML112de38e

Click the windows link and it should download to your computer.

image

Extract file helm.exe in folder windows-amd64 inside the archive to – for example – C:\Apps\kubernetes – a directory in the PATH variable

image

Now we can run Helm from the command line:

helm

and install the server side component – Tiller – into minikube:

helm init

image

Visit the KubeApps site, https://hub.kubeapps.com/, to see what helm charts are currently available and instructions on how to install them.

One thought on “Running Kubernetes 1.10 using MiniKube on Windows 10 (adding kubectl and helm/tiller)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Next Post

First Steps with Prometheus and Grafana on Kubernetes on Windows

Facebook0TwitterLinkedinPreparation: before I started with Prometheus, I installed VirtualBox, Minikube with Tiller on my Windows 10 laptop – as described in this article: https://technology.amis.nl/2018/08/13/running-kubernetes-1-10-using-minikube-on-windows-10-adding-kubectl-and-helm-tiller/. I then increased the Base Memory setting for the minikube vm to 8192 MB (the default 2048 MB is not sufficient) After making this change – […]