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

Commit

Permalink
use gcr.azk8s.cn for ip-masq-agent on Azure China
Browse files Browse the repository at this point in the history
replace k8s.gcr.io with gcr.azk8s.cn in Azure China

add comments
  • Loading branch information
andyzhangx committed Nov 6, 2018
1 parent 4200a86 commit 305373c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions parts/k8s/kubernetesmastercustomdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,12 @@ MASTER_ARTIFACTS_CONFIG_PLACEHOLDER
sed -i "s|<masqLinkLocalValue>|false|g" "/etc/kubernetes/addons/ip-masq-agent.yaml"
{{end}}

{{if IsMooncake}}
#`k8s.gcr.io` would redirect to `gcr.io/google-containers`, so we replace with `gcr.azk8s.cn/google-containers` here and it must be in the first order.
sed -i "s/k8s.gcr.io/gcr.azk8s.cn\/google-containers/g" /etc/kubernetes/addons/*.yaml
sed -i "s/gcr.io/gcr.azk8s.cn/g" /etc/kubernetes/addons/*.yaml
{{end}}

- path: "/opt/azure/containers/mountetcd.sh"
permissions: "0744"
encoding: gzip
Expand Down

0 comments on commit 305373c

Please sign in to comment.