From fb878b3a157447bf782c38b3a7ec0c68472795c4 Mon Sep 17 00:00:00 2001 From: azurity <784227594@qq.com> Date: Sat, 20 Jul 2024 21:38:12 +0800 Subject: [PATCH] Update prepare.go The old installation script mirror source has expired. Replace it with a valid URL. --- server/cli/prepare/prepare.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/cli/prepare/prepare.go b/server/cli/prepare/prepare.go index 815e22f..1e55e06 100644 --- a/server/cli/prepare/prepare.go +++ b/server/cli/prepare/prepare.go @@ -97,7 +97,7 @@ func InstallK3S(masterIP string, k3sExec string) { } log.Println("download k3s install script...") client := &http.Client{} - k3sReq, _ := http.NewRequest("GET", "https://rancher-mirror.oss-cn-beijing.aliyuncs.com/k3s/k3s-install.sh", nil) + k3sReq, _ := http.NewRequest("GET", "https://rancher-mirror.rancher.cn/k3s/k3s-install.sh", nil) k3sReq.Header.Set("Accept-Encoding", "*") k3sRes, err := client.Do(k3sReq) if err != nil {