【云原生--K8S】win10安装minikube
win10安装minikube
1、win10安装minikube
1)下载安装virtualbox最新版本,地址:https://www.virtualbox.org/wiki/Downloads
2)下载minikube(minikube-windows-amd64.exe),地址:
https://github.com/kubernetes/minikube/releases
3)下载kubectl,通过curl下载,curl下载地址:
curl -LO https://dl.k8s.io/release/v1.20.0/bin/windows/amd64/kubectl.exe
curl -LO https://dl.k8s.io/v1.20.0/bin/windows/amd64/kubectl.exe.sha256
CertUtil -hashfile kubectl.exe SHA256
type kubectl.exe.sha256
4)新建目录c:\minikube,把minikube-windows-amd64.exe拷贝到该目录,改名为minikube.exe,把kubectl.exe和kubectl.exe.sha256也拷贝到该目录。
5)前往https://www.docker.com/get-started,下载Docker Desktop,选择for Windows版本,双击Docker Desktop Installer.exe进行安装。安装后重启生效。
2、启动minikube
1)命令行进入c:/minikube目录,执行下面命令:
minikube start --kubernetes-version=v1.23.8 --registry-mirror=https://registry.docker-cn.com --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
2)查看minikube状态
minikube status
3)minikube实际运行在docker容器中
kubectl get pods -A
4)停止minikube
minikube stop
更多推荐
所有评论(0)