Replies: 1 comment 4 replies
-
Hey @Swaps76, you can also populate the env variable Alternatively, you can use env variable in your configuration file like:
During the init, the env variable names will be expanded to the actual values. Give it a try. 👍 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When configuring the target in the values.yaml, I need to hardcode the postgres credentials as part of the azure DSN;
config:
target:
name: dev-database
data_source_name: 'postgres://user:password@database_url/table'
I have set the credentials as external secrets and configured them as ENV VARS in the pod
env:
PGPASSWORD:
from:
kind: Secret
name: sql-secrets
key: sql-password
PGUSER:
from:
kind: Secret
name: sql-secrets
key: sql-user
But how can I pass these secrets to the configmap so that they are iterpolated in the sql_exporter.yml?
Beta Was this translation helpful? Give feedback.
All reactions