Linux从入门到放弃 k8s emptyDir 持久化
spec:volumes:# 添加emptyDir持久化- name: mysqlemptyDir: {}containers:- name: mysqlimage: 10.0.0.11:5000/mysql:5.7ports:- containerPort: 3306volumeMounts:...
·
spec:
volumes: # 添加emptyDir持久化
- name: mysql
emptyDir: {}
containers:
- name: mysql
image: 10.0.0.11:5000/mysql:5.7
ports:
- containerPort: 3306
volumeMounts: # 添加volumes目录
- name: mysql
mountPath: /var/lib/mysql
emptyDir持久化根据pod创建
pod删除数据持久化失效
更多推荐
已为社区贡献4条内容
所有评论(0)