第 5 章 为主机注册设置负载平衡器
您可以使用主机注册功能,将 Satellite 配置为通过负载平衡器注册客户端。
您将能够将主机注册到负载平衡器,而非胶囊。负载平衡器将决定通过哪个胶囊在请求时注册主机。注册后,主机上的订阅管理器将被配置为通过负载均衡器管理内容。
前提条件
- 在所有胶囊服务器上配置了 SSL 证书。如需更多信息,请参阅 第 4 章 为负载平衡配置胶囊服务器。
在所有胶囊服务器上启用了注册和模板插件:
satellite-installer --scenario capsule \ --foreman-proxy-registration true \ --foreman-proxy-templates true
# satellite-installer --scenario capsule \ --foreman-proxy-registration true \ --foreman-proxy-templates trueCopy to Clipboard Copied! Toggle word wrap Toggle overflow
流程
在所有胶囊服务器上,使用
satellite-installer设置注册和模板 URL:satellite-installer --scenario capsule \ --foreman-proxy-registration-url "https://loadbalancer.example.com:9090" \ --foreman-proxy-template-url "http://loadbalancer.example.com:8000"
# satellite-installer --scenario capsule \ --foreman-proxy-registration-url "https://loadbalancer.example.com:9090" \ --foreman-proxy-template-url "http://loadbalancer.example.com:8000"Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 在 Satellite Web UI 中,导航到 Infrastructure > Capsules。
- 对于每个胶囊,单击 Actions 栏中的下拉菜单,再选择 Refresh。