Welcome to the self-service portal for provisioning ephemeral Red Hat OpenShift 4.x clusters on Google Cloud Platform (GCP).
This repository uses GitHub Actions to automate the openshift-install process, allowing team members to spin up customized lab environments on demand. To prevent runaway cloud costs, all clusters are strictly capped at a 72-hour lifespan and will be automatically destroyed by a background Janitor process.
You do not need to clone this repository or run any Terraform/CLI commands locally to get a cluster.
- Navigate to the Actions tab at the top of this repository.
- On the left sidebar, click on Provision OpenShift Lab.
- On the right side of the screen, click the Run workflow dropdown button.
- Fill out the form:
- Cluster Name: Provide a unique, identifiable name (e.g.,
shrey-ocp-test-1). - Worker Count: Select the number of worker nodes you need.
- Acknowledgment: You must check the box acknowledging the 72-hour automated deletion policy to proceed.
- Cluster Name: Provide a unique, identifiable name (e.g.,
- Click the green Run workflow button.
Note: The installation process typically takes 35 to 45 minutes to complete.
Once your GitHub Actions job successfully completes, you will need to retrieve your generated credentials.
- Click into your completed workflow run in the Actions tab.
- Expand the step labeled Output Login Credentials.
- Copy the Web Console URL and the Password provided in the logs.
- Log into the OpenShift Web Console using the username
kubeadminand your copied password.
For security and simplicity, kubeconfig files are not distributed directly. To access the cluster via your local terminal:
- Log into the OpenShift Web Console using the steps above.
- Click your username (
kubeadmin) in the top right corner. - Select Copy login command from the dropdown menu.
- Paste the provided
oc login --token=...command into your terminal.
To manage GCP billing, this repository runs a continuous Janitor pipeline.
- Maximum Lifespan: 72 Hours.
- How it works: When your cluster is built, its creation metadata is logged in a secure GCP bucket. Every 24 hours, the Janitor script checks this bucket. If your cluster is older than 72 hours, it will automatically trigger an
openshift-install destroy clustercommand. - Warning: There is no backup of your lab data. Please ensure any important application manifests or configurations are committed to version control before the 72-hour window expires.