Customizing etcd parameters in rke2 #4748
Replies: 2 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
japereira1986
-
Thanks for the quick response! Do you anticipate this being something you'll support in the future, or is it not on the roadmap at this time? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is it possible to modify etcd setup parameters in rke2?
I am attempting to adjust both "ETCD_ADVERTISE_CLIENT_URLS" and "ETCD_INITIAL_ADVERTISE_PEER_URLS" in an airgapped environment (due to a slightly weird setup where our advertised ips need to be different from the node ips). Per the documentation, I am attempting to use etcd-extra-env to do this. The config below is our setup (using rke version 1.24.4+rke2r1)
This configuration results in an etcd pod which does have both of those variables set in the environment section. Unfortunately, it doesn't seem to make a difference; in our etcd logs, our pod is still only advertising itself on 10.22.3.17 (leaving other pods unable to reach it).
When I consulted the etcd docs at https://etcd.io/docs/v3.5/op-guide/configuration/#configuration-file, I found the following warning:
That would seem to suggest to me that setting etcd-extra-env won't actually work- the default config file at (in our case) /data/rancher/current/server/db/config will overwrite anything we pass in.
Am I doing something wrong? Is there a different way to do this that I overlooked in the rke2 documentation? Is this simply not supported?
Appreciate any assistance! Apologies for the lack of logs- the nature of our environment makes it difficult to provide them, but hopefully the information I've provided is enough to describe what I'm encountering.
Beta Was this translation helpful? Give feedback.
All reactions