【问题标题】:How to configure S3 storage on spinnaker如何在 Spinnaker 上配置 S3 存储
【发布时间】:2020-02-26 18:31:22
【问题描述】:

如何使用 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))

【问题讨论】:

  • 来自front50容器的日志,显示这个异常,虽然我禁用了minio并启用了s3,但为什么它在日志中显示minio工厂方法's3StorageService'抛出异常;嵌套异常是 com.amazonaws.SdkClientException: Unable to execute HTTP request: spint.spinnaker-minio
  • 请发布您的 spinnaker 部署类型(Kubernetes、本地 debian?、minnaker),发布hal config 输出。谢谢

标签: amazon-web-services spinnaker


【解决方案1】:

我发现了一些问题:

  • 你的吊索没有升级
  • 您发布的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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-08-29
    • 2023-01-28
    • 2012-06-27
    • 2010-11-10
    • 2017-09-21
    • 1970-01-01
    • 2019-11-02
    • 1970-01-01
    相关资源
    最近更新 更多