minikube 快速入门(二)
启动
minikube start
运行一个 echoserver 镜像
kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.4 --port=8080 kubectl expose deployment hello-minikube --type=NodePort minikube service hello-minikube
查询 echoserver 访问地址
minikube service hello-minikube --url
在浏览器中访问查询到的网址
停止并删除镜像
minikube stop minikube delete
例 4.1. minikube 操作演示
快速开始使用 minikube 运行一个镜像
[root@localhost ~]# kubectl run hello-minikube --image=k8s.gcr.io