如何使用IAM角色启用s3存储以及如何验证其是否正常工作?
hal config storage s3 edit --bucket=spintest123 --assume-role=arn:aws:iam::1234567:role/Spintest --deployment
(如何提及当前部署)
它确实创建并部署了它,没有错误,但是我没有在s3中看到为其创建的任何数据或文件夹,这是从hal config storage中输出的
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))
答案 0 :(得分:0)
我看到了一些问题:
hal config storage
输出提到 minio 为endpoint=http://spinnaker-minio:9000
基本上应该是这样。不要提供存储桶名称,因此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