This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.12.4.14.10. 为机器设置自定义子网
安装程序默认使用的 IP 范围可能与您在安装 OpenShift Container Platform 时创建的 Neutron 子网不匹配。如有必要,通过编辑安装配置文件来更新新机器的 CIDR 值。
先决条件
-
有 OpenShift Container Platform 安装程序生成的
install-config.yaml
文件。
流程
-
在命令行中进入包含
install-config.yaml
的目录。 在该目录中,运行脚本来编辑
install-config.yaml
文件或手动更新该文件:要使用脚本设置值,请运行:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- 插入一个与您指定的 Neutron 子网匹配的值,如
192.0.2.0/24
。
-
要手动设置这个值,请打开该文件并将
networking.machineCIDR
的值设置为与您预期的 Neutron 子网匹配的内容。