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

BUG: Offline mode deployment encounters problem of still pulling the network image #5396

Closed
fu7100 opened this issue Feb 21, 2025 · 2 comments
Labels
kind/bug Something isn't working

Comments

@fu7100
Copy link

fu7100 commented Feb 21, 2025

Sealos Version

5.0.0、5.0.1

How to reproduce the bug?

1、我将离线包load到本地后,然后生成一个配置文件
[root@k8s-1 ~]# sealos images
REPOSITORY TAG IMAGE ID CREATED SIZE
localhost/labring/kubernetes v1.28.14 4ab085e9b7cb 4 months ago 630 MB
localhost/labring/metrics-server v0.6.4 79507e56a004 17 months ago 30.1 MB
localhost/labring/calico v3.24.6 3d5490e2bcb4 21 months ago 355 MB
localhost/labring/flannel v0.20.2 af12a008a763 2 years ago 90 MB

#生成配置文件
sealos gen localhost/labring/kubernetes:v1.28.14 localhost/labring/calico:v3.24.6 --masters 192.168.80.141 -o clusterfile.yaml

2、使用生成的配置文件安装k8s,遇到如下解析image name错误
[root@k8s-1 ~]# sealos run -f clusterfile.yaml
2025-02-21T01:04:16 info Start to create a new cluster: master [192.168.80.141], worker [], registry 192.168.80.141
2025-02-21T01:04:16 info Executing pipeline Check in CreateProcessor.
2025-02-21T01:04:16 info checker:hostname [192.168.80.141:22]
2025-02-21T01:04:16 info checker:timeSync [192.168.80.141:22]
2025-02-21T01:04:16 info checker:containerd [192.168.80.141:22]
2025-02-21T01:04:16 info Executing pipeline PreProcess in CreateProcessor.
Error: error parsing image name "//clusterfile.yaml": pinging container registry registry-1.docker.io: Get "http://registry-1.docker.io/v2/": dial tcp 31.13.96.194:80: connect: connection refused

What is the expected behavior?

正常情况下应该是不用走外网拉镜像了,这里不知道为什么会这样

What do you see instead?

No response

Operating environment

- Sealos version:
- Docker version:
- Kubernetes version:
- Operating system:
- Runtime environment:
- Cluster size:
- Additional information:

Additional information

No response

@fu7100 fu7100 added the kind/bug Something isn't working label Feb 21, 2025
@sealos-ci-robot sealos-ci-robot changed the title BUG: 离线模式部署遇到仍然取网络拉取镜像问题 BUG: Offline mode deployment encounters problem of still pulling the network image Feb 21, 2025
@fu7100
Copy link
Author

fu7100 commented Feb 21, 2025

不好意思命令用错了,sealos apply才对

@fu7100 fu7100 closed this as completed Feb 21, 2025
@sealos-ci-robot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Sorry, the command is used incorrectly, sealos apply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants