【问题标题】:Spinnaker Nexus IntegrationSpinnaker Nexus 集成
【发布时间】:2019-11-27 10:03:13
【问题描述】:

我在将大三角帆与 Nexus 集成时遇到问题。 基本上,这是我的过程 - 使用 Jenkins 构建 docker 映像并上传到 Nexus。接下来,希望根据 Nexus 上可用的新映像触发 spinnaker 管道,以在 kubernetes 上部署应用程序。

我用过这两个命令

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 上运行,并且仅在内部网络中使用...

请指教..谢谢..

【问题讨论】:

    标签: nexus spinnaker nexus3 spinnaker-halyard


    【解决方案1】:

    如果你的 nexus repo 在 HTTP 上运行,那么你应该在你的命令中设置 --insecure-registry 标志。所以你最终的命令如下:

    hal config provider docker-registry account add my-docker-registry \
        --address <pvtIP>:9082 \
        --repositories repository/<repoName> \
        --insecure-registry true \
        --username <userName> \
        --password
    

    【讨论】:

    • 感谢您的意见,会试试这个。
    猜你喜欢
    • 1970-01-01
    • 2020-05-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-04
    • 2019-12-07
    • 1970-01-01
    相关资源
    最近更新 更多