Skip to content
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

Support Default Environment Variables on Sidecar #127

Open
jmickey opened this issue Nov 16, 2023 · 0 comments
Open

Support Default Environment Variables on Sidecar #127

jmickey opened this issue Nov 16, 2023 · 0 comments

Comments

@jmickey
Copy link

jmickey commented Nov 16, 2023

It would be great if there was a way to support a default set of environment variables for sidecar containers.

For example, I would like to add namespace as a global tag, which require that the $NAMESPACE environment variable exists. Current the only way to support this is to ensure that every pod in the cluster is deployed with an telegraf.influxdata.com/env-fieldref-NAMESPACE: metadata.namespace annotation. If an application developer fails to include this then all their metrics are instead tagged with namespace = $NAMESPACE.

It would be great if there was a way to configure some default variables on a global level so that some global tags that require dynamic values like fieldref can be supported at a platform level rather than just hoping devs remember to add the right annotation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant