首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Argo工件给出错误" HTTP : server给HTTPS客户端HTTP响应“

Argo工件给出错误" HTTP : server给HTTPS客户端HTTP响应“
EN

Stack Overflow用户
提问于 2019-12-11 10:28:19
回答 1查看 2.6K关注 0票数 1

我在Argo命名空间中的k8s集群中设置了Argo。

我还将MinIO安装为一个伪存储库(https://github.com/argoproj/argo-workflows/blob/master/docs/configure-artifact-repository.md)。

我正在配置一个工作流,该工作流试图将非默认的Artifact访问为:

代码语言:javascript
复制
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: artifact-passing-
spec:
  entrypoint: artifact-example
  templates:
  - name: artifact-example
    steps:
    - - name: generate-artifact
        template: whalesay
    - - name: consume-artifact
        template: print-message
        arguments:
          artifacts:
          # bind message to the hello-art artifact
          # generated by the generate-artifact step
          - name: message
            from: "{{steps.generate-artifact.outputs.artifacts.hello-art}}"

  - name: whalesay
    container:
      image: docker/whalesay:latest
      command: [sh, -c]
      args: ["cowsay hello world | tee /tmp/hello_world.txt"]
    outputs:
      artifacts:
      # generate hello-art artifact from /tmp/hello_world.txt
      # artifacts can be directories as well as files
      - name: hello-art
        path: /tmp/hello_world.txt
        s3:
          endpoint: argo-artifacts-minio.argo:9000
          bucket: my-bucket
          key: /my-output-artifact.tgz
          accessKeySecret:
            name: argo-artifacts-minio
            key: accesskey
          secretKeySecret:
            name: argo-artifacts-minio
            key: secretkey

  - name: print-message
    inputs:
      artifacts:
      # unpack the message input artifact
      # and put it at /tmp/message
      - name: message
        path: /tmp/message
        s3:
          endpoint: argo-artifacts-minio.argo:9000 
          bucket: my-bucket
          accessKeySecret:
            name: argo-artifacts-minio
            key: accesskey
          secretKeySecret:
            name: argo-artifacts-minio
            key: secretkey
    container:
      image: alpine:latest
      command: [sh, -c]
      args: ["cat /tmp/message"]

我通过以下方式在argo命名空间中创建了工作流:

代码语言:javascript
复制
argo submit --watch artifact-passing-nondefault-new.yaml -n argo

但是工作流失败了,有一个错误:

代码语言:javascript
复制
STEP                       PODNAME                           DURATION  MESSAGE

 ✖ artifact-passing-z9g64                                              child 'artifact-passing-z9g64-150231068' failed
 └---⚠ generate-artifact   artifact-passing-z9g64-150231068  12s       failed to save outputs: Get https://argo-artifacts-minio.argo:9000/my-bucket/?location=: http: server gave HTTP response to HTTPS client

有人能帮我解决这个错误吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-12-13 06:38:55

因为minio安装程序在没有配置TLS的情况下运行,所以工作流应该指定它应该连接到不安全的工件存储库。

工作流的insecure: true定义部分中的字段s3解决了这个问题。

代码语言:javascript
复制
    s3:
      endpoint: argo-artifacts-minio.argo:9000
      insecure: true
      bucket: my-bucket
      key: /my-output-artifact.tgz
      accessKeySecret:
        name: argo-artifacts-minio
        key: accesskey
      secretKeySecret:
        name: argo-artifacts-minio
        key: secretkey
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59283666

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档