Skip to main content

Minikube

install

启动 k8s

minikube start --cpus 10 --memory 32000 --driver=docker

dashboard

minikube dashboard --port=30000 --url=true

# http://localhost:30000/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/

troubleshooting

转移镜像到 minikube 的 k8s里

针对于网络情况极差的情况

  1. 开启两个console
  2. 在console1中,使用主机的docker 拉取镜像,并使用 docker save <Image Name>:<TAG> -o <Image Name>_<TAG>.tag 保存镜像为tar文件。
  3. 在console2中,执行 eval $(minikube docker-env) ,切换为minikube内部使用的docker。
  4. 在console2中,使用 docker load -f <Image Name>_<TAG>.tag 加载镜像。