image: skymatic/logrotate:latest
This commit is contained in:
parent
508ecd3f12
commit
f6d1842876
1 changed files with 1 additions and 13 deletions
|
@ -15,19 +15,7 @@ server:
|
||||||
- name: host-log-storage
|
- name: host-log-storage
|
||||||
mountPath: /openbao/logs
|
mountPath: /openbao/logs
|
||||||
- name: logrotate
|
- name: logrotate
|
||||||
image: imroc/logrotate:latest
|
image: skymatic/logrotate:latest
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
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"]
|
# command: ["/bin/sh", "-c", "while true; do /usr/sbin/logrotate /etc/logrotate.conf; sleep 60; done"]
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 100
|
runAsUser: 100
|
||||||
|
|
Loading…
Reference in a new issue