zoukankan      html  css  js  c++  java
  • harbor使用aws s3存储

    参考:http://www.vmtocloud.com/how-to-configure-harbor-registry-to-use-amazon-s3-storage/

    s3 bucket权限:更改自己的bucket名称

    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Sid": "VisualEditor0",
                "Effect": "Allow",
                "Action": [
                    "s3:PutAccountPublicAccessBlock",
                    "s3:GetAccountPublicAccessBlock",
                    "s3:ListAllMyBuckets",
                    "s3:HeadBucket"
                ],
                "Resource": "*"
            },
            {
                "Sid": "VisualEditor1",
                "Effect": "Allow",
                "Action": "s3:*",
                "Resource": [
                    "arn:aws:s3:::stag-harbor/*",
                    "arn:aws:s3:::stag-harbor"
                ]
            }
        ]
    }

    在harbor/common/templates/registry/config.yml文件末尾增加如下段,更改自己的aws s3 id key bucket

    storage:
      s3:
        accesskey: Axxxxxxxxxxxxxx
        secretkey: xxxxxxxxxxxxxxxxxxxxxxx
        region: ap-southeast-1
        bucket: stag-harbor
        secure: false
  • 相关阅读:
    20145总结
    2014515 总结
    2014514 总结
    20148总结
    20147总结
    20146总结
    20149总结
    2014512 总结
    2014513 总结
    【Visual Lisp】驱动器、目录、文件和注册表
  • 原文地址:https://www.cnblogs.com/shansongxian/p/10196734.html
Copyright © 2011-2022 走看看