mirror of
https://github.com/rancher/rke.git
synced 2025-05-12 10:26:20 +00:00
Use Internal Addresses to sort the etcd connection string
This commit is contained in:
parent
22f261daf7
commit
870c073c10
@ -18,7 +18,7 @@ import (
|
||||
"github.com/rancher/rke/pki"
|
||||
"github.com/rancher/rke/services"
|
||||
"github.com/rancher/rke/util"
|
||||
"github.com/rancher/types/apis/management.cattle.io/v3"
|
||||
v3 "github.com/rancher/types/apis/management.cattle.io/v3"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
@ -100,7 +100,7 @@ func BuildRKEConfigNodePlan(ctx context.Context, myCluster *Cluster, host *hosts
|
||||
|
||||
func (c *Cluster) BuildKubeAPIProcess(host *hosts.Host, prefixPath string) v3.Process {
|
||||
// check if external etcd is used
|
||||
etcdConnectionString := services.GetEtcdConnString(c.EtcdHosts, host.Address)
|
||||
etcdConnectionString := services.GetEtcdConnString(c.EtcdHosts, host.InternalAddress)
|
||||
etcdPathPrefix := EtcdPathPrefix
|
||||
etcdClientCert := pki.GetCertPath(pki.KubeNodeCertName)
|
||||
etcdClientKey := pki.GetKeyPath(pki.KubeNodeCertName)
|
||||
|
Loading…
Reference in New Issue
Block a user