Focus sentinelFocus sentinel
Something went wrong
Focus sentinelFocus sentinel
Cluster management
Deploy and secure enterprise workloads with Red Hat OpenShift on IBM Cloud or IBM Kubernetes Service.
Get started with Red Hat OpenShift
Get started with CLI
IBM Cloud CLI installed and initialized
Prerequisite
Make sure that you downloaded, installed, and initialized the IBM Cloud CLI
1. Create an OpenShift cluster
After you've installed the CLIs for running OpenShift commands, you can create your first cluster!
You must specify the cluster configurations (VPC_ID
, SUBNET_ID
, and SUBNET_ZONE
) that fit your needs.
ibmcloud oc cluster create vpc-gen2 \
--name my_cluster --flavor bx2.4x16 --workers 3 \
--vpc-id <VPC_ID> --subnet-id <SUBNET_ID> --zone <SUBNET_ZONE>
2. Deploy an app from a GitHub repo
After your cluster is running and you log in with your OpenShift token, you can quickly use the oc new-app command to deploy an app.
oc new-app --name hello-world https://github.com/IBM/container-service-getting-started-wt --context-dir='Lab 1'
3. Expose the app to access it publicly
Now that your app is deployed to your OpenShift cluster, you can easily set up public access with a route.
oc create route edge --service=hello-world
oc get route hello-world