【发布时间】:2021-03-10 06:19:27
【问题描述】:
我在 Windows 10 中安装了 minikube 。我可以开始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.
【问题讨论】:
标签: kubernetes windows-10 kubectl minikube