Loki-stack Helm Chart with `extraEnvFrom` with `ConfigMap`

Hey everyone! :wave:

I’ve been using the loki-stack Helm chart for awhile now (experimenting) but now that I’d like to get it ready for production, I’m attempting to use an existing ConfigMap along with Loki’s expand-env=true:

loki:
  config:
    schema_config:
      configs:
        - from: 2022-01-01
          store: aws
          object_store: s3
          schema: v11
          index:
            prefix: loki_stack_loki_
    storage_config:
      aws:
        s3: s3://$(AWS_ACCESS_KEY_ID):$(AWS_SECRET_ACCESS_KEY)@$(AWS_REGION)/loki-stack-loki
        dynamodb:
          dynamodb_url: dynamodb://$(AWS_ACCESS_KEY_ID):$(AWS_SECRET_ACCESS_KEY)@$(AWS_REGION)
  extraArgs:
    config.expand-env: true
    target: all,table-manager
  extraEnvFrom:
    - configMapRef:
        name: aws

The problem is while running queries, I receive an HTTP 500 with the message MissingEndpoint: 'Endpoint' configuration is required for this service. If I remove the $() ENV syntax from values and replace them with the actual values (that match those in the ConfigMap), everything works properly.

I understand that the grafana/loki-stack Helm chart inherits from grafana/loki chart so I’ve been using it as a reference.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.