Skip to content

Instantly share code, notes, and snippets.

@trisberg
Last active August 23, 2023 00:10
Show Gist options
  • Save trisberg/a5d03787b4d575ffe1a4e4c9cde309d5 to your computer and use it in GitHub Desktop.
Save trisberg/a5d03787b4d575ffe1a4e4c9cde309d5 to your computer and use it in GitHub Desktop.
Setting up Minikube and Helm on Windows 10

Setting up Minikube and Helm on Windows 10

Start with a basic Windows 10 Home or Pro installation. Some of the executables require to be on the system path. Simply create a bin folder under the home folder, add that folder to the "User variable" Path via "Environment Variables for your account" in "Windows Settings". That way any executable copied to this bin folder will automatically be on the path.

Development Tools

Install 7-Zip to be able to extract a variety of archive formats. After this install any typical apps needed for software development like Git and Visual Studio Code.

Also download curl and extract the package files and copy the files in the AMD64 folder to the bin folder. If, when running curl from the PowerShell command line there is a prompt saying something like "cmdlet Invoke-WebRequest ..." then this is from an alias that seems to be installed by default. Remove the alias by running Remove-item alias:curl from the command line.

Minikube and kubectl

Next up is installing Minikube which runs a single node Kubernetes cluster on a local system.

There are multiple ways to get Minikube running on Windows, but for the time being, the least involved installation consists of installing "Docker Tool Box for Windows" together with Minikube.

NOTE: Minikube requires a Hypervisor. The Docker Tool Box for Windows includes VirtualBox, so this step should not be needed if following these instructions.

Install Docker Tool Box for Windows accepting all defaults including the VirtualBox install.

Next, download the latest Minikube minikube-windows-amd64 release. Rename the downloaded file to minikube.exe and place it on the system path in the bin folder.

Minikube also requires kubectl which is the Kubernetes CLI. The easiest way to install this is to download kubectl using curl. Use this curl command:

curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/windows/amd64/kubectl.exe

and then move this executable to the bin folder.

Start the "Docker Quickstart Terminal" and then run Minikube by just entering:

minikube start

from the PowerShell command line.

In order to share the Docker environment that Minikube uses run

& minikube docker-env | Invoke-Expression

from the command line.

Helm

Last piece to install is Helm. Download the latest tar file with the Windows binary from https://github.com/kubernetes/helm/releases and extract its contents. Copy helm.exe to the bin directory. Run helm init from the command line to install "tiller" in the Minikube cluster.

@DSMP
Copy link

DSMP commented Nov 10, 2019

bin directory of what?

@trisberg
Copy link
Author

@njuarezgt
Copy link

bin directory of what?

Generally the bin folder you have to create in to the C;/ as kube/ and get into the kube/ folder minikibe, kubectl, helm and tiller.
Regards

@Jgabrielsousa
Copy link

I've just created a folder in my pc "C:\Helm", then I added all files in it, then I created the path point to this folder, but I still not able to run "helm init" Someone can help me, please ?
HelmError

@njuarezgt
Copy link

Creta a folder on my pc "C:/kube" then you add all files at this folder, and declare path in your environment variable.
image

@Jgabrielsousa
Copy link

Thanks Juarez, something just went wrong with my terminal, so I decided to go to the folder and exec the commands from there ... And everything looks fine now ... one more time thanks !
helmOK

@njuarezgt
Copy link

you have to edit your environment variables with path -> "C:/kube" and not specify wich .exe.
Regards.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment