mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 14:36:32 +00:00
Let etcd only listen on advertised url
This commit is contained in:
@@ -536,9 +536,9 @@ func (c *Cluster) BuildEtcdProcess(host *hosts.Host, etcdHosts []*hosts.Host, pr
|
||||
"name": "etcd-" + host.HostnameOverride,
|
||||
"data-dir": "/var/lib/rancher/etcd",
|
||||
"advertise-client-urls": "https://" + host.InternalAddress + ":2379,https://" + host.InternalAddress + ":4001",
|
||||
"listen-client-urls": "https://0.0.0.0:2379",
|
||||
"listen-client-urls": "https://" + host.InternalAddress + ":2379",
|
||||
"initial-advertise-peer-urls": "https://" + host.InternalAddress + ":2380",
|
||||
"listen-peer-urls": "https://0.0.0.0:2380",
|
||||
"listen-peer-urls": "https://" + host.InternalAddress + ":2380",
|
||||
"initial-cluster-token": "etcd-cluster-1",
|
||||
"initial-cluster": initCluster,
|
||||
"initial-cluster-state": clusterState,
|
||||
|
Reference in New Issue
Block a user