I am trying to set up Spinnaker on a private Kubernetes cluster. We are using a private S3 backed storage which needs a special param.
If I add that in ~/.hal/config,
hal deploy apply
fails with unknown field error.
! 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.
But this fields work if add directly in the generated front50.yml file and restart the deployment.
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
Currently, I add all these in a secret and redeploy the service in Kubernetes after hal deploy apply. Is there anyway to configure this in custom profile for front50 so that I don't need to redeploy front50.
Following configuration works perfectly with minio:
persistentStorage:
persistentStoreType: s3
s3:
bucket: spinnaker
endpoint: http://minio.spinnaker.svc.cluster.local:9000
rootFolder: spinnaker
accessKeyId: KEY
secretAccessKey: SECRET