18.5.2.3. 运行安装程序
先决条件
- 获取 OpenShift Container Platform 发行镜像。
流程
切换到包含安装程序的目录并创建
install-config.yaml文件:$ openshift-install create install-config --dir <installation_directory>其中
<installation_directory>是安装程序在其中创建文件的目录。编辑
install-config.yaml配置文件,把其中的credentialsMode参数设置为Manual。示例
install-config.yaml配置文件apiVersion: v1 baseDomain: cluster1.example.com credentialsMode: Manual1 compute: - architecture: amd64 hyperthreading: Enabled ...- 1
- 添加这一行将
credentialsMode参数设置为Manual。
创建所需的 OpenShift Container Platform 安装清单:
$ openshift-install create manifests将
ccoctl生成的清单复制到安装程序创建的 manifests 目录中:$ cp /<path_to_ccoctl_output_dir>/manifests/* ./manifests/将
ccoctl在tls目录中生成的私钥复制到安装目录中:$ cp -a /<path_to_ccoctl_output_dir>/tls .运行 OpenShift Container Platform 安装程序:
$ ./openshift-install create cluster