In this article we start install RHEL and install Openshift.
The main guide for the installation I reference from is at https://access.redhat.com/documentation/en-us/openshift_container_platform/3.9/html-single/installation_and_configuration/. Chapter 2.6 Advanced Installation.
As the installation complete, create the root password.
Ping the gateway and ping 184.108.40.206 to test whether you have access to Internet.
subscription-manager register –username=<Redhat Openshift Username>
subscription-manager attach –pool=<highlighted>
subscription-manager repos –disable=”*”
subscription-manager repos –enable=”rhel-7-server-rpms” –enable=”rhel-7-server-extras-rpms” –enable=”rhel-7-server-ose-3.9-rpms” –enable=”rhel-7-fast-datapath-rpms” –enable=”rhel-7-server-ansible-2.4-rpms”
Step 3: Now we going to upload the NSX Container zip file to the master copy.
The version I used is 2.13. Filename: nsx-container-220.127.116.1156796.zip.
Place this file in /root.
[root@ocp-master ~]# unzip nsx-container-18.104.22.16856796.zip
Step 4: Now we are reading to clone this VM to 3 copies.
I name my VMs the following
- OCP-Master (IP: 10.11.1.10/24)
- OCP-Node01 (IP: 10.11.1.11/24)
- OCP-Node02 (IP: 10.11.1.12/24)
Console to each VM. Change the IP using nmtui command. You can either use nmtui to deactivate/activate the connection or use ifdown ens192 and ifup ens192.
Next we going to put in host entries in each of the nodes so that we can reach each nodes using hostnames.
nano /etc/hosts on each node.
Step 4: Resume back to the preparation of the hosts.
# for host in ocp-master01 \ ocp-node01 \ ocp-node02; \ do ssh-copy-id -i ~/.ssh/id_rsa.pub $host; \ done