["/bin/sh", "-c", "while kill -0 $(pidof main-container) 2>/dev/null; do sleep 1; done; echo 'OpenBao has crashed - giving Alloy time to collect logs...'; sleep 20"]
This commit is contained in:
parent
8db5e5950d
commit
ef22f9e7be
1 changed files with 7 additions and 15 deletions
|
@ -1,24 +1,16 @@
|
||||||
server:
|
server:
|
||||||
extraContainers:
|
extraContainers:
|
||||||
- name: grafana-alloy
|
- name: log-sidecar
|
||||||
image: grafana/alloy:latest
|
image: busybox
|
||||||
ports:
|
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"]
|
||||||
- containerPort: 12345
|
volumeMounts:
|
||||||
# volumeMounts:
|
- name: log-storage
|
||||||
# - name: alloy-data
|
mountPath: /var/log/
|
||||||
# mountPath: /var/lib/alloy/data
|
|
||||||
# securityContext:
|
|
||||||
# runAsUser: 0
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: alloy-data
|
- name: log-storage
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
|
||||||
# volumes:
|
|
||||||
# - name: sidecar-container-alloy-config
|
|
||||||
# configMap:
|
|
||||||
# name: sidecar-container-alloy-config
|
|
||||||
|
|
||||||
postStart:
|
postStart:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
|
|
Loading…
Reference in a new issue