安装说明
https://blog.csdn.net/cheng_fu/article/details/109507796
安装下载 和安装说明
https://minikube.sigs.k8s.io/docs/start/
https://kubernetes.io/zh/docs/tutorials/hello-minikube/
minikube start
minikube start --driver=hyperv
minikube start --driver=docker
minikube config set driver hyperv #配置默认启动
minikube config set driver docker
minikube config set memory 16384 #内存限制
minikube addons list #Kubernetes 服务目录
#别名
function kubectl { minikube kubectl -- $args }
doskey kubectl=minikube kubectl $*
alias kubectl="minikube kubectl --"
minikube dashboard
minikube dashboard --url
#创建一个示例部署并在端口 8080 上公开它:
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.4
kubectl expose deployment hello-minikube --type=NodePort --port=8080
#查看部署将很快出现
kubectl get services hello-minikube
# minikube 为您启动 Web 浏览器:
minikube service hello-minikube
#使用 kubectl 转发端口
kubectl port-forward service/hello-minikube 7080:8080
minikube pause
minikube unpause
minikube stop
minikube delete --all
kubectl delete deployment ngx1
kubectl delete service ngx1