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

先用kk安装k8s,然后通过yaml安装kubesphere,镜像无法下载,可以指定镜像前缀么,比如阿里云 #6111

Open
13567436138 opened this issue May 28, 2024 · 4 comments

Comments

@13567436138
Copy link

13567436138 commented May 28, 2024

English only!

注意!GitHub Issue 仅支持英文,中文 Issue 请在 论坛 提交。

General remarks

Please delete this section including header before submitting

This form is to report installation issues. For general usage questions you can refer to KubeSphere Documentation or join our Slack channel
KubeSphere-users

What's your question
先用kk安装k8s,然后通过yaml安装kubesphere,镜像无法下载,可以指定镜像前缀么,比如阿里云
image

Environment: OS & Hardware Information

Important: You must describe your environment clearly, e.g. VMware or Bare Metal, CentOS 7.5, 8 C / 16 G (If you install on Linux), Or Kubernetes v1.16 (If you install on K8s).

Error logs or message (Attach logs or screenshot)

Installer Version

e.g. v2.1.0, v2.1.1, v3.0.0

@tanqidi
Copy link

tanqidi commented Jun 4, 2024

export KKZONE=cn
即可让kk去阿里云下载镜像

@kevin-ying-x
Copy link

使用export KKZONE=cn也拉取不下来包

@tanqidi
Copy link

tanqidi commented Jun 11, 2024

使用export KKZONE=cn也拉取不下来包

现在各大镜像站已经被封掉了,已经不能直接从docker直接下载镜像了。推荐使用kk直接安装k8s和kubesphere
1、参考 https://www.kubesphere.io/zh/docs/v3.3/quick-start/all-in-one-on-linux/
2、先执行 export KKZONE=cn 然后再执行 kk create cluster 它就会去阿里云下载镜像,这个方式是先自动帮你安装k8s再自动帮你安装kubesphere,不用分开这样会快速点

@tanqidi
Copy link

tanqidi commented Jun 11, 2024

另外一种方式是给所有节点的docker新增代理配置
1、参考 https://stackoverflow.com/questions/23111631/cannot-download-docker-images-behind-a-proxy
2、编辑 /etc/systemd/system/docker.service 在 [Service] 中加入如下,其中172.31.0.1是我vmware中为window分配的ip,7890是clash开的代理端口,请注意 NO_PROXY 我试验是能正常工作运行k8s和kubesphere的,但不是最完善的
Environment="HTTP_PROXY=http://172.31.0.1:7890/"
Environment="HTTPS_PROXY=http://172.31.0.1:7890/"
Environment="NO_PROXY=localhost,127.0.0.1,::1,10.*,172.*,192.*,169.*,0.*"
3、如此这般完成后,重启docker即可无障碍下载任意容器

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants