To install an OpenShift cluster with a user-provisioned infrastructure, follow the instructions in the Redhat OpenShift documentation.
This is one of the two methods to install an OpenShift cluster. The other method is to install the cluster with an installer-provisioned infrastructure (see Installing OpenShift 4 with Installer-Provisioned Infrastructure). You can use only one of the two methods.
You can find the documentation at https://docs.openshift.com/container-platform/4.7/installing/installing_vsphere/installing-vsphere.html.
apiVersion: v1 baseDomain: yasen.local compute: - hyperthreading: Enabled name: worker replicas: 0 controlPlane: hyperthreading: Enabled name: master replicas: 3 metadata: name: ocp networking: networkType: ncp clusterNetwork: - cidr: 10.4.0.0/16 hostPrefix: 23 machineCIDR: 10.114.16.0/24 serviceNetwork: - 172.30.0.0/16 platform: vsphere: vcenter: vc.yasen.local username: [email protected] password: VMware1! datacenter: Datacenter1 defaultDatastore: NFS pullSecret: '' sshKey: 'ssh-rsa xxxx'
Make sure that networkType is set to ncp (case sensitive) and cidr is set to the desired subnet.
Following the OpenShift installation instructions, you will need to copy the content of nsx-container-plugin-operator/deploy to the <installation_directory>/manifests folder and then generate ignition-configs.
$ ./openshift-install create manifests --dir=<installation_directory>
$ cp nsx-container-plugin-operator/deploy/*.yaml <installation_directory>/manifests
$ ./openshift-install create ignition-configs --dir=<installation_directory>
Using DDNS with OpenShift nodes
You can use DDNS with OpenShift nodes running CoreOS. When nsx-ovs container runs, it stops the active connection on the host that is using DHCP and clones a new connection from it with “NSX ” prepended to the existing connection name. This NSX connection has the IP configuration of dynamic IP information (address, gateway, DNS, and domain) from the original connection. A new DHCP client is started inside the container to maintain and renew the lease. If DNS or the domain name changes while nsx-ovs is running, it exits and restarts. This is done so that the IP information is obtained first by NetworkManager and then by nsx-ovs. The NSX connection properties cannot be overridden while it is active.