168 Red Hat OpenShift and IBM Cloud Paks on IBM Power Systems: Volume 1
    deployment #2 deployed 5 minutes ago - 1 pod
    deployment #1 deployed 13 minutes ago
http://myapp.apps.domain.example.com to pod port 8080-tcp (svc/nodejs-ex)
  dc/nodejs-ex deploys istag/nodejs-ex:latest <-
    bc/nodejs-ex source builds https://github.com/sclorg/nodejs-ex on openshift/nodejs:10 
    deployment #1 deployed about an hour ago - 1 pod
# oc set env dc/nodejs-ex 
MONGO_URL='mongodb://admin:secret@172.30.155.22:27017/mongo_db'
deploymentconfig.apps.openshift.io/nodejs-ex updated
# oc status
In project nodejs (nodejs-example) on server https://ocp.domain.example.com:8443
svc/mongodb-36-rhel7 - 172.30.155.22:27017
  dc/mongodb-36-rhel7 deploys istag/mongodb-36-rhel7:latest 
    deployment #2 deployed 7 minutes ago - 1 pod
    deployment #1 deployed 15 minutes ago
http://myapp.apps.domain.example.com to pod port 8080-tcp (svc/nodejs-ex)
  dc/nodejs-ex deploys istag/nodejs-ex:latest <-
    bc/nodejs-ex source builds https://github.com/sclorg/nodejs-ex on openshift/nodejs:10 
    deployment #2 deployed about a minute ago - 1 pod
    deployment #1 deployed about an hour ago
9. Check the Page view count by accessing the application link 
http://myapp.apps.domain.example.com, as shown in Figure 7-2.
Figure 7-2   http://myapp.apps.domain.example.com with MongoDB
10.Scale the nodejs-ex application to three nodes, as shown in Example 7-9.
Example 7-9   Scale nodejs-ex application
# oc get dc
NAME               REVISION   DESIRED   CURRENT   TRIGGERED BY
mongodb-36-rhel7   2          1         1         config,image(mongodb-36-rhel7:latest)
nodejs-ex          2          1         1         config,image(nodejs-ex:latest)
# oc scale dc/nodejs-ex --replicas=3
deploymentconfig.apps.openshift.io/nodejs-ex scaled