我安装minikube
在中Windows 10
。我可以开始minikube
**C:\WINDOWS\system32>minikube start
* minikube v1.15.1 on Microsoft Windows 10 Pro 10.0.18363 Build 18363
* Using the hyperv driver based on existing profile
* Starting control plane node minikube in cluster minikube
* Restarting existing hyperv VM for "minikube" ...
* Preparing Kubernetes v1.19.4 on Docker 19.03.13 ...
* Verifying Kubernetes components...
* Enabled addons: storage-provisioner, default-storageclass
* kubectl not found. If you need it, try: 'minikube kubectl -- get pods -A'
* Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default**
但是上面的输出中有一个警告(第二行)说
kubectl not found. If you need it, try: 'minikube kubectl -- get pods -A'
之后,我也执行了此命令 minikube kubectl -- get pods -A
尝试时仍然低于错误 kubectl
C:\WINDOWS\system32>kubectl
'kubectl' is not recognized as an internal or external command,
operable program or batch file.
它安装在内部,
minikube
可以通过minikube kubectl --
例如以下方式访问minikube kubectl -- version --client