如何将kayenta-canary部署配置到多个k8s集群

时间:2020-03-27 08:21:13

标签: spinnaker canary-deployment

Env详细信息:

  1. 几个k8s集群:通过二进制软件包部署,
  2. 云提供商:kubernetes提供商v2?
  3. kayenta吊舱:正在运行

错误详细信息:

  • 无法保存金丝雀配置:http://gate/v2/canaryConfig后出现错误400
  • 只有gce和aws资源类型可用,但我都没有云提供商

enter image description here

这是我的金丝雀配置:

  canary:
    enabled: true
    serviceIntegrations:
    - name: google
      enabled: false
      accounts: []
      gcsEnabled: false
      stackdriverEnabled: false
    - name: prometheus
      enabled: true
      accounts:
      - name: my-prometheus
        endpoint:
          baseUrl: <http://prometheus-svc.namespace:port>
        supportedTypes:
        - METRICS_STORE
    - name: datadog
      enabled: false
      accounts: []
    - name: signalfx
      enabled: false
      accounts: []
    - name: aws
      enabled: true
      accounts:
      - name: my-minio
        bucket: spin-b81fd9b0-5ca9-456f-895a-efbd31612f80
        rootFolder: kayenta
        endpoint: <http://my-minio-svc.namespace:9000>
        accessKeyId: <miniokey>
        secretAccessKey: <miniosecret>
        supportedTypes:
        - CONFIGURATION_STORE
        - OBJECT_STORE
      s3Enabled: true
    - name: newrelic
      enabled: false
      accounts: []
    reduxLoggerEnabled: true
    defaultMetricsAccount: my-prometheus-account
    defaultStorageAccount: my-minio
    defaultJudge: NetflixACAJudge-v1.0
    defaultMetricsStore: prometheus
    stagesEnabled: true
    templatesEnabled: true
    showAllConfigsEnabled: true

金丝雀阶段失败的详细信息:https://github.com/spinnaker/spinnaker/issues/5639

1 个答案:

答案 0 :(得分:0)

如果您看到以下错误 The was an error Saving your config: 400 when you are尝试保存“Canary Config”,请添加以下设置:

索道

在 .hal/default/profiles/gate-local.yml 中,添加以下代码段:

File --> Open Folder

操作员

在您的 SpinnakerService 清单中,添加以下代码段:

services:
  kayenta:
    canaryConfigStore: true

资源:https://docs.armory.io/docs/spinnaker-user-guides/canary/kayenta-canary-use/