Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Openshift: Lab 6 – Scale applications using the OpenShift web console

Lab 6 summary

This lab teaches how to scale an OpenShift application up and down from the web console, specifically from the Topology view. The learner first deploys the Parksmap application from a container image, then uses the application Details panel to increase or decrease the number of running pods.

What the learner needs to know

The PDF says learners should already understand:

TopicWhy it matters
OpenShift and Kubernetes relationshipOpenShift runs Kubernetes workloads
Kubernetes podsScaling means changing the number of pods
Developer Sandbox accessThe lab is done in OpenShift Developer Sandbox

What the learner will learn

SkillMeaning
Access application detailsOpen app details from the Topology view
Scale upIncrease the number of running pods
Scale downDecrease the number of running pods
Understand pod-based scalingMore pods means more identical app instances available to handle traffic

The PDF explains that scaling means increasing or decreasing the number of an application’s pods. A pod contains one or more containers that run the application logic.

Application used

ItemValue
App nameParksmap
Image sourceExternal container image repository
RegistryQuay.io
Image used in Lab 6quay.io/openshiftroadshow/parksmap
Resource typeDeployment
Tool usedOpenShift web console

Main lab flow

StepAction
1Open Developer Sandbox
2Log in with Red Hat account
3Go to OpenShift web console
4Click +Add
5Select Container images
6In Deploy Image, enter quay.io/openshiftroadshow/parksmap
7Scroll to Deploy
8Set Resource type to Deployment
9Click Create
10Open Topology view
11Click the center of the Parksmap circular graphic
12Open the Details tab
13Use the up arrow beside the pod graphic to scale up
14Use the down arrow beside the pod graphic to scale down

The PDF specifically says the pod count changes in the circular graphic as you click the up/down arrows.

What this lab teaches conceptually

ConceptExplanation
PodThe unit where the application container runs
ServiceSends traffic to the application pods
Scaling upAdding more identical pods
Scaling downReducing the number of pods
Topology viewVisual OpenShift console view for app resources
Details paneUI panel where pod count can be changed

CLI equivalent of Lab 6

The PDF uses the web console, but the matching oc CLI flow would be:

# Create a project for the lab
oc new-project parksmap-scale-demo

# Deploy Parksmap from the container image
oc new-app quay.io/openshiftroadshow/parksmap --name=parksmap

# Check created resources
oc get all

# Watch the first pod start
oc get pods --watch

# Scale up to 3 pods
oc scale deployment/parksmap --replicas=3

# Verify 3 pods are running
oc get pods -l app=parksmap

# Scale down to 1 pod
oc scale deployment/parksmap --replicas=1

# Verify only 1 pod remains
oc get pods -l app=parksmap

# Optional cleanup
oc delete all -l app=parksmap
Code language: PHP (php)

Expected output after scaling up:

deployment.apps/parksmap scaled

Then:

NAME                       READY   STATUS    RESTARTS   AGE
parksmap-xxxxxxxxx-aaaaa   1/1     Running   0          2m
parksmap-xxxxxxxxx-bbbbb   1/1     Running   0          20s
parksmap-xxxxxxxxx-ccccc   1/1     Running   0          20s

Difference from earlier labs

LabTopicTool
Lab 3Deploy app from container imageWeb console
Lab 4Deploy app from container imageoc CLI
Lab 6Deploy app from container image, then scale podsWeb console

So Lab 6 is basically: Lab 3 + scaling practice using the Topology Details panel.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Best DevOps Tools in 2024

here’s a clear, structured breakdown of the Best DevOps Tools (grouped by categories), so you can use it for learning, training, or posts. 🚀 Best DevOps Tools…

Read More

OpenShift Tutorial – Deploy and Access Your First Applications using OpenShift Local

How to install oc? OpenShift: How to Install OpenShift CLI oc How to login? Login to the Openshift using Web Console and CLI using oc Copy the admin…

Read More

OpenShift Lab 14: Setting Up and Using OpenShift Serverless Functions on OpenShift Local

Lab Objective In this lab, you will install and use OpenShift Serverless Functions on OpenShift Local. You will create a simple Node.js serverless function, deploy it to…

Read More

OpenShift Lab 13: Deploy a Java Spring Boot Application with MySQL Using the OpenShift Web Console

Lab Objective In this lab, you will deploy a Java Spring Boot application on OpenShift using the OpenShift web console. You will deploy two components: The Java…

Read More

OpenShift Lab 12: Deploy an Application from an Existing Container Image Using the OpenShift Web Console

Lab Objective In this lab, you will deploy an application on OpenShift from an existing container image. This lab is different from building an application from source…

Read More

OpenShift: How to Install OpenShift CLI oc

Option – 1 – REDHAT Websites URL – https://access.redhat.com/downloads/content/290/ver=4.18/rhel—9/4.18.11/x86_64/product-software Option – 2 – OKD Websites The OKD (Origin Community Distribution of Kubernetes for OpenShift) is the open-source…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Skylar Bennett
Skylar Bennett
27 days ago

The tutorial provides a clear overview of scaling applications through the OpenShift web console, but it would be beneficial to emphasize that effective scaling requires understanding application characteristics and workload patterns. Increasing replicas alone may not resolve performance bottlenecks if limitations exist in databases, external services, or application startup times. Discussing Horizontal Pod Autoscalers, resource optimization, and monitoring techniques would give readers a more complete picture of managing scalable and cost-efficient deployments in production environments.

1
0
Would love your thoughts, please comment.x
()
x