Creating a 2 node OpenShift cluster on VPC infrastructure by using Schematics
Create an Red Hat OpenShift on IBM Cloud cluster in a Virtual Private Cloud (VPC) by using Schematics.
Audience
This tutorial is designed for account administrators who want to learn about Red Hat OpenShift on IBM Cloud and Schematics.
Alternatively, you can use this tutorial to set up a small testing environment for administrators who are already familiar with OpenShift, VPC, and Schematics.
To complete this tutorial, you must have the at least the following permissions in IAM. For more information, see IAM roles and actions.
- Administrator or Compliance Management for IBM Cloud Kubernetes Service.
- Administrator or Editor for VPC.
- Manager for Schematics.
- Manager for Cloud Object Storage.
What you'll get
In this tutorial, you create the following resources. There are optional steps to delete these resources if you do not want to keep them after completing the tutorial.
- 1 Virtual Private Cloud (VPC)
- 1 Subnet
- 1 Public gateway
- 1 Cloud Object Storage (COS) bucket
- 1 OpenShift cluster with 2 worker nodes in the same zone.
Create a Schematics workspaces
- Navigate to the Schematics console.
- Click Create workspace.
- In the GitHub, GitLab or Bitbucket repository URL field, enter the following URL.
https://github.com/IBM-Cloud/kube-samples/tree/master/ez-ibm-openshift-vpc
- Uncheck the Use Full Repository box.
- Make sure the Branch, Folder, and Personal Access Token fields are empty.
- Use the default Terraform version and click Next.
- In the Workplace Details section, give your workspace a name and fill out the remaining fields as desired.
- Click Next, then review the information you entered.
- Click Create, then wait a few minutes while the Schematics template populates.
Generate, review, and apply the Schematics plan
- Click Generate plan to create a Terraform execution plan. Generating a plan lets you review the resources that will be deployed in your account and the associated cost estimate.
- After reviewing the plan details and the cost estimate, click Apply plan.
- Wait a few minutes while Schematics creates the resources in your account.
Access your OpenShift cluster
- Navigate to the Red Hat OpenShift clusters console.
- Select your cluster. The cluster name is
ez-ibm-openshift-vpc-XXX
. - Click OpenShift web console to access your cluster. For more information, see Connecting to the cluster from the console.
Optional: Clean up the resources
- Navigate to your Schematics workspace.
- From the Actions dropdown menu, click Destroy resources.
- Wait a few minutes while Schematics deletes the resources from your account.
- From the Actions menu, click Delete workspace.