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

Lucas Jellema 1
0 0
Read Time:1 Minute, 40 Second

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.

About Post Author

Lucas Jellema

Lucas Jellema, active in IT (and with Oracle) since 1994. Oracle ACE Director and Oracle Developer Champion. Solution architect and developer on diverse areas including SQL, JavaScript, Kubernetes & Docker, Machine Learning, Java, SOA and microservices, events in various shapes and forms and many other things. Author of the Oracle Press book Oracle SOA Suite 12c Handbook. Frequent presenter on user groups and community events and conferences such as JavaOne, Oracle Code, CodeOne, NLJUG JFall and Oracle OpenWorld.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

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

Comments are closed.

Next Post

First Steps with Prometheus and Grafana on Kubernetes on Windows

Preparation: 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 – […]
%d bloggers like this: