【问题标题】:how to configure kayenta-canary deployment to several k8s clusters如何将 kayenta-canary 部署配置到多个 k8s 集群
【发布时间】:2020-07-07 23:16:16
【问题描述】:

环境细节:

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

错误详情:

  • 无法保存金丝雀配置:错误 400 发布 http://gate/v2/canaryConfig
  • 只有 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

Canary 阶段失败详情:https://github.com/spinnaker/spinnaker/issues/5639

【问题讨论】:

  • 请在您的问题中添加更多详细信息和上下文(例如代码示例)
  • 谢谢!我刚刚添加了我的金丝雀配置
  • 我的配置有什么问题吗?

标签: spinnaker canary-deployment


【解决方案1】:

如果您看到以下错误 The was an error Saving your config: 400 when you are trying to save your “Canary Config”, 添加以下设置:

吊索

在.hal/default/profiles/gate-local.yml中,添加如下sn-p:

services:
  kayenta:
    canaryConfigStore: true

操作员

在您的 SpinnakerService 清单中,添加以下 sn-p:

apiVersion: spinnaker.armory.io/v1alpha2
  kind: SpinnakerService
  metadata:
    name: spinnaker
  spec:
    spinnakerConfig:
      profiles:
        gate:
          services:
            kayenta:
              canaryConfigStore: true

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

【讨论】:

    猜你喜欢
    • 2019-06-06
    • 1970-01-01
    • 2020-08-27
    • 2020-01-07
    • 2019-12-31
    • 2020-06-07
    • 1970-01-01
    • 2023-03-06
    • 1970-01-01
    相关资源
    最近更新 更多