debian:stable-slim

This commit is contained in:
miwr 2025-03-31 10:54:23 +02:00
parent 06303ef355
commit 30f0c6f218
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,14 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: logrotate-config
data:
logrotate.conf: |
/openbao/logs/*.log {
daily
rotate 7
compress
missingok
notifempty
copytruncate
}

View file

@ -15,7 +15,7 @@ server:
- name: host-log-storage - name: host-log-storage
mountPath: /openbao/logs mountPath: /openbao/logs
- name: logrotate - name: logrotate
image: alpine:latest image: debian:stable-slim
command: ["/bin/sh", "-c", "while true; do /usr/sbin/logrotate /etc/logrotate.conf; sleep 60; done"] command: ["/bin/sh", "-c", "while true; do /usr/sbin/logrotate /etc/logrotate.conf; sleep 60; done"]
securityContext: securityContext:
runAsUser: 100 runAsUser: 100
@ -33,6 +33,9 @@ server:
- name: config-volume - name: config-volume
configMap: configMap:
name: sidecar-container-alloy-config name: sidecar-container-alloy-config
- name: config-logrotate
configMap:
name: logrotate-config
- name: host-log-storage - name: host-log-storage
hostPath: hostPath:
path: /var/log path: /var/log