OpenShift Container Platform 4.x is using Kubernetes orchestration system and enterprise ready.
In my short blog, I will walk through how to setup OpenShift on AWS Cloud platform within minutes.
Prerequisite
· AWS Account & create new IAM user id with Administrator permission (Just Programmatic access / CLI Only)
· Hostname DNS Registration & configuration hostedzone
· Redhat account setup (this demo developer account)
· Generate ssh key for access nodes
· EIP limit increase to 10 at target region
- Download installer from https://cloud.redhat.com/openshift/install/aws/installer-provisioned
- Extract the installer ‘tar’ file . “tar xvf openshift-install-linux-4.1.6.tar.gz”
- Run installation (do not delete installation dir, require for cluster destroy process): ./openshift-install create cluster — dir=<installation_directory >
- Enter ssh key info
- Select AWS
- Enter AWS account access key id and secret access key for the user to run OpenShift installation.
- Enter/select Route 53 domain name
- Enter Cluster Name
- Copy and paste pull secret from https://cloud.redhat.com/openshift/install
- Installation is success will get URL with login id and password for OpenShift Cluster (3 master & 3 workers behind own VPC)
- Install oc CLI and export kubeadmin credentials
[ec2-user@ip-172–31–34–xxx ~]$ export KUBECONFIG=/home/ec2-user/openshift-installation-v4/auth/kubeconfig
[ec2-user@ip-172–31–34–xxx ~]$ oc whoami
system:admin
[ec2-user@ip-172–31–34–xxx ~]$ oc login
Authentication required for https://api.oc-pocv4.abcde.com:6443 (openshift)
Username: kubeadmin
Password:
Login successful.
- Run Get Nodes Command ‘ oc get nodes ‘
Now you have 3 Masters and 3 worker ready to useOpenShift Cluster with latest version.

