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: http private registry build error #1469

Closed
zzzhangqi opened this issue Dec 3, 2022 · 3 comments
Closed

BUG: http private registry build error #1469

zzzhangqi opened this issue Dec 3, 2022 · 3 comments
Assignees

Comments

@zzzhangqi
Copy link
Collaborator

When building with source code, Failed to push to HTTP private repository.

@zzzhangqi zzzhangqi added the kind/bug BUG Feedback label Dec 3, 2022
@zzzhangqi
Copy link
Collaborator Author

http 私有镜像仓库通过镜像创建组件无法创建,报错如下:

info msg="trying next host" error="failed to do request: Head \"https://8081.gr220c2d.sip8tc5m.280440.grapps.cn:80/v2/test/nginx/manifests/latest\": http: server gave HTTP response to HTTPS client" host="8081.gr220c2d.sip8tc5m.280440.grapps.cn:80"

底层配置 http 私有镜像仓库,源码构建时无法拉取builder镜像,如下:
image

@Issues-translate-bot
Copy link

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


The http private mirror warehouse cannot be created through the mirror creation component, and the error is as follows:

info msg="trying next host" error="failed to do request: Head \"https://8081.gr220c2d.sip8tc5m.280440.grapps.cn:80/v2/test/nginx/manifests/latest\": http : server gave HTTP response to HTTPS client" host="8081.gr220c2d.sip8tc5m.280440.grapps.cn:80"

The bottom layer configures http private mirror warehouse, and the builder mirror cannot be pulled when the source code is built, as follows:
image

@quyuancheng
Copy link
Contributor

如果您使用的镜像是来自http类型的私有镜像仓库,那么需要在rbdcomponent中配置相关参数,使镜像能够正常构建使用。
具体操作如下步骤:
1、执行 kubectl edit rbdcomponent rbd-chaos -n rbd-system
2、在 spec 下添加 args 参数 kaniko-args=--insecure=true,--insecure-pull=true

spiversion rainbond  iov1a Lohat

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

No branches or pull requests

5 participants