Hi Loki,
I am trying to override configmap.yaml in loki helm chart 4.6.0 file which controls the storage option using values.yaml file, but have been unsuccessfull till now. Here is what my values.yaml file looks like. I have made sure i am providing a string since if we try to override the config we get following error.
Error: execution error at (loki/charts/loki/templates/validate.yaml:2:4): Top level ‘config’ is not allowed. Most common configuration sections are exposed under the loki
section. If you need to override the whole config, provide the configuration as a string that can contain template expressions under loki.config
. Alternatively, you can provide the configuration as an external secret.
values.yaml
---
loki:
config: |
auth_enabled: true
common:
compactor_address: loki-read
path_prefix: /var/loki
replication_factor: 3
storage:
s3:
bucketnames: dpoe-1233-usw2-s3bucket
region: us-west-2
role_arn: arn:aws:iam::1233:role/dpoe-1233-usw2-s3bucket
s3forcepathstyle: true
limits_config:
enforce_metric_name: false
max_cache_freshness_per_query: 10m
reject_old_samples: true
reject_old_samples_max_age: 168h
split_queries_by_interval: 15m
memberlist:
join_members:
- loki-memberlist
query_range:
align_queries_with_step: true
runtime_config:
file: /etc/loki/runtime-config/runtime-config.yaml
schema_config:
configs:
- from: 2022-01-11
index:
period: 24h
prefix: loki_index_
object_store: s3
schema: v12
store: boltdb-shipper
server:
grpc_listen_port: 9095
http_listen_port: 3100
storage_config:
s3:
bucketnames: dpoe-1233-usw2-s3bucket
region: us-west-2
s3forcepathstyle: true
role_arn: arn:aws:iam::1233:role/s3bucket
table_manager:
retention_deletes_enabled: false
retention_period: 0
and using this command to template it
helm template charts/loki -f charts/loki/values.yaml --output-dir rendered/loki --debug \
Doing the above i dont get any errors but my changes arent applied to configmap.yaml and deployment doesnt update the storage option. At this time it will be helpful if i can know the ways of overriding the config file somehow.