|
abdbcff9fd
|
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;
|
2025-03-19 10:18:19 +01:00 |
|
|
ac3988f9ac
|
touch /var/log/openbao.log
chmod 644 /var/log/openbao.log
chown openbao:openbao /var/1og/openbao_audit.log
bao audit enable file file_path=/var/log/openbao.log removed
|
2025-03-18 14:34:59 +01:00 |
|
|
52f484d463
|
touch /var/log/openbao.log
chmod 644 /var/log/openbao.log
chown openbao:openbao /var/1og/openbao_audit.log
bao audit enable file file_path=/var/log/openbao.log
|
2025-03-18 14:28:14 +01:00 |
|
|
46d6a22b65
|
bao audit enable file file_path=/var/log/openbao.log
|
2025-03-18 14:21:41 +01:00 |
|
|
bc189a53e0
|
image: alpine:latest
|
2025-03-18 13:38:40 +01:00 |
|
|
e4611e967e
|
busybox
|
2025-03-18 13:35:34 +01:00 |
|
|
57779745e9
|
curlimages/curl:latest
|
2025-03-18 13:12:09 +01:00 |
|
|
ef22f9e7be
|
["/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"]
|
2025-03-18 12:59:08 +01:00 |
|
|
8db5e5950d
|
# volumeMounts:
# - name: alloy-data
# mountPath: /var/lib/alloy/data
# securityContext:
# runAsUser: 0
|
2025-03-18 12:47:09 +01:00 |
|
|
43b172d8d4
|
user 0
|
2025-03-18 12:14:27 +01:00 |
|
|
b7de02d293
|
# extraContainers:
# - name: grafana-alloy
# image: grafana/alloy:latest
# ports:
# - containerPort: 12345
|
2025-03-18 12:04:53 +01:00 |
|
|
815f6a2822
|
# volumeMounts:
# - name: alloy-data
# mountPath: /var/lib/alloy/data
|
2025-03-18 12:00:36 +01:00 |
|
|
93fe631736
|
fsGroup: 1000
runAsGroup: 1000
runAsNonRoot: true
runAsUser: 100
|
2025-03-18 11:51:26 +01:00 |
|
|
67876f18b9
|
runAsUser: 0
|
2025-03-18 11:39:10 +01:00 |
|
|
779df9fb9c
|
Merge pull request 'openbao_logs_second_way' (#16) from openbao_logs_second_way into shipping_openbao_logs
Reviewed-on: #16
|
2025-03-18 09:17:40 +00:00 |
|
|
e993c274b0
|
runAsUser: 1000 # Run as non-root user
fsGroup: 1000
|
2025-03-17 15:41:18 +01:00 |
|
|
46072b8f81
|
runAsUser: 0
|
2025-03-17 15:34:43 +01:00 |
|
|
8617e200ea
|
securityContext:
runAsUser: 1000
fsGroup: 1000
|
2025-03-17 15:30:50 +01:00 |
|
|
c30cf9f380
|
/tmp/alloy/data
|
2025-03-17 15:26:17 +01:00 |
|
|
872c9dc8e5
|
volumes:
- name: alloy-data
emptyDir: {}
|
2025-03-17 15:13:12 +01:00 |
|
|
27dc5966e9
|
# args:
# - --config.file=/etc/alloy/config.yaml
|
2025-03-17 15:05:10 +01:00 |
|
|
aeca6100f5
|
/etc/alloy/config.yaml
|
2025-03-17 14:49:33 +01:00 |
|
|
4e673f674d
|
extraVolumes deprecated
|
2025-03-17 14:37:58 +01:00 |
|
|
be1c3cee7a
|
test
|
2025-03-17 14:31:26 +01:00 |
|
|
f0632db48b
|
extraContainers:
- name: grafana-alloy
image: grafana/alloy:latest
ports:
- containerPort: 12345
volumeMounts:
- name: sidecar-container-alloy-config
mountPath: /etc/alloy
subPath: config.yaml
args:
- --config.file=/etc/alloy/config.yaml
|
2025-03-17 14:23:11 +01:00 |
|
|
7b77d870c6
|
extraVolumes:
- name: sidecar-container-alloy-config
configMap:
name: sidecar-container-alloy-config
|
2025-03-17 14:17:13 +01:00 |
|
|
deaed1bdcc
|
path: "stacks/ref-implementation/openbao-alloy-configmap"
|
2025-03-17 14:12:18 +01:00 |
|
|
2890437647
|
ref-implementation/openbao/sidecar-container-alloy-configmap
|
2025-03-17 14:07:43 +01:00 |
|
|
f873cd8aef
|
new directory for the configmap
|
2025-03-17 14:00:05 +01:00 |
|
|
3eec895f67
|
test
|
2025-03-17 13:46:53 +01:00 |
|
|
4b553dd258
|
config map separately
|
2025-03-17 13:31:43 +01:00 |
|
|
f1d940561d
|
adjustment of openbao.ymal
|
2025-03-17 13:15:47 +01:00 |
|
|
e2ad485759
|
sidecar container added
|
2025-03-17 12:55:46 +01:00 |
|
|
29d4ca9fe6
|
removing alloy as a separate pod in the same namespace
|
2025-03-13 15:50:17 +01:00 |
|
|
de8dc94e28
|
operations/helm/charts/alloy path fixed
|
2025-03-13 15:16:02 +01:00 |
|
|
48a28127ce
|
testing
|
2025-03-13 15:14:39 +01:00 |
|
|
83e1215d7d
|
adding a side-car logging container for openbao
|
2025-03-13 15:09:06 +01:00 |
|
|
28916f2278
|
Merge branch 'alloy_implementation' into shipping_openbao_logs
# Conflicts:
# .gitignore
|
2025-03-13 14:59:45 +01:00 |
|
|
a4502f2ecb
|
provisional solution for the shipping done
|
2025-03-13 14:01:45 +01:00 |
|
|
3dd9b7a544
|
rm /tmp/init.txt moved a few lines down
|
2025-03-13 13:52:29 +01:00 |
|
|
5518e9e2d7
|
echo deleted
|
2025-03-13 13:24:44 +01:00 |
|
|
bc90465579
|
echos for testing
|
2025-03-13 13:15:19 +01:00 |
|
|
524d0c67e0
|
bao audit enable file file_path=stdout
|
2025-03-13 13:03:08 +01:00 |
|
|
415576c2cb
|
unnecessary rule deleted
|
2025-03-13 10:26:56 +01:00 |
|
|
1e5fa94c47
|
rules in alloy's values.yaml adjusted
|
2025-03-13 10:19:45 +01:00 |
|
|
8f621647f5
|
rule {
source_labels = ["__meta_kubernetes_pod_name", "__meta_kubernetes_pod_container_name"]
action = "replace"
target_label = "__path__"
replacement = "/var/log/containers/$1_$2.log"
}
|
2025-03-13 10:08:59 +01:00 |
|
|
75f40e070c
|
promtail references replaces with alloy in dashboard_loki_container.yaml
|
2025-03-12 15:55:41 +01:00 |
|
|
b462804f29
|
loki.source.kubernetes "all_pod_logs" {
targets = discovery.relabel.pod_logs.output
forward_to = [loki.write.local_loki.receiver]
}
|
2025-03-12 15:28:20 +01:00 |
|
|
fbb5aeb32b
|
forward_to = [loki.write.local_loki.receiver]
|
2025-03-12 15:20:35 +01:00 |
|
|
687322525b
|
values.yaml for alloy edited
|
2025-03-12 15:18:59 +01:00 |
|