1.2. 了解基于代理的安装程序
作为 OpenShift Container Platform 用户,您可以在断开连接的环境中利用 Assisted Installer 托管服务的优势。
基于代理的安装包含一个可引导 ISO,其中包含辅助发现代理和辅助服务。两者都需要执行集群安装,但后者仅在其中一个主机上运行。
openshift-install agent create image
子命令会根据您提供的输入生成一个临时 ISO。您可以选择通过以下清单提供输入:
Preferred:
-
install-config.yaml
-
agent-config.yaml
或
可选:ZTP 清单
-
cluster-manifests/cluster-deployment.yaml
-
cluster-manifests/agent-cluster-install.yaml
-
cluster-manifests/pull-secret.yaml
-
cluster-manifests/infraenv.yaml
-
cluster-manifests/cluster-image-set.yaml
-
cluster-manifests/nmstateconfig.yaml
-
mirror/registries.conf
-
mirror/ca-bundle.crt
1.2.1. 基于代理的安装程序工作流 复制链接链接已复制到粘贴板!
其中一个 control plane 主机在引导过程中运行 Assisted Service,最终成为 bootstrap 主机。此节点称为 rendezvous 主机 (node 0)。Assisted Service 确保所有主机都满足要求,并触发 OpenShift Container Platform 集群部署。所有节点都将 Red Hat Enterprise Linux CoreOS (RHCOS) 镜像写入磁盘。非引导节点重新引导并启动集群部署。节点重启后,rendezvous 主机会重启并加入集群。bootstrap 已完成,并部署了集群。
图 1.1. 节点安装工作流
您可以通过 openshift-install agent create image
子命令为以下拓扑安装断开连接的 OpenShift Container Platform 集群:
- 单节点 OpenShift Container Platform 集群 (SNO) :一个 master 和 worker 的节点。
- 三节点 OpenShift Container Platform 集群 :一个紧凑集群,它有三个 master 节点,也是 worker 节点。
- 高可用性 OpenShift Container Platform 集群 (HA) :具有任意数量的 worker 节点的 master 节点。
1.2.2. 拓扑的建议资源 复制链接链接已复制到粘贴板!
为以下拓扑推荐的集群资源:
Topology | master 节点数量 | worker 节点数量 | vCPU | memory | 存储 |
---|---|---|---|---|---|
单节点集群 | 1 | 0 | 8 个 vCPU | 16GB RAM | 120GB |
紧凑集群 | 3 | 0 或 1 | 8 个 vCPU | 16GB RAM | 120GB |
HA 集群 | 3 | 2 及更高版本 | 8 个 vCPU | 16GB RAM | 120GB |
支持以下平台:
-
baremetal
-
vsphere
none
注意none
选项只支持带有OVNKubernetes
网络类型的单节点 OpenShift 集群。