mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
use etcd endpoint from advertise-client-urls
It makes more sense to use advertised etcd endpoints instead of using listened client URLS. I'm solving this use case: Listen on localhost and public IP but I don't want to add multiple endpoints to kube-apiservers because it's targeting same etcd server.
This commit is contained in:
parent
e763a3c56d
commit
a031d03501
@ -187,7 +187,7 @@ func getAPIServerCommand(cfg *kubeadmapi.InitConfiguration) []string {
|
||||
|
||||
// Apply user configurations for local etcd
|
||||
if cfg.Etcd.Local != nil {
|
||||
if value, ok := cfg.Etcd.Local.ExtraArgs["listen-client-urls"]; ok {
|
||||
if value, ok := cfg.Etcd.Local.ExtraArgs["advertise-client-urls"]; ok {
|
||||
defaultArguments["etcd-servers"] = value
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user