Deploy OpenShift Cluster in AWS
25 minutesDeploy an OpenShift Cluster
We’ll use the ROSA CLI to deploy an OpenShift Cluster.
First, we’ll need to set a few environment variables:
Note: be sure to fill in the Subnet IDs and OIDC ID before running the EXPORT commands
Create operator roles for the OIDC configuration using the following command:
Note: just accept the default values when prompted.
Then we can create the cluster as follows:
Note that we’ve specified the
g5.4xlargeinstance type, which includes NVIDIA GPUs that we’ll be using later in the workshop. This instance type is relatively expensive, about $1.64 per hour at the time of writing, and we’ve requested 2 replicas, so be mindful of how long your cluster is running for, as costs will accumulate quickly.
To determine when your cluster is Ready, run:
To watch your cluster installation logs, run:
Connect to the OpenShift Cluster
Use the command below to connect the oc CLI to your OpenShift cluster:
Note: Run the
rosa describe cluster -c $CLUSTER_NAMEcommand and substitute the resulting API Server URL into the command below before running it. For example, the server name might be something likehttps://api.rosa-test.aaa.bb.openshiftapps.com:443.
Once connected to your cluster, confirm that the nodes are up and running: