目录
- 安装
- 启动第一个服务
- 启动k8s看板
- 暴露服务
- 查看services
- 自动打开服务
- 查看pods
官方的文档
安装
centos8安装记录
pod和deployment的关系
启动第一个服务
通过deployment的方式进行创建
kubectl create deployment hello-nginx --image=nginx:latest --port=8080
启动k8s看板
minikube dashboard
暴露服务
kubectl expose deployment hello-nginx --type=NodePort --port=80
查看services
kubectl get services
自动打开服务
minikube service hello-nginx
查看pods
kubectl get pods