7.5. Preparing a RHEL compute node


Before you add a Red Hat Enterprise Linux (RHEL) machine to your OpenShift Container Platform cluster, you must register each host with Red Hat Subscription Manager (RHSM), attach an active OpenShift Container Platform subscription, and enable the required repositories.

  1. On each host, register with RHSM:

    # subscription-manager register --username=<user_name> --password=<password>
    Copy to Clipboard Toggle word wrap
  2. Pull the latest subscription data from RHSM:

    # subscription-manager refresh
    Copy to Clipboard Toggle word wrap
  3. List the available subscriptions:

    # subscription-manager list --available --matches '*OpenShift*'
    Copy to Clipboard Toggle word wrap
  4. In the output for the previous command, find the pool ID for an OpenShift Container Platform subscription and attach it:

    # subscription-manager attach --pool=<pool_id>
    Copy to Clipboard Toggle word wrap
  5. Disable all yum repositories:

    1. Disable all the enabled RHSM repositories:

      # subscription-manager repos --disable="*"
      Copy to Clipboard Toggle word wrap
    2. List the remaining yum repositories and note their names under repo id, if any:

      # yum repolist
      Copy to Clipboard Toggle word wrap
    3. Use yum-config-manager to disable the remaining yum repositories:

      # yum-config-manager --disable <repo_id>
      Copy to Clipboard Toggle word wrap

      Alternatively, disable all repositories:

      # yum-config-manager --disable \*
      Copy to Clipboard Toggle word wrap

      Note that this might take a few minutes if you have a large number of available repositories

  6. Enable only the repositories required by OpenShift Container Platform 4.5:

    # subscription-manager repos \
        --enable="rhel-7-server-rpms" \
        --enable="rhel-7-server-extras-rpms" \
        --enable="rhel-7-server-ose-4.5-rpms"
    Copy to Clipboard Toggle word wrap
  7. Stop and disable firewalld on the host:

    # systemctl disable --now firewalld.service
    Copy to Clipboard Toggle word wrap
    注意

    You must not enable firewalld later. If you do, you cannot access OpenShift Container Platform logs on the worker.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat