From 5daa3c708090db49d3f92fad54c7ac6fed7b0aef Mon Sep 17 00:00:00 2001 From: Jason-ZW Date: Fri, 21 Aug 2020 15:11:00 +0800 Subject: [PATCH] feat(autok3s): change k3s script url --- pkg/cluster/cluster.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index b2a67f70..a790e613 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -22,8 +22,8 @@ import ( ) var ( - masterCommand = "curl -sLS https://docs.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn K3S_TOKEN='%s' INSTALL_K3S_EXEC='--tls-san %s' sh -\n" - workerCommand = "curl -sLS https://docs.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn K3S_URL='https://%s:6443' K3S_TOKEN='%s' sh -\n" + masterCommand = "curl -sLS http://rancher-mirror.cnrancher.com/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn K3S_TOKEN='%s' INSTALL_K3S_EXEC='--tls-san %s' sh -\n" + workerCommand = "curl -sLS http://rancher-mirror.cnrancher.com/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn K3S_URL='https://%s:6443' K3S_TOKEN='%s' sh -\n" catCfgCommand = "cat /etc/rancher/k3s/k3s.yaml" deployManifestCommand = "echo \"%s\" > \"%s/ui.yaml\"" )