1. 说明
1.1 工作负载
- 无状态应用Deployment
- 有状态用应用StatefulSet:MySQL、Redis
- 守护进程集DaemonSet:日志收集
这里的部署相当于一个Pod,可以使用命令查看
root@docker01:/home# kubectl get pod NAME READY STATUS RESTARTS AGE nfs-client-provisioner-89f7c5494-8f8jb 1/1 Running 13 (3h40m ago) 11h root@docker01:/home# kubectl get ns NAME STATUS AGE default Active 3d5h edu Active 20m ingress-nginx Active 2d2h istio-system Active 11h kube-node-lease Active 3d5h kube-public Active 3d5h kube-system Active 3d5h kubernetes-dashboard Active 3d4h kubesphere-controls-system Active 11h kubesphere-devops-system Active 11h kubesphere-devops-worker Active 11h kubesphere-logging-system Active 11h kubesphere-monitoring-federated Active 11h kubesphere-monitoring-system Active 11h kubesphere-system Active 11h root@docker01:/home# kubectl get pod -n edu No resources found in edu namespace. root@docker01:/home#
2. 部署的三要素
- 应用的部署方式
- 应用的数据挂载(数据、配置文件)
- 应用的可访问性