Create ROSA Classic cluster with STS with specific VPC ### Background Information: Prepare the ROSA CLI & AWS CLI ``` [ec2-user@ip-192-168-0-19 ~]$ oc version Client Version: 4.15.6 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Unable to connect to the server: dial tcp: lookup api.frankie1.zqdn.p1.openshiftapps.com on 192.168.0.2:53: no such host [ec2-user@ip-192-168-0-19 ~]$ rosa version 1.2.37 I: There is a newer release version '1.2.39', please consider updating: https://console.redhat.com/openshift/downloads#tool-rosa [ec2-user@ip-192-168-0-19 ~]$ [ec2-user@ip-192-168-0-19 ~]$ aws --version aws-cli/2.15.36 Python/3.11.8 Linux/5.14.0-362.18.1.el9_3.x86_64 exe/x86_64.rhel.9 prompt/off ``` AWS setting ![image](https://hackmd.io/_uploads/Syp57XqQ0.png) ![image](https://hackmd.io/_uploads/rkJhmQ5QA.png) ![image](https://hackmd.io/_uploads/rJYTQQ9QC.png) ![image](https://hackmd.io/_uploads/rk2GEQ9XA.png) Go to console.redhat.com. Log in to the ROSA CLI with your Red Hat account token and create AWS account roles and policies ``` rosa login --token="copy from the console.redhat.com...it will link to your account...dont share with other..." rosa create account-roles --mode auto ``` ## Create a ROSA Cluster with web interface 1. Choose "Classic" ![image](https://hackmd.io/_uploads/ryLpYzqXC.png) 2. select the correct AWS infrastructure account ![image](https://hackmd.io/_uploads/Sk-E9fqQC.png) 3. input cluster details. select the correct AWS Region, i.e. ap-southeast-2. Select "multi-zone". Click "Advanced Encryption", enabled "etcd encryption" if needed. ![image](https://hackmd.io/_uploads/BJHdZXqm0.png) 4. In "Networking Configuration", click install into an existing VPC. ![image](https://hackmd.io/_uploads/rknbZQ97C.png) ![image](https://hackmd.io/_uploads/H18VfQqmR.png) ![image](https://hackmd.io/_uploads/BJAafXcm0.png) ![image](https://hackmd.io/_uploads/Bk31XXqXR.png) 5. Use the default value for "Cluster updates" ![image](https://hackmd.io/_uploads/rkwLXX9mC.png) 6. Wait for the Cluster installation complete ![image](https://hackmd.io/_uploads/SkqDBrqm0.png) ![image](https://hackmd.io/_uploads/rkNFrrc7R.png) 7. Create a temporary user using htpasswd in console.redhat.com. Grant the user cluster-admins right. You have to wait for 5 mins before you can login. ![image](https://hackmd.io/_uploads/BJMGUr97A.png) ![image](https://hackmd.io/_uploads/HyZXUr9mC.png) 8. Delete the cluster after testing ![image](https://hackmd.io/_uploads/SJxFUr5XR.png)