From df3e75b1b53a09a356bf25e761be80beb7835401 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Steenis Date: Mon, 16 Apr 2018 10:08:27 +0200 Subject: [PATCH] Let etcd only listen on advertised url --- cluster/plan.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/plan.go b/cluster/plan.go index 6a05881f..f0a0ccc2 100644 --- a/cluster/plan.go +++ b/cluster/plan.go @@ -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,