-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
ETCD_CONFIG_FILE env variable is ignored #10747
Comments
I just did a quick look at the code, |
Thanks for confirming! I tried hunting down what was causing it, but i don't speak 'Go' and I'm not really familiar with how all the bits interact. |
FYI, the current code will first check if there is config file provided via command line flag
So the current code does not support Ref: Lines 286 to 298 in e9f310a
|
I have same issue. I can read from log files that Below is my
|
@EugenKon this issue was closed four years ago. The etcd version 3.3 is no longer supported by the project. There have been countless security, performance and other fixes made in etcd 3.4 and 3.5. Please update to a supported release and this issue should be resolved. |
@jmhbnz I will try, but I did not found an easy way to install new version. |
The later releases are available as pre built binaries that just need to be downloaded and unpacked, please refer to https://etcd.io/docs/v3.5/install/#install-pre-built-binaries |
etcd v3.3
etcd appears to recognize and then promptly ignore the ETCD_CONFIG_FILE environment variable. Passing the --config-file flag seems to work properly. As an example, create a super simplistic config file at /etc/etcd/etcd.conf.yaml containing only
data-dir: /var/lib/etcd
Setting ETCD_CONFIG_FILE=/etc/etcd/etcd.conf.yaml and trying to start etcd returns something similar to the following:
However, starting etcd with the --config-file /etc/etcd/etcd.conf.yaml works properly:
The text was updated successfully, but these errors were encountered: