Amozon s3 for registry


Ignazio Cassano
 

Some updates:
if s3 is behind a proxy I have to add charmusem under Proxy Components.
This solves.
Ignazio

Il giorno gio 22 set 2022 alle ore 14:51 Ignazio Cassano via lists.cncf.io <ignaziocassano=gmail.com@...> ha scritto:

More updates:
seems something is not configured web because in chartmuseum log I get:
Get \"https://s3.eu-central-1.amazonaws.com/ignaharbor?prefix=igna\": dial tcp 52.219.168.115:443: i/o timeout","repo":"igna","reqID":"1bcc32aa-6e6c-43a7-a6a6-e3a2b63c2ec3"}

igna is the project I created on harbor gui where I can push images but I cannot browse via web interface.

Where are my mistakes ?
Ignazio

Il giorno gio 22 set 2022 alle ore 14:43 Ignazio Cassano via lists.cncf.io <ignaziocassano=gmail.com@...> ha scritto:
Hello, I do not understand what is rootdirectory.
I used the following setup in s3:region: eu-central-1
          bucket: ignaharbor
          accesskey: accesskey
          secretkey: secret
          regionendpoint: https://s3.eu-central-1.amazonaws.com

The result is I can push images but I cannot browse the project on the harbor web gui..
I can only browse the default "library" project"
Please, help me
Ignazio


Il giorno gio 22 set 2022 alle ore 01:13 daojunz via lists.cncf.io <daojunz=vmware.com@...> ha scritto:

You could refer this configure file

https://github.com/distribution/distribution/blob/main/docs/configuration.md

 

  s3:

    accesskey: awsaccesskey

    secretkey: awssecretkey

    region: us-west-1

    regionendpoint: http://myobjects.local

    forcepathstyle: true

    accelerate: false

    bucket: bucketname

    encrypt: true

    keyid: mykeyid

    secure: true

    v4auth: true

    chunksize: 5242880

    multipartcopychunksize: 33554432

    multipartcopymaxconcurrency: 100

    multipartcopythresholdsize: 33554432

    rootdirectory: /s3/object/name/prefix

    usedualstack: false

 

The option in red text is mandatory

 

Best regards,

Stone (张道军)

Software Engineer, CNA, VMware R&D

 

-- 

 

 

From: harbor-users@... <harbor-users@...> on behalf of Ignazio Cassano via lists.cncf.io <ignaziocassano=gmail.com@...>
Date: Wednesday, September 21, 2022 at 10:42 PM
To: harbor-users@... <harbor-users@...>
Subject: [harbor-users] Amozon s3 for registry

External Email

Hello,

I would like to use S3 for registry.

In values.yaml of harbor I wrote:

 

region: eu-central-1
          bucket: ignaharbor
          accesskey: myaccesskey
          secretkey: mysecret

 

Is this enough to work ?

 

Thanks

Ignazio

 


External Email: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender.


Ignazio Cassano
 

More updates:
seems something is not configured web because in chartmuseum log I get:
Get \"https://s3.eu-central-1.amazonaws.com/ignaharbor?prefix=igna\": dial tcp 52.219.168.115:443: i/o timeout","repo":"igna","reqID":"1bcc32aa-6e6c-43a7-a6a6-e3a2b63c2ec3"}

igna is the project I created on harbor gui where I can push images but I cannot browse via web interface.

Where are my mistakes ?
Ignazio

Il giorno gio 22 set 2022 alle ore 14:43 Ignazio Cassano via lists.cncf.io <ignaziocassano=gmail.com@...> ha scritto:

Hello, I do not understand what is rootdirectory.
I used the following setup in s3:region: eu-central-1
          bucket: ignaharbor
          accesskey: accesskey
          secretkey: secret
          regionendpoint: https://s3.eu-central-1.amazonaws.com

The result is I can push images but I cannot browse the project on the harbor web gui..
I can only browse the default "library" project"
Please, help me
Ignazio


Il giorno gio 22 set 2022 alle ore 01:13 daojunz via lists.cncf.io <daojunz=vmware.com@...> ha scritto:

You could refer this configure file

https://github.com/distribution/distribution/blob/main/docs/configuration.md

 

  s3:

    accesskey: awsaccesskey

    secretkey: awssecretkey

    region: us-west-1

    regionendpoint: http://myobjects.local

    forcepathstyle: true

    accelerate: false

    bucket: bucketname

    encrypt: true

    keyid: mykeyid

    secure: true

    v4auth: true

    chunksize: 5242880

    multipartcopychunksize: 33554432

    multipartcopymaxconcurrency: 100

    multipartcopythresholdsize: 33554432

    rootdirectory: /s3/object/name/prefix

    usedualstack: false

 

The option in red text is mandatory

 

Best regards,

Stone (张道军)

Software Engineer, CNA, VMware R&D

 

-- 

 

 

From: harbor-users@... <harbor-users@...> on behalf of Ignazio Cassano via lists.cncf.io <ignaziocassano=gmail.com@...>
Date: Wednesday, September 21, 2022 at 10:42 PM
To: harbor-users@... <harbor-users@...>
Subject: [harbor-users] Amozon s3 for registry

External Email

Hello,

I would like to use S3 for registry.

In values.yaml of harbor I wrote:

 

region: eu-central-1
          bucket: ignaharbor
          accesskey: myaccesskey
          secretkey: mysecret

 

Is this enough to work ?

 

Thanks

Ignazio

 


External Email: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender.


Ignazio Cassano
 

Hello, I do not understand what is rootdirectory.
I used the following setup in s3:region: eu-central-1
          bucket: ignaharbor
          accesskey: accesskey
          secretkey: secret
          regionendpoint: https://s3.eu-central-1.amazonaws.com

The result is I can push images but I cannot browse the project on the harbor web gui..
I can only browse the default "library" project"
Please, help me
Ignazio


Il giorno gio 22 set 2022 alle ore 01:13 daojunz via lists.cncf.io <daojunz=vmware.com@...> ha scritto:

You could refer this configure file

https://github.com/distribution/distribution/blob/main/docs/configuration.md

 

  s3:

    accesskey: awsaccesskey

    secretkey: awssecretkey

    region: us-west-1

    regionendpoint: http://myobjects.local

    forcepathstyle: true

    accelerate: false

    bucket: bucketname

    encrypt: true

    keyid: mykeyid

    secure: true

    v4auth: true

    chunksize: 5242880

    multipartcopychunksize: 33554432

    multipartcopymaxconcurrency: 100

    multipartcopythresholdsize: 33554432

    rootdirectory: /s3/object/name/prefix

    usedualstack: false

 

The option in red text is mandatory

 

Best regards,

Stone (张道军)

Software Engineer, CNA, VMware R&D

 

-- 

 

 

From: harbor-users@... <harbor-users@...> on behalf of Ignazio Cassano via lists.cncf.io <ignaziocassano=gmail.com@...>
Date: Wednesday, September 21, 2022 at 10:42 PM
To: harbor-users@... <harbor-users@...>
Subject: [harbor-users] Amozon s3 for registry

Hello,

I would like to use S3 for registry.

In values.yaml of harbor I wrote:

 

region: eu-central-1
          bucket: ignaharbor
          accesskey: myaccesskey
          secretkey: mysecret

 

Is this enough to work ?

 

Thanks

Ignazio

 



Ignazio Cassano
 

Many thanks
Ignazio

Il Gio 22 Set 2022, 01:13 daojunz via lists.cncf.io <daojunz=vmware.com@...> ha scritto:

You could refer this configure file

https://github.com/distribution/distribution/blob/main/docs/configuration.md

 

  s3:

    accesskey: awsaccesskey

    secretkey: awssecretkey

    region: us-west-1

    regionendpoint: http://myobjects.local

    forcepathstyle: true

    accelerate: false

    bucket: bucketname

    encrypt: true

    keyid: mykeyid

    secure: true

    v4auth: true

    chunksize: 5242880

    multipartcopychunksize: 33554432

    multipartcopymaxconcurrency: 100

    multipartcopythresholdsize: 33554432

    rootdirectory: /s3/object/name/prefix

    usedualstack: false

 

The option in red text is mandatory

 

Best regards,

Stone (张道军)

Software Engineer, CNA, VMware R&D

 

-- 

 

 

From: harbor-users@... <harbor-users@...> on behalf of Ignazio Cassano via lists.cncf.io <ignaziocassano=gmail.com@...>
Date: Wednesday, September 21, 2022 at 10:42 PM
To: harbor-users@... <harbor-users@...>
Subject: [harbor-users] Amozon s3 for registry

Hello,

I would like to use S3 for registry.

In values.yaml of harbor I wrote:

 

region: eu-central-1
          bucket: ignaharbor
          accesskey: myaccesskey
          secretkey: mysecret

 

Is this enough to work ?

 

Thanks

Ignazio

 



daojunz
 

You could refer this configure file

https://github.com/distribution/distribution/blob/main/docs/configuration.md

 

  s3:

    accesskey: awsaccesskey

    secretkey: awssecretkey

    region: us-west-1

    regionendpoint: http://myobjects.local

    forcepathstyle: true

    accelerate: false

    bucket: bucketname

    encrypt: true

    keyid: mykeyid

    secure: true

    v4auth: true

    chunksize: 5242880

    multipartcopychunksize: 33554432

    multipartcopymaxconcurrency: 100

    multipartcopythresholdsize: 33554432

    rootdirectory: /s3/object/name/prefix

    usedualstack: false

 

The option in red text is mandatory

 

Best regards,

Stone (张道军)

Software Engineer, CNA, VMware R&D

 

-- 

 

 

From: harbor-users@... <harbor-users@...> on behalf of Ignazio Cassano via lists.cncf.io <ignaziocassano=gmail.com@...>
Date: Wednesday, September 21, 2022 at 10:42 PM
To: harbor-users@... <harbor-users@...>
Subject: [harbor-users] Amozon s3 for registry

Hello,

I would like to use S3 for registry.

In values.yaml of harbor I wrote:

 

region: eu-central-1
          bucket: ignaharbor
          accesskey: myaccesskey
          secretkey: mysecret

 

Is this enough to work ?

 

Thanks

Ignazio

 



Ignazio Cassano
 

Hello, I tried to push an image but in registry logs, it give me the following error:

Il giorno mer 21 set 2022 alle ore 16:42 Ignazio Cassano via lists.cncf.io <ignaziocassano=gmail.com@...> ha scritto:

Hello,
I would like to use S3 for registry.
In values.yaml of harbor I wrote:

region: eu-central-1
          bucket: ignaharbor
          accesskey: myaccesskey
          secretkey: mysecret

Is this enough to work ?

Thanks
Ignazio


Ignazio Cassano
 

Hello,
I would like to use S3 for registry.
In values.yaml of harbor I wrote:

region: eu-central-1
          bucket: ignaharbor
          accesskey: myaccesskey
          secretkey: mysecret

Is this enough to work ?

Thanks
Ignazio