- Kubernetes Cookbook
- Hideto Saito Hui Chuan Chloe Lee Ke Jou Carol Hsu
- 242字
- 2025-04-04 17:06:46
How to do it...
First of all, VirtualBox for Windows is required:
- Go to the VirtualBox website (https://www.virtualbox.org/wiki/Downloads) to download the Windows installer.
- Installation is straightforward, so we can just choose the default options and click Next:
- Next, create the Kubernetes folder, which is used to store the minikube and kubectl binaries. Let's create the k8s folder on top of the C: drive, as shown in the following screenshot:
- This folder must be in the command search path, so open System Properties, then move to the Advanced tab.
- Click the Environment Variables... button, then choose Path , and then click the Edit... button, as shown in the following screenshot:
- Then, append c:\k8s , as follows:
- After clicking the OK button, log off and logo on to Windows again (or reboot) to apply this change.
- Next, download minikube for Windows. It is a single binary, so use any web browser to download https://github.com/kubernetes/minikube/releases/download/v0.26.1/minikube-windows-amd64 and then copy it to the c:\k8s folder, but change the filename to minikube.exe.
- Next, download kubectl for Windows, which can communicate with Kubernetes. It is also single binary like minikube. So, download https://storage.googleapis.com/kubernetes-release/release/v1.10.2/bin/windows/amd64/kubectl.exe and then copy it to the c:\k8s folder as well.
- Eventually, you will see two binaries in the c:\k8s folder, as shown in the following screenshot:
If you are running anti-virus software, it may prevent you from running kubectl.exe and minikube.exe. If so, please update your anti-virus software setting that allows running these two binaries.