2.4.2. Scaling up the application
Scale the application deployment up or down to meet workload demands.
In Kubernetes, a Deployment object defines how an application deploys. In most cases when you deploy an application, OpenShift Container Platform creates the Pod, Service, ReplicaSet, and Deployment resources for you.
When you deploy the parksmap image, a deployment resource is created. In this example, only one pod is deployed. You might want to scale up your application to keep up with user demand or to ensure that your application is always running even if one pod is down.
The following procedure scales the parksmap deployment to use two instances.
Prerequisites
-
You have deployed the
parksmapfront-end application.
Procedure
-
Navigate to Workloads
Topology and click the parksmapdeployment. - Select the Details tab.
Use the up arrow to scale the pod to two instances.
图 2.2. Scaling application
提示You can use the down arrow to scale your deployment back down to one pod instance.