diff --git a/template/stacks/ref-implementation/openbao-logging/logrotate-configmap.yaml b/template/stacks/ref-implementation/openbao-logging/logrotate-configmap.yaml index 44712ee..7cab8de 100644 --- a/template/stacks/ref-implementation/openbao-logging/logrotate-configmap.yaml +++ b/template/stacks/ref-implementation/openbao-logging/logrotate-configmap.yaml @@ -4,11 +4,14 @@ metadata: name: logrotate-config data: logrotate.conf: | - /openbao/logs/*.log { - daily - rotate 7 - compress - missingok - notifempty - copytruncate + /openbao/logs/openbao/*.log { + size 5k + rotate 7 + compress + missingok + notifempty + postrotate + mkdir pupa + kill -SIGHUP $(pidof bao) + endscript } \ No newline at end of file diff --git a/template/stacks/ref-implementation/openbao/values.yaml b/template/stacks/ref-implementation/openbao/values.yaml index 75edd47..48ed7fe 100644 --- a/template/stacks/ref-implementation/openbao/values.yaml +++ b/template/stacks/ref-implementation/openbao/values.yaml @@ -15,8 +15,8 @@ server: - name: host-log-storage mountPath: /openbao/logs - name: logrotate - image: debian:stable-slim - command: ["/bin/sh", "-c", "while true; do /usr/sbin/logrotate /etc/logrotate.conf; sleep 60; done"] + image: blacklabelops/logrotate:latest # MIT-License + # command: ["/bin/sh", "-c", "while true; do /usr/sbin/logrotate /etc/logrotate.conf; sleep 60; done"] securityContext: runAsUser: 100 volumeMounts: