$ RELEASE_IMAGE=$(./openshift-install version | awk '/release image/ {print $3}')
您可以使用安装程序配置的基础架构在 IBM Power® Virtual Server 上安装 OpenShift Container Platform。此过程涉及使用安装程序为集群的底层基础架构进行配置。目前不支持在 IBM Power® Virtual Server 上使用用户配置的基础架构安装 OpenShift Container Platform。
有关安装程序配置的安装过程的更多信息,请参见安装过程。
您可以使用以下方法之一,在 IBM Power® Virtual Server 基础架构(由 OpenShift Container Platform 安装程序配置)上安装集群。
在 IBM Power® Virtual Server 上安装自定义集群:您可以在安装程序配置的 IBM Power® Virtual Server 基础架构上安装自定义集群。安装程序允许在安装阶段应用一些自定义设置。许多其他自定义选项可在安装后使用。
将集群安装到 IBM Power® Virtual Server 中的现有 VPC:您可以将 OpenShift Container Platform 安装到 IBM Power® Virtual Server 中的现有虚拟私有云 (VPC)。如果您受到公司指南设置的约束(例如,创建新帐户或基础架构时的限制),则可以使用此安装方法。
在 IBM Power® Virtual Server 上安装私有集群:您可以在 IBM Power® Virtual Server 上安装私有集群。您可以使用此方法在对互联网不可见的内部网络上部署 OpenShift Container Platform。
在受限网络中的 IBM Power® Virtual Server 上安装集群:您可以使用安装版本内容的内部镜像,在安装程序配置的基础架构的 IBM Power® Virtual Server 上安装 OpenShift Container Platform。您可以使用此方法安装不需要活动互联网连接来获取软件组件的集群。
云凭证操作器 (CCO) 将云提供商凭证管理为 Kubernetes 自定义资源定义 (CRD)。要在 IBM Power® Virtual Server 上安装集群,必须在安装过程中将 CCO 设置为manual
模式。
当云凭证操作器 (CCO) 以手动模式运行时,要从集群外部创建和管理云凭证,请提取并准备 CCO 实用程序 (ccoctl
) 二进制文件。
|
您拥有一个具有集群管理员访问权限的 OpenShift Container Platform 帐户。
您已安装 OpenShift CLI (oc
)。
通过运行以下命令设置 OpenShift Container Platform 发行版镜像的变量
$ RELEASE_IMAGE=$(./openshift-install version | awk '/release image/ {print $3}')
通过运行以下命令从 OpenShift Container Platform 发行版镜像获取 CCO 容器镜像
$ CCO_IMAGE=$(oc adm release info --image-for='cloud-credential-operator' $RELEASE_IMAGE -a ~/.pull-secret)
确保 |
通过运行以下命令从 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 。有效值为:
|
更改权限以使 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.