Objective
- Scale up Nginx application using oc scale command
- Scale up Nginx application by updating DeploymentConfig
- Scale down Nginx application using oc scale command
Step 1: Deploy Nginx application
Refer User & Project Management blog
Step 2: List pods
oc get pods
Step 3: Scale up Nginx application using oc scale
command
oc scale dc nginx --replicas=5
oc get pods --watch
Step 4: Scale up nginx application by updating DeploymentConfig
oc edit dc nginx
update replicas = 7
oc get pods --watch
Step 5: Scale down nginx application using oc scale
command
oc scale dc nginx --replicas=1
oc get pods --watch
Top comments (0)