×

您可以使用安装程序配置的基础架构在 IBM Power® Virtual Server 上安装 OpenShift Container Platform。此过程涉及使用安装程序为集群的底层基础架构进行配置。目前不支持在 IBM Power® Virtual Server 上使用用户配置的基础架构安装 OpenShift Container Platform。

有关安装程序配置的安装过程的更多信息,请参见安装过程

在安装程序配置的基础架构上安装集群

您可以使用以下方法之一,在 IBM Power® Virtual Server 基础架构(由 OpenShift Container Platform 安装程序配置)上安装集群。

配置云凭证操作器实用程序

云凭证操作器 (CCO) 将云提供商凭证管理为 Kubernetes 自定义资源定义 (CRD)。要在 IBM Power® Virtual Server 上安装集群,必须在安装过程中将 CCO 设置为manual模式。

当云凭证操作器 (CCO) 以手动模式运行时,要从集群外部创建和管理云凭证,请提取并准备 CCO 实用程序 (ccoctl) 二进制文件。

ccoctl 实用程序是一个 Linux 二进制文件,必须在 Linux 环境中运行。

先决条件
  • 您拥有一个具有集群管理员访问权限的 OpenShift Container Platform 帐户。

  • 您已安装 OpenShift CLI (oc)。

步骤
  1. 通过运行以下命令设置 OpenShift Container Platform 发行版镜像的变量

    $ RELEASE_IMAGE=$(./openshift-install version | awk '/release image/ {print $3}')
  2. 通过运行以下命令从 OpenShift Container Platform 发行版镜像获取 CCO 容器镜像

    $ CCO_IMAGE=$(oc adm release info --image-for='cloud-credential-operator' $RELEASE_IMAGE -a ~/.pull-secret)

    确保$RELEASE_IMAGE 的架构与您将使用 ccoctl 工具的环境架构匹配。

  3. 通过运行以下命令从 OpenShift Container Platform 发行版镜像中的 CCO 容器镜像中提取 ccoctl 二进制文件

    $ oc image extract $CCO_IMAGE \
      --file="/usr/bin/ccoctl.<rhel_version>" \(1)
      -a ~/.pull-secret
    1 对于 <rhel_version>,请指定与主机使用的 Red Hat Enterprise Linux (RHEL) 版本相对应的值。如果未指定值,则默认使用 ccoctl.rhel8。有效值为:
    • rhel8:对于使用 RHEL 8 的主机,请指定此值。

    • rhel9:对于使用 RHEL 9 的主机,请指定此值。

  4. 更改权限以使 ccoctl 可执行,方法是运行以下命令

    $ chmod 775 ccoctl.<rhel_version>
验证
  • 要验证 ccoctl 是否已准备好使用,请显示帮助文件。运行命令时,请使用相对文件名,例如:

    $ ./ccoctl.rhel9
    示例输出
    OpenShift credentials provisioning tool
    
    Usage:
      ccoctl [command]
    
    Available Commands:
      aws          Manage credentials objects for AWS cloud
      azure        Manage credentials objects for Azure
      gcp          Manage credentials objects for Google cloud
      help         Help about any command
      ibmcloud     Manage credentials objects for {ibm-cloud-title}
      nutanix      Manage credentials objects for Nutanix
    
    Flags:
      -h, --help   help for ccoctl
    
    Use "ccoctl [command] --help" for more information about a command.
附加资源