diff --git a/template/stacks/monitoring/alloy/values.yaml b/template/stacks/monitoring/alloy/values.yaml index a2ac67d..50dddb8 100644 --- a/template/stacks/monitoring/alloy/values.yaml +++ b/template/stacks/monitoring/alloy/values.yaml @@ -1,10 +1,17 @@ alloy: + extraPorts: + - name: "tcpsocket" + port: 1514 + targetPort: 1514 + protocol: "TCP" + appProtocol: "tcp" + + uiPathPrefix: "/alloy" + create: false name: alloy-config key: config.alloy - uiPathPrefix: "/alloy" - configMap: content: |- @@ -76,3 +83,11 @@ alloy: targets = discovery.relabel.pod_logs.output forward_to = [loki.write.local_loki.receiver] } + + loki.source.syslog "tcp_socket" { + listener { + address = "0.0.0.0:1514" + labels = { component = "loki.source.syslog", protocol = "tcp" } + } + forward_to = [loki.write.local_loki.receiver] + } \ No newline at end of file diff --git a/template/stacks/ref-implementation/openbao/values.yaml b/template/stacks/ref-implementation/openbao/values.yaml index 0ff72cf..7306dd6 100644 --- a/template/stacks/ref-implementation/openbao/values.yaml +++ b/template/stacks/ref-implementation/openbao/values.yaml @@ -1,9 +1,10 @@ -server: +server: postStart: - sh - -c - | sleep 10 + rm -rf /openbao/data/* bao operator init >> /tmp/init.txt cat /tmp/init.txt | grep "Key " | awk '{print $NF}' | xargs -I{} bao operator unseal {} echo $(grep "Initial Root Token:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/initial_token.txt @@ -12,6 +13,8 @@ server: echo $(grep "Unseal Key 3:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key3.txt echo $(grep "Unseal Key 4:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key4.txt echo $(grep "Unseal Key 5:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key5.txt + bao login $(grep "Initial Root Token:" /tmp/init.txt | awk '{print $NF}') rm /tmp/init.txt + bao audit enable socket address=alloy.monitoring.svc.cluster.local:1514 socket_type=tcp ui: - enabled: true + enabled: true \ No newline at end of file