Skip to content
代码片段 群组 项目
提交 15cafec4 编辑于 作者: Achilleas Pipinellis's avatar Achilleas Pipinellis
浏览文件

Merge branch 'geo-registry-guide-docs' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -73,12 +73,11 @@ To configure Container Registry replication: ...@@ -73,12 +73,11 @@ To configure Container Registry replication:
Make sure that you have Container Registry set up and working on Make sure that you have Container Registry set up and working on
the **primary** site before following the next steps. the **primary** site before following the next steps.
We need to make Container Registry send notification events to the To be able to replicate new container images, the Container Registry must send notification events to the
**primary** site. **primary** site for every push. The token shared between the Container Registry and the web nodes on the
**primary** is used to make communication more secure.
For each application and Sidekiq node on the **primary** site: 1. SSH into your GitLab **primary** server and login as root (for GitLab HA, you only need a Registry node):
1. SSH into the node and login as the `root` user:
```shell ```shell
sudo -i sudo -i
...@@ -107,15 +106,17 @@ For each application and Sidekiq node on the **primary** site: ...@@ -107,15 +106,17 @@ For each application and Sidekiq node on the **primary** site:
that starts with a letter. You can generate one with `< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c 32 | sed "s/^[0-9]*//"; echo` that starts with a letter. You can generate one with `< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c 32 | sed "s/^[0-9]*//"; echo`
NOTE: NOTE:
If you use an external Registry (not the one integrated with GitLab), you also have to specify If you use an external Registry (not the one integrated with GitLab), you only need to specify
the notification secret (`registry['notification_secret']`) in the the notification secret (`registry['notification_secret']`) in the
`/etc/gitlab/gitlab.rb` file. `/etc/gitlab/gitlab.rb` file.
NOTE: 1. For GitLab HA only. Edit `/etc/gitlab/gitlab.rb` on every web node:
If you use GitLab HA, you also have to specify the notification secret (`registry['notification_secret']`) in
`/etc/gitlab/gitlab.rb` file for every web node. ```ruby
registry['notification_secret'] = '<replace_with_a_secret_token_generated_above>'
```
1. Reconfigure each node: 1. Reconfigure each node you just updated:
```shell ```shell
gitlab-ctl reconfigure gitlab-ctl reconfigure
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册