Skip to content

Commit

Permalink
[update] Setting Up a Private Docker Registry with LKE and OBJ storage (
Browse files Browse the repository at this point in the history
linode#6744)

* [update] Setting Up a Private Docker Registry with LKE and Object Storage

Updated the configuration to help multipart uploads to ensure that there is no 500 error.

* added a note

* Update index.md

* copy edit on multipart uploading note

---------

Co-authored-by: John Dutton <[email protected]>
  • Loading branch information
Rajakavitha1 and jddocs authored Oct 31, 2024
1 parent bd88865 commit b4a2acb
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ og_description: "In this guide you will create a private Docker registry on Lino
authors: ["Leslie Salazar"]
contributors: ["Leslie Salazar"]
published: 2020-03-26
modified: 2023-07-26
modified: 2024-10-30
keywords: ['docker registry','kubernetes','object storage', 'lke', 'linode kubernetes engine']
tags: ["docker","kubernetes","container","nginx","linode platform"]
license: '[CC BY-ND 4.0](https://creativecommons.org/licenses/by-nd/4.0)'
Expand Down Expand Up @@ -362,6 +362,19 @@ If you have not yet [generated an Object Storage key pair](/docs/products/storag
bucket: registry
```

{{< note title="Multipart uploads" >}}
If you require multipart uploading when pushing to your Docker registry, you can set and increase the threshold of the `multipartcopythresholdsize` value using an additional `configData` parameter in your `docker-configs.yaml` file.

The example below sets the threshold size to 5GB (5368709120 bytes):

```
configData:
storage:
s3:
multipartcopythresholdsize: 5368709120
```
{{< /note >}}

- The NGINX Ingress annotation `nginx.ingress.kubernetes.io/proxy-body-size: "0"` disables a [maximum allowed size client request body](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size) check and ensures that you won't receive a `413` error when pushing larger Docker images to your registry. The values for `nginx.ingress.kubernetes.io/proxy-read-timeout: "6000"` and `nginx.ingress.kubernetes.io/proxy-send-timeout: "6000"` are sane values to begin with, but [may be adjusted as needed](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#custom-timeouts).
1. Deploy your Docker registry using the configurations you created in the previous step:
Expand Down

0 comments on commit b4a2acb

Please sign in to comment.