Skip to content

Instantly share code, notes, and snippets.

@sheikhnavezz
Last active May 10, 2024 10:37
Show Gist options
  • Save sheikhnavezz/a06c27541c4daa78570b77dad9a8c796 to your computer and use it in GitHub Desktop.
Save sheikhnavezz/a06c27541c4daa78570b77dad9a8c796 to your computer and use it in GitHub Desktop.
windows minikube installation

Install minikube on windows 10

1. first you have to install chocolatey (package manager) on windows for that :

open windows powershell with (run as administrator) paste below command in it:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

You have successfully installed chocolatey in your system you can use chocolatey from anywhere in your system. Now close the powershell

2. Open command prompt with (run as administrator)

paste below command:

choco install kubernetes-cli

verify with command:

kubectl version --client

then

cd %USERPROFILE%

3. create dir

mkdir .kube

4. Now, manually goto to the location:

C:\Users\User\.kube

and create text file with name config

5. Install docker-engine

choco install docker-engine

6. Install minikube

choco install minikube

7. Start the minikube with command:

minikube start
minikube status
minikube dashboard

8 Note: Every time when you want to start the minikube then open the command prompt with (run as administrator)

and run command :

minikube start

9. To stop cluster

minikube stop

10. To delete cluster

minikube delete

(optional):

to run cluster in virtual box then type below command

minikube start --driver=virtualbox
Extra

(powershell)

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Tools-All -All

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Tools-All

So, with the above procedure we have successfully installed and setup the minikube, kubectl and docker-engine in our system.

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