Skip to content

Instantly share code, notes, and snippets.

@piersharding
Created June 19, 2019 02:04
Show Gist options
  • Save piersharding/209afe0132331cb7093ac1476d631fdf to your computer and use it in GitHub Desktop.
Save piersharding/209afe0132331cb7093ac1476d631fdf to your computer and use it in GitHub Desktop.
Launching Minikube on Windows

A set of instructions for launching Minikube on Windows

Configure the host - Windows 10

Enable Hyper-V

Instrucitons from: https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v

Open PowerShell and run:

DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V

Now Reboot

Create Network Switch

Create an external network switch - follow instructions here https://docs.docker.com/machine/drivers/hyper-v/ and Reboot.

Install Chocolatey

Follow instructions from here https://chocolatey.org/docs/installation:

cmd.exe:

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

or PowerShell.exe:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Restart shell.

Install kubectl and minikube

choco install kubernetes-cli
choco install minikube

Launch Minikube

minikube start --vm-driver="hyperv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment