openshift 4.6 离线安装
所需的机器
最小的 OpenShift Container Platform 集群需要下列主机:
- 一个临时 bootstrap 机器
- 三台 control plane 或 master 机器
- 至少两台计算机器,也称为 worker 机器。
bootstrap 和 control plane 机器必须使用 Red Hat Enterprise Linux CoreOS (RHCOS) 作为操作系统。
| hosts | system | number | vcpu | money | storage | 作用 |
|---|---|---|---|---|---|---|
| bootstrap | RHCOS | 1 | 4 | 16G | 120G | 安装配置master节点 |
| Control plane | RHCOS | 最少3 | 4 | 16G | 120G | 集群master节点 |
| Compute | RHCOS\RHEL8 | 最少2 | 2 | 8G | 120G | 集群工作节点 |
| bastion machine | RHEL8 | 最少1 | 2 | 8G | 120G | 堡垒机,提供基础架构服务如dns、DHCP、lb等 |
1、bastion 上配置
subscription-manager register --username=rhn-support-xxx --password='xxx' --auto-attach
# 安装必要的软件:
yum install wget net-tools podman bind-utils bind haproxy git bash-completion vim jq httpd httpd-tools skopeo httpd-manual nfs-utils -y
# 环境设置:
systemctl disable firewalld
sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config
egrep '^SELINUX=' /etc/selinux/config
systemctl enable httpd --now
reboot

浙公网安备 33010602011771号