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/

 

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