配置aws s3作为harbor存储

配置aws s3作为harbor存储

创建aws用户,配置权限

image
image

获取访问密钥accesskey和secretkey

IAM➡用户➡安全凭证➡创建访问密钥
image

配置harbor.yml

......
# Harbor Storage settings by default is using /data dir on local filesystem
# Uncomment storage_service setting If you want to using external storage
storage_service:
  s3:
    accesskey: 
    secretkey: 
    region: 
    bucket: 
    secure: false

#   # ca_bundle is the path to the custom root ca certificate, which will be injected into the truststore
#   # of registry's containers.  This is usually needed when the user hosts a internal storage with self signed certificate.
#   ca_bundle:

#   # storage backend, default is filesystem, options include filesystem, azure, gcs, s3, swift and oss
#   # for more info about this configuration please refer https://docs.docker.com/registry/configuration/
#   filesystem:
#     maxthreads: 100
#   # set disable to true when you want to disable registry redirect
#   redirect:
#     disable: false
......
posted @ 2024-05-16 14:16  ヾ(o◕∀◕)ノヾ  阅读(220)  评论(0)    收藏  举报