We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d5e283 commit 96f684dCopy full SHA for 96f684d
1 file changed
_scripts/install.sh
@@ -20,6 +20,15 @@ function clean_before_exit {
20
trap clean_before_exit EXIT
21
22
if [[ "${INSTALL_K3S_MIRROR}"=="cn" ]] ; then
23
+ mkdir -p /etc/rancher/k3s
24
+ cat << EOF > "/etc/rancher/k3s/registries.yaml"
25
+mirrors:
26
+ "docker.io":
27
+ endpoint:
28
+ - "docker.mirrors.ustc.edu.cn"
29
+ - "http://hub-mirror.c.163.com"
30
+ - "https://registry-1.docker.io"
31
+EOF
32
k3s_install_url="http://rancher-mirror.cnrancher.com/k3s/k3s-install.sh"
33
else
34
k3s_install_url="https://get.k3s.io"
0 commit comments