Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Deployment in China #5592

Open
hzy46 opened this issue Aug 10, 2021 · 7 comments
Open

Deployment in China #5592

hzy46 opened this issue Aug 10, 2021 · 7 comments
Labels
deployment PAI deployment related

Comments

@hzy46
Copy link
Contributor

hzy46 commented Aug 10, 2021

Deployment in China will face some network-related issues. @siaimes has a good solution on this. Please use this issue to discuss this topic.

@hzy46 hzy46 added the deployment PAI deployment related label Aug 10, 2021
@hzy46 hzy46 pinned this issue Aug 10, 2021
@siaimes
Copy link
Contributor

siaimes commented Aug 10, 2021

具体方案参考下面的仓库:

https://github.com/siaimes/k8s-share

原理:

  1. 提前将资源文件同步到一个镜像里面,并在本地任意一台集群中节点能访问到的机器上启动一个容器,然后将配置文件中的文件地址指向该容器,从而解决资源文件无法下载的问题;(只需一行命令)
  2. 使用镜像同步服务将gcr的镜像同步到dockerhub,由于dockerhub国内还可以访问,故解决了镜像无法拉取的问题。(无痛)

@siaimes
Copy link
Contributor

siaimes commented Aug 11, 2021

有些地区nvidia.github.io被DNS污染(DNS返回127.0.0.1),导致安装nvidia-container-runtime失败,解决方法是在/etc/hosts中加入如下记录:

185.199.110.153 nvidia.github.io

image

@siaimes
Copy link
Contributor

siaimes commented Aug 11, 2021

我的博客中还有许多与网络无关的可能导致安装失败或运行中出现故障的细节就不贴在这里了,需要的朋友可以自行浏览我的博客:https://blog.siaimes.me/2022/05/30/p62.html

@hzy46
Copy link
Contributor Author

hzy46 commented Aug 12, 2021

Thanks @siaimes for sharing the solution.

@murez
Copy link

murez commented Dec 13, 2021

Thanks, your solution is very useful. And I am maintaining a Open Source Mirror and I am willing to mirror these files on my site, could you please give me the whole file list?

@murez
Copy link

murez commented Jan 2, 2022

Thanks, your solution is very useful. And I am maintaining a Open Source Mirror and I am willing to mirror these files on my site, could you please give me the whole file list?

I have sent an email to you, please check your mailbox, and look forward to your update of the mirror link.

another mirror is online https://mirrors.geekpie.tech/k8s-share/

@cdpath
Copy link

cdpath commented May 19, 2022

I figured out a way to use registry.aliyuncs.com to pull required docker images. Just try this config.yaml:

https://gist.github.com/cdpath/19c8cb90d4e109e2e9b5c711d2369ea2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
deployment PAI deployment related
Projects
None yet
Development

No branches or pull requests

4 participants