Commit c823ecf2 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'geo-update-doc-for-containers-docs' into 'master'

Update Container Registry Replication guide

See merge request gitlab-org/gitlab!16927
parents bfee33bf 96eb93a3
...@@ -63,6 +63,11 @@ We need to make Docker Registry send notification events to the ...@@ -63,6 +63,11 @@ We need to make Docker Registry send notification events to the
notification secret in `registry.notification_secret` section of notification secret in `registry.notification_secret` section of
`/etc/gitlab/gitlab.rb` file. `/etc/gitlab/gitlab.rb` file.
NOTE: **Note:**
If you use GitLab HA, you will also have to specify
the notification secret in `registry.notification_secret` section of
`/etc/gitlab/gitlab.rb` file for every web node.
1. Reconfigure the **primary** node for the change to take effect: 1. Reconfigure the **primary** node for the change to take effect:
```sh ```sh
...@@ -94,10 +99,8 @@ generate a short-lived JWT that is pull-only-capable to access the ...@@ -94,10 +99,8 @@ generate a short-lived JWT that is pull-only-capable to access the
1. Edit `/etc/gitlab/gitlab.rb`: 1. Edit `/etc/gitlab/gitlab.rb`:
```ruby ```ruby
gitlab_rails['registry_replication'] = { gitlab_rails['geo_registry_replication_enabled'] = true
enabled: true, gitlab_rails['geo_registry_replication_primary_api_url'] = 'http://primary.example.com:5000/' # internal address to the primary registry, will be used by GitLab to directly communicate with primary registry API
primary_api_url: 'http://primary.example.com:5000/' # internal address to the primary registry, will be used by GitLab to directly communicate with primary registry API
}
``` ```
1. Reconfigure the **secondary** node for the change to take effect: 1. Reconfigure the **secondary** node for the change to take effect:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment