This commit is contained in:
miwr 2025-04-02 11:03:54 +02:00
parent 5db72e2dc0
commit 1a85de6cda
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ metadata:
data: data:
logrotate.conf: | logrotate.conf: |
/openbao/logs/openbao/*.log { /openbao/logs/openbao/*.log {
size 1M size 5k
rotate 7 rotate 7
compress compress
missingok missingok

View file

@ -14,7 +14,7 @@ spec:
image: skymatic/logrotate:latest image: skymatic/logrotate:latest
securityContext: securityContext:
runAsUser: 100 runAsUser: 100
command: ["/bin/sh", "-c", "logrotate /etc/logrotate.conf"] command: ["/bin/sh", "-c", "logrotate /etc/logrotate.conf && sleep 1000000"]
volumeMounts: volumeMounts:
- name: host-log-storage - name: host-log-storage
mountPath: /openbao/logs mountPath: /openbao/logs