diff --git a/template/stacks/ref-implementation/openbao-logging/logrotate-configmap.yaml b/template/stacks/ref-implementation/openbao-logging/logrotate-configmap.yaml index 0892d64..391afed 100644 --- a/template/stacks/ref-implementation/openbao-logging/logrotate-configmap.yaml +++ b/template/stacks/ref-implementation/openbao-logging/logrotate-configmap.yaml @@ -5,7 +5,7 @@ metadata: data: logrotate.conf: | /openbao/logs/openbao/*.log { - size 1M + size 5k rotate 7 compress missingok diff --git a/template/stacks/ref-implementation/openbao-logging/logrotate-cronjob.yaml b/template/stacks/ref-implementation/openbao-logging/logrotate-cronjob.yaml index 12ff152..7fed4c3 100644 --- a/template/stacks/ref-implementation/openbao-logging/logrotate-cronjob.yaml +++ b/template/stacks/ref-implementation/openbao-logging/logrotate-cronjob.yaml @@ -14,7 +14,7 @@ spec: image: skymatic/logrotate:latest securityContext: runAsUser: 100 - command: ["/bin/sh", "-c", "logrotate /etc/logrotate.conf"] + command: ["/bin/sh", "-c", "logrotate /etc/logrotate.conf && sleep 1000000"] volumeMounts: - name: host-log-storage mountPath: /openbao/logs