This commit is contained in:
miwr 2025-03-18 13:35:34 +01:00
parent 57779745e9
commit e4611e967e

View file

@ -1,8 +1,8 @@
server:
extraContainers:
- name: log-sidecar
image: curlimages/curl:latest
command: ["/bin/sh", "-c", "while kill -0 $(pidof openbao) 2>/dev/null; do sleep 1; done; echo 'OpenBao has crashed - giving Alloy time to collect logs...'; sleep 20"]
image: busybox
command: ["/bin/sh", "-c", "while kill -0 $(pidof openbao) 2>/dev/null; do sleep 1; done; echo 'OpenBao has crashed - giving Alloy time to collect logs...' >> var/log/openbao.log; sleep 20"]
volumeMounts:
- name: log-storage
mountPath: /var/log/