Installing Openshift 4 on AWS
Documentation on installing Openshift 4 on AWS can be found here.
If possible, using the installer-provisioned infrastructure (IPI) method is preferred.
For custom requirements, the user-provisioned infrastructure (UPI) method can be used.
If the UPI method must be used, a terraform automation configuration may be helpful. A sample configuration can be found here:
Problem: When using automatic encryption of EBS volumes for EC2 instances, OpenShift Worker nodes will be terminated immediately as the generated user does not have the authority to use the default encryption key and the OpenShift installer will time out.
Scale Worker MachineSets to 0 via
oc --kubeconfig /path/to/install/dir/auth/kubeconfig scale machineset --all -n openshift-machine-api --replicas=0
Scale Worker MachineSets back to previous values via
oc --kubeconfig /path/to/install/dir/auth/kubeconfig scale machineset --all -n openshift-machine-api --replicas=1
Verify Worker nodes are visible in the AWS Console and via
oc get nodes.
Wait until all Operators in the
oc get clusteroperatorslist are as expected.