Skip to content

Commit

Permalink
Merge pull request #2 from projectsyn/feat/expand-env
Browse files Browse the repository at this point in the history
Expand environment variables in config by default
  • Loading branch information
HappyTetrahedron authored Sep 20, 2024
2 parents 5f1bbf3 + 0f966b0 commit c041054
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ parameters:
namespaced: true

backend:
extraArgs:
- '-config.expand-env=true'
nodeSelector: ${loki:globalNodeSelector}
replicas: 3
resources:
Expand All @@ -116,6 +118,8 @@ parameters:
cpu: 0.5
memory: 1Gi
read:
extraArgs:
- '-config.expand-env=true'
nodeSelector: ${loki:globalNodeSelector}
replicas: 2
resources:
Expand All @@ -126,6 +130,8 @@ parameters:
cpu: 1
memory: 3Gi
write:
extraArgs:
- '-config.expand-env=true'
nodeSelector: ${loki:globalNodeSelector}
replicas: 3
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ spec:
- -config.file=/etc/loki/config/config.yaml
- -target=backend
- -legacy-read-mode=false
- -config.expand-env=true
image: docker.io/grafana/loki:3.1.1
imagePullPolicy: IfNotPresent
name: loki
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
- -target=read
- -legacy-read-mode=false
- -common.compactor-grpc-address=loki-backend.syn-loki.svc.cluster.local:9095
- -config.expand-env=true
image: docker.io/grafana/loki:3.1.1
imagePullPolicy: IfNotPresent
name: loki
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ spec:
- args:
- -config.file=/etc/loki/config/config.yaml
- -target=write
- -config.expand-env=true
image: docker.io/grafana/loki:3.1.1
imagePullPolicy: IfNotPresent
name: loki
Expand Down

0 comments on commit c041054

Please sign in to comment.