pod 大全
1)、1或n 容器(node)
n 容器==>日志、监控
共享网络:infra container
pod<==网络==>infra
共享存储:数据卷
volumeMounts: ####数据卷
-name:log
mountPath: /data
2)、 ### pod-test
##创建 kubectl apply -f deployment.yaml
##########################################
vi deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: pod-test
containers:
- name: web
image: nginx:1.18
volumeMounts: ####数据卷
- name:log
mountPath: /data
- name: bs
image: busybox
command:
- sleep
- 24h
volumeMounts: ####数据卷
- name:log
mountPath: /data2
volumes:
- name: log
emptyDir:{}
#### kubectl get pods