-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMiniKubeonWindows.txt
40 lines (27 loc) · 1.43 KB
/
MiniKubeonWindows.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
https://minikube.sigs.k8s.io/docs/start/
Prerequistes:
Docker should be installed
or
Hyper-V should be installed (Apps$Features-> Hyperv)
#Download and run the installer for the latest release Or if using PowerShell, use this command:
New-Item -Path 'c:\' -Name 'minikube' -ItemType Directory -Force
Invoke-WebRequest -OutFile 'c:\minikube\minikube.exe' -Uri 'https://github.com/kubernetes/minikube/releases/latest/download/minikube-windows-amd64.exe' -UseBasicParsing
#Add the minikube.exe binary to your PATH. Make sure to run PowerShell as Administrator.
$oldPath = [Environment]::GetEnvironmentVariable('Path', [EnvironmentVariableTarget]::Machine)
if ($oldPath.Split(';') -inotcontains 'C:\minikube'){ `
[Environment]::SetEnvironmentVariable('Path', $('{0};C:\minikube' -f $oldPath), [EnvironmentVariableTarget]::Machine) `
}
If you used a terminal (like powershell) for the installation, please close the terminal and reopen it before running minikube.
#Post installation, check if Minikube and Kubectl is working in Terminal< Once Minikube is installed, Kubectl will be installed automatically so no need to install it separetly)
Start the cluster : minikube start
#Minikube status
PS C:\WINDOWS\system32> minikube status
minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured
#kubectl version < Client and server version should be present>
#kubectl get nodes
#Minikube delete < Cluster Deletion>