new changes

This commit is contained in:
miwr 2025-04-23 12:01:20 +02:00
parent 1abbd9b646
commit 20a6113403

View file

@ -4,7 +4,7 @@ metadata:
name: logrotate-cronjob name: logrotate-cronjob
namespace: openbao namespace: openbao
spec: spec:
schedule: "*/5 * * * *" schedule: "*/2 * * * *"
jobTemplate: jobTemplate:
spec: spec:
template: template:
@ -14,7 +14,7 @@ spec:
image: skymatic/logrotate:latest image: skymatic/logrotate:latest
securityContext: securityContext:
runAsUser: 100 runAsUser: 100
command: ["/bin/sh", "-c", && sleep 10"] command: ["/bin/sh", "-c", "logrotate /etc/logrotate.conf && sleep 10"]
volumeMounts: volumeMounts:
- name: host-log-storage - name: host-log-storage
mountPath: /openbao/logs mountPath: /openbao/logs