The Red Hat OpenShift install-config.yaml file provides configuration options to the installation program and facilitates the creation of its manifest files.

Procedure

  1. Log in to your Linux host by using a Secure Shell (SSH) client.
  2. Create a working folder for the installation of Red Hat OpenShift.
    mkdir ~/ocp
  3. Go to the working folder for the installation of Red Hat OpenShift.
    cd ~/ocp
  4. Create аn install-config.yaml installation file with the following contents.
    apiVersion: v1
    baseDomain: sfo.rainpole.io
    compute:
    - hyperthreading: Enabled 
      name: worker
      replicas: 0
    controlPlane:
      hyperthreading: Enabled
      name: control-plane
      replicas: 3
    metadata:
      name: sfo-w01-ocp01
    networking:
      networkType: NCP
      clusterNetwork:
      - cidr: 100.100.0.0/16
        hostPrefix: 23
      serviceNetwork:
      - 100.200.0.0/16
      machineCIDR: 192.168.23.0/24
    platform:
      vsphere:
        vcenter: sfo-w01-vc01.sfo.rainpole.io
          username: administrator@vsphere.local
          password: <admin password>
          datacenter: sfo-w01-dc01
          defaultDatastore: sfo-w01-cl01-ds-vsan01
    pullSecret: '<pull secret>'
    sshKey: '<ssh public key>'