##环境 macOS vmware
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64
sudo install minikube-darwin-amd64 /usr/local/bin/minikube
一定要使用国内源。代理会有很多问题
minikube start --driver=vmware --image-mirror-country='cn'
mac 下地址
source <(kubectl completion zsh)
source <(minikube completion zsh)
# alias kubectl="minikube kubectl --"
开启 ingress
minikube addons enable ingress
kubectl apply -f nginx-dp.yaml
kubectl apply -f nginx-svc.yaml
kubectl apply -f nginx-ingress.yaml
kubectl get pod
kubectl get svc
查看 ingress
kubectl get ingress
minikube ip
minikube service --url nginx-svc
kubectl get pods --namespace=ingress-nginx