Override static config in file with environment variables

I'm trying to get DataDog metrics working for Traefik in Kubernetes, and my remaining problem is that I need to configure the node host IP in metrics.datadog.address, but the only way I've found to get to that is via a an environment variable fieldRef to status.hostIP, which I can use to compose an environment variable from, TRAEFIK_METRICS_DATADOG_ADDRESS in this case.

But it's verbose to configure the entire static config using environment variables, so everything else is in a ConfigMap.

Now I was hoping that environment variables would be able to override or complement static configuration from file, but the docs mention that only one source of configuration will be considered.

So, am I forced to put everything in env vars?

I moved back to using command line arguments for this, as those can reference the environment variables

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