# 1. 准备
docker,qemu-kvm都要安装并启动,且qemu-kvm的默认网络default存在;
https://github.com/kubernetes/minikube/releases/tag/v1.7.3 下载minikube
# 2. 安装命令
minikube start --image-mirror-country=cn --registry-mirror=https://b3uey254.mirror.aliyuncs.com --container-runtime='docker' --apiserver-port=6443 --log_dir=~/tmp
--registry-mirror 镜像地址,阿里的,也可用微软的gcr.azk8s.cn
--apiserver-port 默认8443,6443与官网一致
# 3. 安装过程
tail -f /tmp/minikube.INFO 查看日志
~/.minikube 工作目录
# 4. 使用命令
minikube status
minikube dashboard
minikube ssh
kubectl create deployment hello-minikube --image=gcr.azk8s.cn/google-containers/echoserver:1.10
kubectl expose deployment hello-minikube --type=NodePort --port=8080
kubectl get pods
minikube service hello-minikube --url
kubectl delete services hello-minikube
kubectl delete deployment hello-minikube
minikube stop
minikube delete all --purge=true