This project successfully demonstrates working with Red Hat OpenShift using both the oc CLI and the web console. The lab included deploying an application from a Git repository, inspecting build configurations and image streams, and enabling autoscaling.
openshift-lab/
βββ README.md # this file
βββ images/ # place your screenshots here
-
Opened a terminal session and confirmed the oc CLI was installed:
oc version
-
Navigated to the project workspace
/home/project. -
Cloned the required repo:
git clone https://github.com/ibm-developer-skills-network/CC201.git
π· Screenshot: verifying CLI & cloning repo

-
Listed pods running in the namespace:
oc get pods
-
Checked BuildConfigs and project details with:
oc get buildconfigs oc project
π· Screenshot: oc commands executed

- Launched the OpenShift web console via Skills Network Toolbox.
- Explored both Administrator and Developer perspectives.
- Reviewed Dashboard, Overview, resources inventory, and YAML definitions.
π· Screenshot: web console overview

-
Switched to Developer perspective β Topology view.
-
Added a new application from Git:
- Repo:
https://github.com/sclorg/nodejs-ex.git - Selected Node.js builder image.
- Repo:
-
Confirmed application appeared in Topology after build. π· Screenshot: deploy app from Git

- Viewed build logs (repository cloned, Dockerfile generated, image built & pushed).
- Explored Build Config (triggers, webhooks, strategies).
- Checked ImageStreamTag and image history.
π· Screenshot: build logs and configs

- Opened the application route from Topology view in a browser.
- Verified deployed Node.js app responded successfully.
π· Screenshot: running Node.js app

- Edited Deployment YAML to add resource requests/limits:
resources:
limits:
cpu: 30m
memory: 100Mi
requests:
cpu: 3m
memory: 40Mi- Created an HorizontalPodAutoscaler (HPA) with target CPU utilization 10%, min=1, max=3 replicas.
π· Screenshot: HPA creation

-
Generated load on the application:
for i in $(seq 1000); do curl -s -L <app_url> & done
-
Observed scale up: Current Replicas β Desired Replicas = 3.
-
Verified in UI with fruit entries simulating load. π· Screenshot: autoscaling in action

- β Verified OpenShift CLI and environment
- β Explored OpenShift web console (Admin & Developer perspectives)
- β Deployed Node.js app directly from GitHub using s2i build strategy
- β Inspected BuildConfig, logs, and ImageStream
- β Accessed app via auto-generated route
- β Configured & tested Horizontal Pod Autoscaler