# 装置
brew install minkube
#如果已装置则进行
minikube stop
#(如果已装置则删除)
minikube delete
#启动
minikube start --kubernetes-version=v1.23.8 --image-mirror-country='cn' --image-repository='registry.cn-hangzhou.aliyuncs.com/google_containers'
#启动 Kubernetes 仪表板
minikube dashboard
#测试
#创立部署
kubectl create deployment hello-minikube --image=kicbase/echo-server:1.0
#裸露端口
kubectl expose deployment hello-minikube --type=NodePort --port=8080
#查看 service
kubectl get services hello-minikube
#让 minikube 为您启动 Web 浏览器
minikube service hello-minikube
#或者应用 kubectl 转发端口
kubectl port-forward service/hello-minikube 7080:8080
#清理
kubectl delete service hello-minikube
kubectl delete deployment hello-minikube