mirror of
https://github.com/rancher/rke.git
synced 2025-08-02 07:43:04 +00:00
Merge pull request #1372 from zhaofengli/mixed-arch-etcd-cluster
Use the node's architecture to build etcd process
This commit is contained in:
commit
88a4d73e79
@ -825,15 +825,11 @@ func (c *Cluster) BuildSidecarProcess(host *hosts.Host) v3.Process {
|
||||
func (c *Cluster) BuildEtcdProcess(host *hosts.Host, etcdHosts []*hosts.Host, serviceOptions v3.KubernetesServicesOptions) v3.Process {
|
||||
nodeName := pki.GetCrtNameForHost(host, pki.EtcdCertName)
|
||||
initCluster := ""
|
||||
architecture := "amd64"
|
||||
architecture := host.DockerInfo.Architecture
|
||||
if len(etcdHosts) == 0 {
|
||||
initCluster = services.GetEtcdInitialCluster(c.EtcdHosts)
|
||||
if len(c.EtcdHosts) > 0 {
|
||||
architecture = c.EtcdHosts[0].DockerInfo.Architecture
|
||||
}
|
||||
} else {
|
||||
initCluster = services.GetEtcdInitialCluster(etcdHosts)
|
||||
architecture = etcdHosts[0].DockerInfo.Architecture
|
||||
}
|
||||
|
||||
clusterState := "new"
|
||||
|
Loading…
Reference in New Issue
Block a user