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 apply 后在 Kubernetes 中重新部署该服务。无论如何在front50的自定义配置文件中配置它,这样我就不需要重新部署front50。

4

1 回答 1

2

以下配置与 minio 完美配合:

      persistentStorage:
        persistentStoreType: s3
        s3:
          bucket: spinnaker
          endpoint: http://minio.spinnaker.svc.cluster.local:9000
          rootFolder: spinnaker
          accessKeyId: KEY
          secretAccessKey: SECRET
于 2019-08-07T07:17:26.443 回答