minikube安装使用方法
环境检查
sysctl -a | grep -E --color 'machdep.cpu.features|VMX'
出现VMX说明支持

在安装minikube之前先在自己的机器上面安装虚拟机
docker (driver installation)
virtualbox (driver installation)
podman (driver installation) (EXPERIMENTAL)
vmwarefusion
kvm2 (driver installation)
hyperkit (driver installation)
hyperv (driver installation) Note that the IP below is dynamic and can change. It can be retrieved with minikube ip.
vmware (driver installation) (VMware unified driver)
parallels (driver installation)
none (Runs the Kubernetes components on the host and not in a virtual machine. You need to be running Linux and to have Docker installed.
通过brew安装装minikube
brew install minikube
通过minikube二进制包方式安装
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 \
&& chmod +x minikube
sudo mv minikube /usr/local/bin
# vm-driver (hyperkit, vmware, virtualbox)
# vmwarefusion被弃用,可以使用vmware驱动,需要手动安装驱动
brew install docker-machine-driver-vmware
minikube start --vm-driver=vmware --memory 8192 --cpus 4
# 通过deployment方式创建管理pod
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.10
# 查看deployment的状态信息
kubectl get deployment
# 通过service的NodePort暴露端口
kubectl expose deployment hello-minikube --type=NodePort --port=8080
kubectl get svc






# 常用的一些操作,如果想重建一个kubenetes环境,可以删除,再建立
minikube start
minikube status
minikube ssh
minikube ip
minikube delete
minikube dashboard
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。