如何使用IAM角色启用s3存储,以及如何验证其是否正常工作?hal config storage s3 edit --bucket=spintest123 --assume-role=arn:aws:iam::1234567:role/Spintest --deployment (如何提到当前部署)
spinnaker@spinnaker-spinnaker-halyard-0:/workdir$ hal config storage + Get current deployment Success + Get persistent storage settings Success Problems in halconfig: - WARNING There is a newer version of Halyard available (1.31.1), please update when possible ? Run 'sudo apt-get update && sudo apt-get install spinnaker-halyard -y' to upgrade
Configured persistent storage: PersistentStorage(persistentStoreType=S3, azs=AzsPersistentStore(storageAccountName=null, storageAccountKey=null, storageContainerName=null), gcs=GcsPersistentStore(jsonPath=null, project=null, bucket=null, rootFolder=front50, bucketLocation=null), redis=RedisPersistentStore(host=null, port=null), s3=S3PersistentStore(bucket=spintest, rootFolder=front50, region=us-east-1, pathStyleAccess=false, endpoint=http://spinnaker-minio:9000, accessKeyId=spinnakeradmin, secretAccessKey=spinnakeradmin), oraclebmcs=OracleBMCSPersistentStore(), oracle=OraclePersistentStore(bucketName=null, namespace=null, compartmentId=null, region=null, userId=null, fingerprint=null, sshPrivateKeyFilePath=null, privateKeyPassphrase=null, tenancyId=null))发布于 2020-07-23 07:28:19
我看到了一些问题:
endpoint=http://spinnaker-minio:9000
hal config storage output an minio as an upgraded基本上应该是这样的。不要给出存储桶的名称,这样Spinnaker就会创建一个。如果您想使用您的自定义存储桶,请参考commands docs
hal config storage s3 edit \
--assume-role=arn:aws:iam::1234567:role/Spintest \
--region $REGION然后将存储设置为S3和deploy apply
hal config storage edit --type s3
hal deploy apply记得加入我们的Community Slack
https://stackoverflow.com/questions/60420345
复制相似问题