0

プライベート Kubernetes クラスターで Spinnaker をセットアップしようとしています。特別なパラメーターが必要なプライベート S3 バックアップ ストレージを使用しています。

それを ~/.hal/config に追加すると、

hal 展開適用

不明なフィールド エラーで失敗します。

! ERROR Could not translate your halconfig: Unrecognized field
  "regionOverride" (class
  com.netflix.spinnaker.halyard.config.model.v1.persistentStorage.S3PersistentStore),
  not marked as ignorable (8 known properties: "rootFolder", "region", "endpoint",
  "accessKeyId", "bucket", "secretAccessKey", "connectionInfo",
  "pathStyleAccess"])
at [Source: UNKNOWN; line: -1, column: -1] (through reference chain:
  com.netflix.spinnaker.halyard.config.model.v1.node.Halconfig["deploymentConfigurations"]->java.util.ArrayList[0]->com.netflix.spinnaker.halyard.config.model.v1.node.DeploymentConfiguration["persistentStorage"]->com.netflix.spinnaker.halyard.config.model.v1.node.PersistentStorage["s3"]->com.netflix.spinnaker.halyard.config.model.v1.persistentStorage.S3PersistentStore["regionOverride"])

- Failed to get deployment name.

ただし、生成された front50.yml ファイルに直接追加してデプロイを再起動すると、このフィールドは機能します。

persistentStorage:
    persistentStoreType: s3
    azs: {}
    gcs:
      rootFolder: front50
    redis: {}
    s3:
      bucket: test
      rootFolder: front50
      region: test
      endpoint: http://test.xyz.com
      accessKeyId: XXXXXXXXXXXX
      secretAccessKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      regionOverride: test

現在、これらすべてをシークレットに追加し、hal deploy 適用後に Kubernetes にサービスを再デプロイしています。front50 を再デプロイする必要がないように、front50 のカスタム プロファイルでこれを構成する方法はありますか。

4

1 に答える 1