stacks/template/stacks/ref-implementation/openbao-logging/logrotate-configmap.yaml
2025-04-23 11:45:26 +02:00

16 lines
No EOL
426 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: logrotate-config
data:
logrotate.conf: |
/openbao/logs/openbao/*.log {
size 2M
rotate 7
compress
missingok
notifempty
postrotate
echo -e "POST / HTTP/1.1\r\nHost: sidecar-script-service.openbao.svc.cluster.local:3030\r\nContent-Length: 0\r\n\r\n" | nc sidecar-script-service.openbao.svc.cluster.local 3030
endscript
}