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
choco install kubernetes-cli
kubectl version --client
then
cd %USERPROFILE%
mkdir .kube
C:\Users\User\.kube
and create text file with name config
choco install docker-engine
choco install minikube
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
minikube stop
minikube delete
to run cluster in virtual box then type below command
minikube start --driver=virtualbox
(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.