IPCEICIS-2952 #31

Merged
Michal.Wrobel merged 113 commits from IPCEICIS-2952 into development 2025-05-28 10:30:56 +00:00
2 changed files with 18 additions and 1 deletions
Showing only changes of commit 30f0c6f218 - Show all commits

View file

@ -0,0 +1,14 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: logrotate-config
data:
logrotate.conf: |
Review

might be nice to make it configurable via helm

might be nice to make it configurable via helm
Review

I think this might be a good idea. My only concern is that all of the other ConfigMap definitions in our product are hardcoded and this would make it not consistent.

I think this might be a good idea. My only concern is that all of the other ConfigMap definitions in our product are hardcoded and this would make it not consistent.
/openbao/logs/*.log {
daily
rotate 7
compress
missingok
notifempty
copytruncate
}

View file

@ -15,7 +15,7 @@ server:
- name: host-log-storage
mountPath: /openbao/logs
- 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"]
securityContext:
runAsUser: 100
@ -33,6 +33,9 @@ server:
- name: config-volume
configMap:
name: sidecar-container-alloy-config
- name: config-logrotate
configMap:
name: logrotate-config
- name: host-log-storage
hostPath:
path: /var/log