diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 61985ee..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1741874334984 - - - - - - - true - - \ No newline at end of file diff --git a/template/stacks/monitoring/alloy/values.yaml b/template/stacks/monitoring/alloy/values.yaml index 91ca41d..47b77d1 100644 --- a/template/stacks/monitoring/alloy/values.yaml +++ b/template/stacks/monitoring/alloy/values.yaml @@ -72,28 +72,7 @@ alloy: } - discovery.relabel "openbao_pod_logs" { - targets = discovery.kubernetes.pod.targets - - rule { - source_labels = ["__meta_kubernetes_pod_name"] - action = "keep" - regex = "openbao-0" - } - - } - loki.source.kubernetes "all_pod_logs" { targets = discovery.relabel.pod_logs.output forward_to = [loki.write.local_loki.receiver] - } - - local.file_match "openbao_file_logs" { - path_targets = [{"__path__" = "/var/log/*"}] - sync_period = "5s" - } - - loki.source.file "openbao_logs" { - targets = local.file_match.openbao_file_logs.targets - forward_to = [loki.write.local_loki.receiver] } \ No newline at end of file diff --git a/template/stacks/ref-implementation/openbao.yaml b/template/stacks/ref-implementation/openbao.yaml index 8e286d9..ffc2923 100644 --- a/template/stacks/ref-implementation/openbao.yaml +++ b/template/stacks/ref-implementation/openbao.yaml @@ -23,7 +23,7 @@ spec: targetRevision: HEAD helm: valueFiles: - - $values/stacks/ref-implementation/openbao/values.yaml + - $values/stacks/ref-implementation/openbao/values.yaml - repoURL: https://{{{ .Env.DOMAIN_GITEA }}}/giteaAdmin/edfbuilder targetRevision: HEAD ref: values diff --git a/template/stacks/ref-implementation/openbao/values.yaml b/template/stacks/ref-implementation/openbao/values.yaml index 07f3fc5..4aa4ff0 100644 --- a/template/stacks/ref-implementation/openbao/values.yaml +++ b/template/stacks/ref-implementation/openbao/values.yaml @@ -2,6 +2,7 @@ server: extraContainers: - name: grafana-alloy image: grafana/alloy:latest + command: ["/bin/sh", "-c", "while [ -f /openbao/logs/alive/main.alive ]; do sleep 5; done; echo 'Main container exited, waiting 20s'; sleep 20; exit 1"] ports: - containerPort: 12345 securityContext: @@ -32,6 +33,7 @@ server: - sh - -c - | + trap 'rm -f /openbao/logs/alive/main.alive; exit 0' TERM; touch /openbao/logs/alive/main.alive; sleep infinity sleep 10 bao operator init >> /tmp/init.txt cat /tmp/init.txt | grep "Key " | awk '{print $NF}' | xargs -I{} bao operator unseal {}