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; echo 'Sidecar exiting.'; exit 1;
This commit is contained in:
parent
ac3988f9ac
commit
abdbcff9fd
1 changed files with 7 additions and 1 deletions
|
@ -2,7 +2,13 @@ server:
|
||||||
extraContainers:
|
extraContainers:
|
||||||
- name: log-sidecar
|
- name: log-sidecar
|
||||||
image: alpine:latest
|
image: alpine: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...' >> var/log/openbao.log; sleep 20"]
|
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;
|
||||||
|
echo 'Sidecar exiting.';
|
||||||
|
exit 1;
|
||||||
|
"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: log-storage
|
- name: log-storage
|
||||||
mountPath: /var/log/
|
mountPath: /var/log/
|
||||||
|
|
Loading…
Reference in a new issue