Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
use china mirror in binary downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Oct 31, 2018
1 parent e62ab55 commit dc9bfa2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion parts/k8s/kubernetescustomscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ if $REBOOTREQUIRED; then
/bin/bash -c "shutdown -r 1 &"
else
runAptDaily &
fi
fi
14 changes: 7 additions & 7 deletions pkg/api/azenvtypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ var (
CloudName: azureChinaCloud,
//DockerSpecConfig specify the docker engine download repo
DockerSpecConfig: DockerSpecConfig{
DockerEngineRepo: "https://mirror.azure.cn/docker-engine/apt/repo/",
DockerComposeDownloadURL: "https://mirror.azure.cn/docker-toolbox/linux/compose",
DockerEngineRepo: "https://mirror.azk8s.cn/docker-engine/apt/repo/",
DockerComposeDownloadURL: "https://mirror.azk8s.cn/docker-toolbox/linux/compose",
},
//KubernetesSpecConfig - Due to Chinese firewall issue, the default containers from google is blocked, use the Chinese local mirror instead
KubernetesSpecConfig: KubernetesSpecConfig{
Expand All @@ -243,14 +243,14 @@ var (
ACIConnectorImageBase: "dockerhub.azk8s.cn/microsoft/",
NVIDIAImageBase: "dockerhub.azk8s.cn/nvidia/",
AzureCNIImageBase: "dockerhub.azk8s.cn/containernetworking/",
EtcdDownloadURLBase: DefaultKubernetesSpecConfig.EtcdDownloadURLBase,
EtcdDownloadURLBase: "https://mirror.azk8s.cn/kubernetes/etcd",
KubeBinariesSASURLBase: DefaultKubernetesSpecConfig.KubeBinariesSASURLBase,
WindowsPackageSASURLBase: DefaultKubernetesSpecConfig.WindowsPackageSASURLBase,
WindowsTelemetryGUID: DefaultKubernetesSpecConfig.WindowsTelemetryGUID,
CNIPluginsDownloadURL: DefaultKubernetesSpecConfig.CNIPluginsDownloadURL,
VnetCNILinuxPluginsDownloadURL: DefaultKubernetesSpecConfig.VnetCNILinuxPluginsDownloadURL,
VnetCNIWindowsPluginsDownloadURL: DefaultKubernetesSpecConfig.VnetCNIWindowsPluginsDownloadURL,
ContainerdDownloadURLBase: "https://mirror.azure.cn/kubernetes/containerd/",
CNIPluginsDownloadURL: "https://mirror.azk8s.cn/kubernetes/containernetworking-plugins/cni-plugins-amd64-" + CNIPluginVer + ".tgz",
VnetCNILinuxPluginsDownloadURL: "https://mirror.azk8s.cn/kubernetes/azure-container-networking/azure-vnet-cni-linux-amd64-" + AzureCniPluginVerLinux + ".tgz",
VnetCNIWindowsPluginsDownloadURL: "https://mirror.azk8s.cn/kubernetes/azure-container-networking/azure-vnet-cni-windows-amd64-" + AzureCniPluginVerWindows + ".zip",
ContainerdDownloadURLBase: "https://mirror.azk8s.cn/kubernetes/containerd/",
},
DCOSSpecConfig: DCOSSpecConfig{
DCOS188BootstrapDownloadURL: fmt.Sprintf(AzureChinaCloudDCOSBootstrapDownloadURL, "5df43052907c021eeb5de145419a3da1898c58a5"),
Expand Down

0 comments on commit dc9bfa2

Please sign in to comment.