-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Telegraf] Proper way to use envFromSecret #629
Comments
In case anyone else stumbles on this, I got this working using:
where my k8 secret named "telegraf-token-secret" looks something like:
|
Hi!
|
@Elly-B my setup is a bit more complex because I'm using some other services to pull the tokens from a 3rd party secret store. However, the secret this results in looks something like:
If I look inside the telegraf pod I see
|
I am trying to use the
envFromSecret
to pass K8s secrets that are shared with InfluxDB to allow Telegraf to push to InfluxDB. The secrets have dashes in them which does not seem to parse properly in the config file. For example, my secret key is nameduser-token
. I use the below output:It appears that
$admin-token
does not parse correctly and I get 401 errors in Telegraf. I can hach=k around this by passing the secret as an env variable:Is this the expected way to do this or is there some other way I can use the
envFromSecret
to get a secret in the config with a dash?Thanks for the help!
The text was updated successfully, but these errors were encountered: