修改日志挂载路径
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user