IPCEICIS-2952 #31

Merged
Michal.Wrobel merged 113 commits from IPCEICIS-2952 into development 2025-05-28 10:30:56 +00:00
3 changed files with 25 additions and 2 deletions
Showing only changes of commit b89cfa49fd - Show all commits

View file

@ -1,8 +1,19 @@
controller:
volumes:
- name: host-log-storage
hostPath:
path: /var/log
Review

is it necessary to use hostPath? it's bad in many ways and might break if the pod gets moved to another node

is it necessary to use hostPath? it's bad in many ways and might break if the pod gets moved to another node
Review

As denoted in the pinned comments of each of the 4 subtasks here there doesn't seem to be another option.

As denoted in the **pinned comments of each of the 4 subtasks** [here](https://jira.telekom-mms.com/browse/IPCEICIS-2949) there doesn't seem to be another option.
type: Directory
alloy:
create: false
name: alloy-config
key: config.alloy
mounts:
- mountPath: /openbao/logs
name: host-log-storage
readOnly: true
uiPathPrefix: "/alloy"
configMap:
@ -72,6 +83,16 @@ alloy:
}
local.file_match "file_logs" {
path_targets = [{"__path__" = "/openbao/logs/openbao/*"}]
sync_period = "5s"
}
loki.source.file "local_files" {
targets = local.file_match.file_logs.targets
forward_to = [loki.write.local_loki.receiver]
}
loki.source.kubernetes "all_pod_logs" {
targets = discovery.relabel.pod_logs.output
forward_to = [loki.write.local_loki.receiver]

View file

@ -20,7 +20,7 @@ spec:
- |
set -e
mkdir -p /var/log/openbao
chown 100:100 /var/log/openbao
chown 100:100 /var/log/openbao
securityContext:
runAsUser: 0
volumeMounts:
@ -29,7 +29,7 @@ spec:
containers:
- name: running-container
image: busybox
command: ["sleep", "2"]
command: ["sleep", "infinity"]
securityContext:
runAsUser: 0
volumes:

View file

@ -5,6 +5,8 @@ metadata:
namespace: openbao
spec:
schedule: "0 * * * *"
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
jobTemplate:
spec:
template: