adding a side-car logging container for openbao
This commit is contained in:
parent
28916f2278
commit
83e1215d7d
3 changed files with 131 additions and 1 deletions
|
|
@ -23,7 +23,13 @@ spec:
|
|||
targetRevision: HEAD
|
||||
helm:
|
||||
valueFiles:
|
||||
- $values/stacks/ref-implementation/openbao/values.yaml
|
||||
- $values/stacks/ref-implementation/openbao/values.yaml
|
||||
- repoURL: https://github.com/grafana/alloy.git
|
||||
path: charts/openbao
|
||||
targetRevision: HEAD
|
||||
helm:
|
||||
valueFiles:
|
||||
- $values/stacks/ref-implementation/openbao/logging-values.yaml
|
||||
- repoURL: https://{{{ .Env.DOMAIN_GITEA }}}/giteaAdmin/edfbuilder
|
||||
targetRevision: HEAD
|
||||
ref: values
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
alloy:
|
||||
create: false
|
||||
name: alloy-config
|
||||
key: config.alloy
|
||||
|
||||
uiPathPrefix: "/alloy"
|
||||
|
||||
configMap:
|
||||
content: |-
|
||||
|
||||
logging {
|
||||
level = "info"
|
||||
format = "logfmt"
|
||||
}
|
||||
|
||||
loki.write "local_loki" {
|
||||
endpoint {
|
||||
url = "http://loki-loki-distributed-gateway/loki/api/v1/push"
|
||||
}
|
||||
}
|
||||
|
||||
local.file_match "applogs" {
|
||||
path_targets = [{"__path__" = "/tmp/alloy/*"}]
|
||||
sync_period = "2s"
|
||||
}
|
||||
|
||||
loki.source.file "local_files" {
|
||||
targets = local.file_match.applogs.targets
|
||||
forward_to = [loki.write.local_loki.receiver]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue