1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-31 14:36:32 +00:00

Change etcd dir

This commit is contained in:
galal-hussein
2018-02-23 03:44:51 +02:00
committed by Darren Shepherd
parent 8b1aa7ba22
commit 1dc9a94021

View File

@@ -357,7 +357,7 @@ func (c *Cluster) BuildEtcdProcess(host *hosts.Host, etcdHosts []*hosts.Host) v3
}
args := []string{"/usr/local/bin/etcd",
"--name=etcd-" + host.HostnameOverride,
"--data-dir=/etcd-data",
"--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",
"--initial-advertise-peer-urls=https://" + host.InternalAddress + ":2380",
@@ -376,7 +376,7 @@ func (c *Cluster) BuildEtcdProcess(host *hosts.Host, etcdHosts []*hosts.Host) v3
}
Binds := []string{
"/var/lib/etcd:/etcd-data:z",
"/var/lib/etcd:/var/lib/rancher/etcd:z",
"/etc/kubernetes:/etc/kubernetes:z",
}
for arg, value := range c.Services.Etcd.ExtraArgs {