1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-02 02:03:07 +00:00

Use internal address with local backup download

This commit is contained in:
galal-hussein 2019-03-09 21:13:45 +02:00 committed by Alena Prokharchyk
parent 64fed4bd9b
commit 65cda9f50d

View File

@ -548,7 +548,7 @@ func DownloadEtcdSnapshotFromBackupServer(ctx context.Context, etcdHost *hosts.H
"etcd-backup", "etcd-backup",
"download", "download",
"--name", name, "--name", name,
"--local-endpoint", backupServer.Address, "--local-endpoint", backupServer.InternalAddress,
"--cacert", pki.GetCertPath(pki.CACertName), "--cacert", pki.GetCertPath(pki.CACertName),
"--cert", pki.GetCertPath(pki.KubeNodeCertName), "--cert", pki.GetCertPath(pki.KubeNodeCertName),
"--key", pki.GetKeyPath(pki.KubeNodeCertName), "--key", pki.GetKeyPath(pki.KubeNodeCertName),