0

环境细节:

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

错误详情:

  • 无法保存金丝雀配置:错误 400 发布http://gate/v2/canaryConfig
  • 只有 gce 和 aws 资源类型可用,但我没有它们的任何云提供商

在此处输入图像描述

这是我的金丝雀配置:

  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

4

1 回答 1

0

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

吊索

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

services:
  kayenta:
    canaryConfigStore: true

操作员

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

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/

于 2021-01-14T09:54:19.237 回答