第 4 章 为负载平衡配置胶囊服务器


本章概述了如何配置胶囊服务器以进行负载平衡。根据您的 Satellite 服务器配置,继续以下部分之一:

为 Katello 证书使用不同的文件名,用于每个胶囊服务器创建。例如,将证书存档文件命名为 FQDN。

下面的部分论述了如何配置使用默认 SSL 证书进行负载平衡的胶囊式服务器,而无需 Puppet。在您要为负载平衡配置的每个胶囊服务器上完成这个步骤。

流程

  1. 在 Satellite 服务器中,为 Capsule 服务器生成 Katello 证书:

    # capsule-certs-generate \
    --certs-tar "/root/capsule.example.com-certs.tar" \
    --foreman-proxy-cname loadbalancer.example.com \
    --foreman-proxy-fqdn capsule.example.com

    保留示例 satellite-installer 命令的副本,它由 Capsule -certs-generate 命令输出,用于安装 Capsule Server 证书。

  2. 将证书存档文件从卫星服务器复制到胶囊服务器。

    # scp /root/capsule.example.com-certs.tar root@capsule.example.com:/root/capsule.example.com-certs.tar
  3. 在从 Capsule- certs-generate 命令的输出中获取的 satellite- installer 命令中附加以下选项:

    --certs-cname "loadbalancer.example.com" \
    --enable-foreman-proxy-plugin-remote-execution-script
  4. 在 Capsule 服务器上,输入 satellite-installer 命令:

    # satellite-installer --scenario capsule \
    --certs-cname "loadbalancer.example.com" \
    --certs-tar-file "capsule.example.com-certs.tar" \
    --enable-foreman-proxy-plugin-remote-execution-script \
    --foreman-proxy-foreman-base-url "https://satellite.example.com" \
    --foreman-proxy-oauth-consumer-key "oauth key" \
    --foreman-proxy-oauth-consumer-secret "oauth secret" \
    --foreman-proxy-register-in-foreman "true" \
    --foreman-proxy-trusted-hosts "satellite.example.com" \
    --foreman-proxy-trusted-hosts "capsule.example.com"
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部