5.6. 使用 GCP Marketplace 产品
使用 GCP Marketplace 产品可让您部署 OpenShift Container Platform 集群,该集群按照使用付费(按小时、每个内核)进行计费,同时仍由红帽直接支持。
默认情况下,安装程序会下载并安装用于部署计算机器的 Red Hat Enterprise Linux CoreOS (RHCOS) 镜像。要使用 GCP Marketplace 中的 RHCOS 镜像部署 OpenShift Container Platform 集群,修改 install-config.yaml
文件以引用 GCP Marketplace 提供的位置来覆盖默认行为。
先决条件
-
您有一个现有的
install-config.yaml
文件。
流程
编辑
compute.platform.gcp.osImage
参数,以指定 GCP Marketplace 镜像的位置:-
将
project
参数设置为redhat-marketplace-public
。 将
name
参数设置为以下产品之一:- OpenShift Container Platform
-
redhat-coreos-ocp-413-x86-64-202305021736
- OpenShift Platform Plus
-
redhat-coreos-opp-413-x86-64-202305021736
- OpenShift Kubernetes Engine
-
redhat-coreos-oke-413-x86-64-202305021736
-
将
- 保存文件并在部署集群时引用。
为计算机器指定 GCP Marketplace 镜像的 install-config.yaml
文件示例
apiVersion: v1 baseDomain: example.com controlPlane: # ... compute: platform: gcp: osImage: project: redhat-marketplace-public name: redhat-coreos-ocp-413-x86-64-202305021736 # ...