IPCEICIS-3111 #21

Closed
Michal.Wrobel wants to merge 131 commits from IPCEICIS-3111 into development
2 changed files with 22 additions and 4 deletions

View file

@ -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]
}

View file

@ -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