大三角帆Nexus集成 [英] Spinnaker Nexus Integration
问题描述
在将大三角帆与Nexus集成时,我遇到了问题. 基本上,这是我的过程-使用Jenkins构建docker映像并上传到Nexus.接下来,要基于Nexus上可用的新映像触发大三角帆管道,以在kubernetes上部署应用程序.
I'm facing issue while integrating spinnaker with Nexus. Basically, here is my process - Building docker image using Jenkins and uploading to Nexus. Next, want to trigger spinnaker pipelines based on new image available on Nexus to deploy apps on kubernetes.
我已经使用了这两个命令
I've used these 2 commands
hal config provider docker-registry enable
hal config provider docker-registry account add my-docker-registry \
--address <pvtIP>:9082 \
--repositories repository/<repoName> \
--username <userName> \
--password
出现以下错误
+ Get current deployment
Success
- Add the my-docker-registry account
Failure
Problems in default.provider.dockerRegistry.my-docker-registry:
! ERROR Unable to fetch tags from the docker repository:
repository/test-docker-snapshots/, Unrecognized SSL message, plaintext
connection?
? Can the provided user access this repository?
- WARNING None of your supplied repositories contain any tags.
Spinnaker will not be able to deploy any docker images.
? Push some images to your registry.
- Failed to add account my-docker-registry for provider
dockerRegistry.
是否必须在HTTPS上建立联系?我在http上运行,并且仅在内部网络中使用...
is it mandatory to have nexus on HTTPS ? I'm running on http, and using in internal network only...
请告知..谢谢..
推荐答案
如果您的nexus存储库在HTTP上运行,则应在命令中设置--insecure-registry
标志.因此,您的最终命令将如下所示:
If your nexus repo is running on HTTP then you should set --insecure-registry
flag in your command. So you would final command would be as follows:
hal config provider docker-registry account add my-docker-registry \
--address <pvtIP>:9082 \
--repositories repository/<repoName> \
--insecure-registry true \
--username <userName> \
--password
这篇关于大三角帆Nexus集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!