IPCEICIS-2952 #31
1 changed files with 12 additions and 1 deletions
|
@ -15,7 +15,18 @@ server:
|
|||
- name: host-log-storage
|
||||
mountPath: /openbao/logs
|
||||
- name: logrotate
|
||||
image: skymatic/logrotate:latest # MIT License
|
||||
image: imroc/logrotate:latest
|
||||
env:
|
||||
- name: LOGROTATE_FILE_PATTERN
|
||||
value: "/var/log/nginx/nginx_*.log"
|
||||
- name: LOGROTATE_FILESIZE
|
||||
value: "20M"
|
||||
- name: LOGROTATE_FILENUM
|
||||
value: "10"
|
||||
- name: CRON_EXPR
|
||||
value: "*/1 * * * *"
|
||||
- name: CROND_LOGLEVEL
|
||||
value: "7"
|
||||
# command: ["/bin/sh", "-c", "while true; do /usr/sbin/logrotate /etc/logrotate.conf; sleep 60; done"]
|
||||
securityContext:
|
||||
runAsUser: 100
|
||||
|
|
Reference in a new issue