IPCEICIS-2952 #31
2 changed files with 12 additions and 9 deletions
|
@ -4,11 +4,14 @@ metadata:
|
||||||
name: logrotate-config
|
name: logrotate-config
|
||||||
data:
|
data:
|
||||||
logrotate.conf: |
|
logrotate.conf: |
|
||||||
|
|||||||
/openbao/logs/*.log {
|
/openbao/logs/openbao/*.log {
|
||||||
daily
|
size 5k
|
||||||
rotate 7
|
rotate 7
|
||||||
compress
|
compress
|
||||||
missingok
|
missingok
|
||||||
notifempty
|
notifempty
|
||||||
copytruncate
|
postrotate
|
||||||
|
mkdir pupa
|
||||||
|
kill -SIGHUP $(pidof bao)
|
||||||
|
endscript
|
||||||
}
|
}
|
|
@ -15,8 +15,8 @@ server:
|
||||||
- name: host-log-storage
|
- name: host-log-storage
|
||||||
mountPath: /openbao/logs
|
mountPath: /openbao/logs
|
||||||
- name: logrotate
|
- name: logrotate
|
||||||
image: debian:stable-slim
|
image: blacklabelops/logrotate:latest # MIT-License
|
||||||
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
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|
Reference in a new issue
might be nice to make it configurable via helm
I think this might be a good idea. My only concern is that all of the other ConfigMap definitions in our product are hardcoded and this would make it not consistent.