Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run in China because gcr.io is blocked #5551

Open
carlossg opened this issue Jun 6, 2019 · 10 comments

Comments

Projects
None yet
3 participants
@carlossg
Copy link
Contributor

commented Jun 6, 2019

gcr.io is blocked. Dockerhub is not

$ k get pods
NAME                                             READY   STATUS             RESTARTS   AGE
crier-749f96fb4d-hlddq                           0/1     ImagePullBackOff   0          12m
deck-696f77d746-6wlg5                            0/1     ImagePullBackOff   0          12m
deck-696f77d746-rw96p                            0/1     ErrImagePull       0          12m
expose-vvb9s                                     0/1     ImagePullBackOff   0          7m42s
hook-6d9859bb47-9fxlq                            0/1     ImagePullBackOff   0          12m
hook-6d9859bb47-f2q8h                            0/1     ImagePullBackOff   0          12m
horologium-6bc57b5f9-2c9pm                       0/1     ImagePullBackOff   0          12m
jenkins-x-chartmuseum-75d45b6d7f-nhlgx           1/1     Running            0          10m
jenkins-x-controllerbuild-5d957488fc-pb2k5       0/1     ImagePullBackOff   0          10m
jenkins-x-controllerrole-567d98bcdb-vtlj4        1/1     Running            0          10m
jenkins-x-controllerteam-865b78fc69-ck67z        0/1     ErrImagePull       0          10m
jenkins-x-docker-registry-6d555974c7-wrcdq       1/1     Running            0          10m
jenkins-x-heapster-77b5c99cd8-qwm7s              0/2     ImagePullBackOff   0          9m16s
jenkins-x-mongodb-696fdf64fc-nkplf               1/1     Running            1          9m17s
jenkins-x-monocular-api-6b676d869-fc5w9          1/1     Running            2          9m7s
jenkins-x-monocular-prerender-77f6cd8449-rw9lc   1/1     Running            0          9m3s
jenkins-x-monocular-ui-7b98595f74-rcl59          1/1     Running            0          8m58s
jenkins-x-nexus-6ccd45c57c-x92cl                 0/1     ImagePullBackOff   0          8m52s
pipeline-5f85b8df5b-rkszf                        0/1     ImagePullBackOff   0          11m
pipelinerunner-744d857549-fdxgp                  0/1     ImagePullBackOff   0          11m
plank-8849d9d67-4k8dx                            0/1     ImagePullBackOff   0          11m
sinker-85ff54bd9b-js6bx                          0/1     ImagePullBackOff   0          11m
tekton-pipelines-controller-687cfbcc89-fhsr4     0/1     ImagePullBackOff   0          13m
tekton-pipelines-webhook-7fd7f8cdcc-mnxjn        0/1     ImagePullBackOff   0          13m
tide-5f8fb5964c-f6jsr                            0/1     ImagePullBackOff   0          11m
@carlossg

This comment has been minimized.

Copy link
Contributor Author

commented Jun 17, 2019

Helm charts hosted in storage.googleapis.com can be downloaded but a ridiculously slow speed in my experience

@carlossg carlossg referenced this issue Jun 17, 2019

Open

Support for Alibaba Cloud #3326

2 of 2 tasks complete
@zeusro

This comment has been minimized.

Copy link

commented Jun 19, 2019

It is blocked by the Chinese gov,not Alibaba

@caryyu

This comment has been minimized.

Copy link

commented Jun 21, 2019

Any solution here to pass this?

@carlossg carlossg changed the title Alibaba cloud blocks gcr.io Can't run in China because gcr.io is blocked Jun 21, 2019

@carlossg

This comment has been minimized.

Copy link
Contributor Author

commented Jun 21, 2019

I have copied docker images to dockerhub, so you could install using this instructions as long as you use the same version of jx

https://gist.github.com/carlossg/aaeef907d59e2c64e6745da532ecd446

@caryyu

This comment has been minimized.

Copy link

commented Jun 22, 2019

@carlossg I think I was sort of very close to figuring this out by using an accelerating domain gcr.azk8s.cn to replace gcr.io (see the mapping list below) with myvalues.yaml (refering to https://jenkins-x.io/getting-started/config/), But the other some issues I've encountered is not all the image repositories can be passed via this approach, for instance: gcr.io/jenkinsxio/prow&gcr.io/tekton-releases&gcr.io/jenkinsxio/builder-maven, etc ..

Alternative Origin
gcr.azk8s.cn/google_containers k8s.gcr.io
gcr.azk8s.cn gcr.io

The most desired expectation for me is how we can have this approach to solve all image downloading issues or In JX command line has an option to cover this.

@carlossg

This comment has been minimized.

Copy link
Contributor Author

commented Jun 22, 2019

I didn't know about gcr.azk8s.cn, that simplifies things
Take a look at my values.yaml file here, it should be easy to replace my csanchez images with gcr.azk8s.cn
https://github.com/carlossg/cloud-environments/blob/alibaba-china/env-alibaba/myvalues.yaml

@caryyu

This comment has been minimized.

Copy link

commented Jun 22, 2019

@carlossg LGTM😄, Your config file is really helpful, I think that will be better If you make some comments on those replaced images, which one matches which original one; because it is not that simple about what you described of replacing the image repository prefix of csanchez, for example,

@zeusro

This comment has been minimized.

Copy link

commented Jun 22, 2019

@caryyu dockerhub would be better.We can pull dockerhub‘s images by using "registry-mirrors"

@caryyu

This comment has been minimized.

Copy link

commented Jun 23, 2019

@zeusro yeah I agree; however, now the default images are all on the Google cloud, which means, somebody needs to do the copy efforts or there has an automatic synchronization because what @carlossg has done requires us for a specific version of JX so that your installation can be perfectly done, otherwise, the image tags can't correctly match with the latest version of JX

@carlossg

This comment has been minimized.

Copy link
Contributor Author

commented Jun 24, 2019

This values.yaml file works now https://github.com/carlossg/jenkins-x-cloud-environments-alibaba-china/blob/master/env-alibaba/myvalues.yaml

can be used with

jx install \
  --provider alibaba \
  --default-admin-password=admin \
  --default-environment-prefix=jx-rocks-china \
  --tekton \
  --docker-registry=registry.cn-beijing.aliyuncs.com \
  --docker-registry-org=jx-rocks \
  --cloud-environment-repo=https://github.com/carlossg/jenkins-x-cloud-environments-alibaba-china.git \
  -b

@carlossg carlossg closed this Jun 24, 2019

@carlossg carlossg reopened this Jun 24, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.