修改日志挂载路径

This commit is contained in:
付庆吉
2021-08-02 09:24:29 +08:00
parent 091ea9dd82
commit 2f9fc4116b
3 changed files with 12 additions and 6 deletions

View File

@ -35,10 +35,18 @@ spec:
# 定义容器模板,该模板可以包含多个容器
spec:
volumes:
- name: log
hostPath:
path: /var/lib/docker/log/349553515466-test/default-group/all #开发环境
# 必选Pod中容器列表
containers:
- name: biz-service-ebtp-extend
image: harbor.dcos.guangzhou.unicom.local/eshop/biz-service-ebtp-extend:latest
# 在容器中挂载日志存储区
volumeMounts:
- name: log
mountPath: /log
# 需要暴露的端口库号列表
ports:
- containerPort: 18018