windows k8s 安装 minikube

https://blog.csdn.net/u014636124/article/details/105145674/

管理员身份运行 PowerShell
https://jingyan.baidu.com/article/09ea3ede40cc2dc0aede392c.html

安装choco工具

输入
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
 

choco install minikube

命令行启用Hyper-v
管理员权限打开 powershell,运行如下命令

  	Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

      .\minikube.exe start  image-mirror-country='cn' --registry-mirror=https://registry.docker-cn.com --vm-driver="hyperv" --memory=4096 --hyperv-virtual-switch="minikube" --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
 

Windows10家庭版的功能中没有Hyper-V的解决方法

https://cloud.tencent.com/developer/article/1352777

 

.\minikube.exe kubectl get nodes

问题:X Exiting due to DRV_HYPERV_VSWITCH_NOT_FOUND: Failed to start host: creating host: create: precreate: vswitch "minikube" not found
* 建议:使用 'Get-VMSwitch' 命令确认已经为 --hyperv-virtual-switch 提供了正确的值
* 文档:https://docs.docker.com/machine/drivers/hyper-v/
解决办法:  https://blog.csdn.net/ouyangtianhan/article/details/84992675

问题: failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
* 建议:防火墙可能会阻止 minikube 访问互联网。您可能需要将 minikube 配置为使用
* 文档:https://minikube.sigs.k8s.io/docs/handbook/vpn_and_proxy/

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章