Closed grantjulian22 closed 6 days ago
extraArgs: memberlist.bind-addr: ${MY_POD_IP}
When passing environment variables via command args you have to use parentheses, i.e. $(MY_POD_IP)
(ref Kubernetes docs):
extraArgs:
- memberlist.bind-addr: ${MY_POD_IP}
+ memberlist.bind-addr: $(MY_POD_IP)
Mimir first parses the provided config file, expands the envs, and then amends the config with the values from the CLI flags. The later values are used as is. They must be expanded by Kubernetes.
Please reopen the issue if this doesn't solve it for you.
What is the bug?
Getting the following error on several mimir pods after exposing status.podID through an environment variable MY_POD_IP:
failure: service memberlist_kv failed: failed to create transport: could not parse bind addr \"${MY_POD_IP}\" as IP address"
How to reproduce it?
What did you think would happen?
I expected the mimir pods to be able to parse the environment variable $MY_POD_IP into a usable IP address
What was your environment?
Google Kubernetes Engine Helm v3.16.0-rc.1 Mimir-distributed-5.6.0
Any additional context to share?
Important to note that
-config.expand-env=true
Full values file