1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-30 13:02:45 +00:00

Merge pull request #386 from moelsayed/etcd_restart

Fix etcd process regression
This commit is contained in:
Alena Prokharchyk 2018-02-26 13:47:57 -08:00 committed by GitHub
commit bf41e6834c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -393,12 +393,13 @@ func (c *Cluster) BuildEtcdProcess(host *hosts.Host, etcdHosts []*hosts.Host) v3
URL: services.EtcdHealthCheckURL,
}
return v3.Process{
Name: services.EtcdContainerName,
Args: args,
Binds: Binds,
NetworkMode: "host",
Image: c.Services.Etcd.Image,
HealthCheck: healthCheck,
Name: services.EtcdContainerName,
Args: args,
Binds: Binds,
NetworkMode: "host",
RestartPolicy: "always",
Image: c.Services.Etcd.Image,
HealthCheck: healthCheck,
}
}