In the web console, view the Overview page for your project to determine the web address for your application. Click the web address displayed underneath the NODEJS-MONGODB-EXAMPLE service to open your application in a new browser tab:
Looking at the service it doesn't have a external IP address, just the cluster IP:
Name: mongodb-1-npmg4
Namespace: tlaloc
Node: ip-172-31-26-132.ca-central-1.compute.internal/172.31.26.132
Start Time: Sun, 15 Apr 2018 16:10:31 -0400
Labels: deployment=mongodb-1
deploymentconfig=mongodb
name=mongodb
Annotations: kubernetes.io/limit-ranger=LimitRanger plugin set: cpu request for container mongodb; cpu limit for container mongodb
openshift.io/deployment-config.latest-version=1
openshift.io/deployment-config.name=mongodb
openshift.io/deployment.name=mongodb-1
openshift.io/scc=restricted
Status: Running
IP: 10.130.11.167
Controlled By: ReplicationController/mongodb-1
Containers:
mongodb:
Container ID: docker://34a07a08423c3641f222f7b0ab0a64506eaf00e0be6b9f7bc480a20462c5567c
Image: registry.access.redhat.com/rhscl/mongodb-32-rhel7@sha256:82c79f0e54d5a23f96671373510159e4fac478e2aeef4181e61f25ac38c1ae1f
Image ID: docker-pullable://registry.access.redhat.com/rhscl/mongodb-32-rhel7@sha256:82c79f0e54d5a23f96671373510159e4fac478e2aeef4181e61f25ac38c1ae1f
Port: 27017/TCP
State: Running
Started: Sun, 15 Apr 2018 16:10:51 -0400
Ready: True
Restart Count: 0
Limits:
cpu: 1
memory: 512Mi
Requests:
cpu: 50m
memory: 256Mi
Liveness: tcp-socket :27017 delay=30s timeout=1s period=10s #success=1 #failure=3
Readiness: exec [/bin/sh -i -c mongo 127.0.0.1:27017/$MONGODB_DATABASE -u $MONGODB_USER -p $MONGODB_PASSWORD --eval="quit()"] delay=3s timeout=1s period=10s #success=1 #failure=3
Environment:
MONGODB_USER: <set to the key 'database-user' in secret 'nodejs-mongo-persistent'> Optional: false
MONGODB_PASSWORD: <set to the key 'database-password' in secret 'nodejs-mongo-persistent'> Optional: false
MONGODB_DATABASE: sampledb
MONGODB_ADMIN_PASSWORD: <set to the key 'database-admin-password' in secret 'nodejs-mongo-persistent'> Optional: false
Mounts:
/var/lib/mongodb/data from mongodb-data (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-zfl6x (ro)
Conditions:
Type Status
Initialized True
Ready True
PodScheduled True
Volumes:
mongodb-data:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: mongodb
ReadOnly: false
default-token-zfl6x:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-zfl6x
Optional: false
QoS Class: Burstable
Node-Selectors: type=compute
Tolerations: node.kubernetes.io/memory-pressure:NoSchedule
Events: <none>
Name: nodejs-mongo-persistent-1-build
Namespace: tlaloc
Node: ip-172-31-25-193.ca-central-1.compute.internal/172.31.25.193
Start Time: Sun, 15 Apr 2018 16:08:57 -0400
Labels: openshift.io/build.name=nodejs-mongo-persistent-1
Annotations: kubernetes.io/limit-ranger=LimitRanger plugin set: cpu, memory request for container sti-build; cpu, memory limit for container sti-build; cpu, memory request for init container git-clone; cpu, memory...
openshift.io/build.name=nodejs-mongo-persistent-1
openshift.io/scc=privileged
Status: Succeeded
IP: 10.130.27.27
Controlled By: Build/nodejs-mongo-persistent-1
Init Containers:
git-clone:
Container ID: docker://09db3607816fe66058400c18165f7d0ea0627e86f1a3ec5abef0a9f38d85bf49
Image: registry.reg-aws.openshift.com:443/openshift3/ose-sti-builder:v3.9.14
Image ID: docker-pullable://registry.reg-aws.openshift.com:443/openshift3/ose-sti-builder@sha256:e8ca49689b4ddf2775bf65c63e9b5c764731c3feca1e246942ff8cc68074e37f
Port: <none>
Command:
openshift-git-clone
Args:
--loglevel=0
State: Terminated
Reason: Completed
Exit Code: 0
Started: Sun, 15 Apr 2018 16:09:01 -0400
Finished: Sun, 15 Apr 2018 16:09:07 -0400
Ready: True
Restart Count: 0
Limits:
cpu: 1
memory: 512Mi
Requests:
cpu: 50m
memory: 256Mi
Environment:
BUILD: {"kind":"Build","apiVersion":"v1","metadata":{"name":"nodejs-mongo-persistent-1","namespace":"tlaloc","selfLink":"/apis/build.openshift.io/v1/namespaces/tlaloc/builds/nodejs-mongo-persistent-1","uid":"d47d2052-40e8-11e8-98a3-02ec8e61afcf","resourceVersion":"517479372","creationTimestamp":"2018-04-15T20:08:57Z","labels":{"app":"nodejs-mongo-persistent","buildconfig":"nodejs-mongo-persistent","openshift.io/build-config.name":"nodejs-mongo-persistent","openshift.io/build.start-policy":"Serial","template":"nodejs-mongo-persistent"},"annotations":{"openshift.io/build-config.name":"nodejs-mongo-persistent","openshift.io/build.number":"1"},"ownerReferences":[{"apiVersion":"build.openshift.io/v1","kind":"BuildConfig","name":"nodejs-mongo-persistent","uid":"d4695615-40e8-11e8-a010-02d8407159d1","controller":true}]},"spec":{"serviceAccount":"builder","source":{"type":"Git","git":{"uri":"https://github.com/syl20lego/nodejs-ex"}},"strategy":{"type":"Source","sourceStrategy":{"from":{"kind":"DockerImage","name":"registry.access.redhat.com/rhscl/nodejs-6-rhel7@sha256:739c2663e323dc717f5d1e5f29f2301a3be608c1cf2a19842178b2c6d3de0231"},"env":[{"name":"NPM_MIRROR"}],"forcePull":true}},"output":{"to":{"kind":"DockerImage","name":"docker-registry.default.svc:5000/tlaloc/nodejs-mongo-persistent:latest"},"pushSecret":{"name":"builder-dockercfg-mx2tp"}},"resources":{},"postCommit":{"script":"npm test"},"nodeSelector":null,"triggeredBy":[{"message":"Image change","imageChangeBuild":{"imageID":"registry.access.redhat.com/rhscl/nodejs-6-rhel7@sha256:739c2663e323dc717f5d1e5f29f2301a3be608c1cf2a19842178b2c6d3de0231","fromRef":{"kind":"ImageStreamTag","namespace":"openshift","name":"nodejs:6"}}}]},"status":{"phase":"New","outputDockerImageReference":"docker-registry.default.svc:5000/tlaloc/nodejs-mongo-persistent:latest","config":{"kind":"BuildConfig","namespace":"tlaloc","name":"nodejs-mongo-persistent"},"output":{}}}
SOURCE_REPOSITORY: https://github.com/syl20lego/nodejs-ex
SOURCE_URI: https://github.com/syl20lego/nodejs-ex
ORIGIN_VERSION: v3.9.14
ALLOWED_UIDS: 1-
DROP_CAPS: KILL,MKNOD,SETGID,SETUID
Mounts:
/tmp/build from buildworkdir (rw)
/var/run/secrets/kubernetes.io/serviceaccount from builder-token-n88rq (ro)
manage-dockerfile:
Container ID: docker://6b880a4b629f45140dc512871fc76638172018855fbdfd6b36dcd385706f9232
Image: registry.reg-aws.openshift.com:443/openshift3/ose-sti-builder:v3.9.14
Image ID: docker-pullable://registry.reg-aws.openshift.com:443/openshift3/ose-sti-builder@sha256:e8ca49689b4ddf2775bf65c63e9b5c764731c3feca1e246942ff8cc68074e37f
Port: <none>
Command:
openshift-manage-dockerfile
Args:
--loglevel=0
State: Terminated
Reason: Completed
Exit Code: 0
Started: Sun, 15 Apr 2018 16:09:08 -0400
Finished: Sun, 15 Apr 2018 16:09:09 -0400
Ready: True
Restart Count: 0
Limits:
cpu: 1
memory: 512Mi
Requests:
cpu: 50m
memory: 256Mi
Environment:
BUILD: {"kind":"Build","apiVersion":"v1","metadata":{"name":"nodejs-mongo-persistent-1","namespace":"tlaloc","selfLink":"/apis/build.openshift.io/v1/namespaces/tlaloc/builds/nodejs-mongo-persistent-1","uid":"d47d2052-40e8-11e8-98a3-02ec8e61afcf","resourceVersion":"517479372","creationTimestamp":"2018-04-15T20:08:57Z","labels":{"app":"nodejs-mongo-persistent","buildconfig":"nodejs-mongo-persistent","openshift.io/build-config.name":"nodejs-mongo-persistent","openshift.io/build.start-policy":"Serial","template":"nodejs-mongo-persistent"},"annotations":{"openshift.io/build-config.name":"nodejs-mongo-persistent","openshift.io/build.number":"1"},"ownerReferences":[{"apiVersion":"build.openshift.io/v1","kind":"BuildConfig","name":"nodejs-mongo-persistent","uid":"d4695615-40e8-11e8-a010-02d8407159d1","controller":true}]},"spec":{"serviceAccount":"builder","source":{"type":"Git","git":{"uri":"https://github.com/syl20lego/nodejs-ex"}},"strategy":{"type":"Source","sourceStrategy":{"from":{"kind":"DockerImage","name":"registry.access.redhat.com/rhscl/nodejs-6-rhel7@sha256:739c2663e323dc717f5d1e5f29f2301a3be608c1cf2a19842178b2c6d3de0231"},"env":[{"name":"NPM_MIRROR"}],"forcePull":true}},"output":{"to":{"kind":"DockerImage","name":"docker-registry.default.svc:5000/tlaloc/nodejs-mongo-persistent:latest"},"pushSecret":{"name":"builder-dockercfg-mx2tp"}},"resources":{},"postCommit":{"script":"npm test"},"nodeSelector":null,"triggeredBy":[{"message":"Image change","imageChangeBuild":{"imageID":"registry.access.redhat.com/rhscl/nodejs-6-rhel7@sha256:739c2663e323dc717f5d1e5f29f2301a3be608c1cf2a19842178b2c6d3de0231","fromRef":{"kind":"ImageStreamTag","namespace":"openshift","name":"nodejs:6"}}}]},"status":{"phase":"New","outputDockerImageReference":"docker-registry.default.svc:5000/tlaloc/nodejs-mongo-persistent:latest","config":{"kind":"BuildConfig","namespace":"tlaloc","name":"nodejs-mongo-persistent"},"output":{}}}
SOURCE_REPOSITORY: https://github.com/syl20lego/nodejs-ex
SOURCE_URI: https://github.com/syl20lego/nodejs-ex
ORIGIN_VERSION: v3.9.14
ALLOWED_UIDS: 1-
DROP_CAPS: KILL,MKNOD,SETGID,SETUID
Mounts:
/tmp/build from buildworkdir (rw)
/var/run/secrets/kubernetes.io/serviceaccount from builder-token-n88rq (ro)
Containers:
sti-build:
Container ID: docker://28c75f8c3a8e5f49b4c5cc24069ce077569927ae093a895752fd7cebbb918869
Image: registry.reg-aws.openshift.com:443/openshift3/ose-sti-builder:v3.9.14
Image ID: docker-pullable://registry.reg-aws.openshift.com:443/openshift3/ose-sti-builder@sha256:e8ca49689b4ddf2775bf65c63e9b5c764731c3feca1e246942ff8cc68074e37f
Port: <none>
Command:
openshift-sti-build
Args:
--loglevel=0
State: Terminated
Reason: Completed
Exit Code: 0
Started: Sun, 15 Apr 2018 16:09:11 -0400
Finished: Sun, 15 Apr 2018 16:10:17 -0400
Ready: False
Restart Count: 0
Limits:
cpu: 1
memory: 512Mi
Requests:
cpu: 50m
memory: 256Mi
Environment:
BUILD: {"kind":"Build","apiVersion":"v1","metadata":{"name":"nodejs-mongo-persistent-1","namespace":"tlaloc","selfLink":"/apis/build.openshift.io/v1/namespaces/tlaloc/builds/nodejs-mongo-persistent-1","uid":"d47d2052-40e8-11e8-98a3-02ec8e61afcf","resourceVersion":"517479372","creationTimestamp":"2018-04-15T20:08:57Z","labels":{"app":"nodejs-mongo-persistent","buildconfig":"nodejs-mongo-persistent","openshift.io/build-config.name":"nodejs-mongo-persistent","openshift.io/build.start-policy":"Serial","template":"nodejs-mongo-persistent"},"annotations":{"openshift.io/build-config.name":"nodejs-mongo-persistent","openshift.io/build.number":"1"},"ownerReferences":[{"apiVersion":"build.openshift.io/v1","kind":"BuildConfig","name":"nodejs-mongo-persistent","uid":"d4695615-40e8-11e8-a010-02d8407159d1","controller":true}]},"spec":{"serviceAccount":"builder","source":{"type":"Git","git":{"uri":"https://github.com/syl20lego/nodejs-ex"}},"strategy":{"type":"Source","sourceStrategy":{"from":{"kind":"DockerImage","name":"registry.access.redhat.com/rhscl/nodejs-6-rhel7@sha256:739c2663e323dc717f5d1e5f29f2301a3be608c1cf2a19842178b2c6d3de0231"},"env":[{"name":"NPM_MIRROR"}],"forcePull":true}},"output":{"to":{"kind":"DockerImage","name":"docker-registry.default.svc:5000/tlaloc/nodejs-mongo-persistent:latest"},"pushSecret":{"name":"builder-dockercfg-mx2tp"}},"resources":{},"postCommit":{"script":"npm test"},"nodeSelector":null,"triggeredBy":[{"message":"Image change","imageChangeBuild":{"imageID":"registry.access.redhat.com/rhscl/nodejs-6-rhel7@sha256:739c2663e323dc717f5d1e5f29f2301a3be608c1cf2a19842178b2c6d3de0231","fromRef":{"kind":"ImageStreamTag","namespace":"openshift","name":"nodejs:6"}}}]},"status":{"phase":"New","outputDockerImageReference":"docker-registry.default.svc:5000/tlaloc/nodejs-mongo-persistent:latest","config":{"kind":"BuildConfig","namespace":"tlaloc","name":"nodejs-mongo-persistent"},"output":{}}}
SOURCE_REPOSITORY: https://github.com/syl20lego/nodejs-ex
SOURCE_URI: https://github.com/syl20lego/nodejs-ex
ORIGIN_VERSION: v3.9.14
ALLOWED_UIDS: 1-
DROP_CAPS: KILL,MKNOD,SETGID,SETUID
PUSH_DOCKERCFG_PATH: /var/run/secrets/openshift.io/push
Mounts:
/tmp/build from buildworkdir (rw)
/var/run/crio/crio.sock from crio-socket (rw)
/var/run/docker.sock from docker-socket (rw)
/var/run/secrets/kubernetes.io/serviceaccount from builder-token-n88rq (ro)
/var/run/secrets/openshift.io/push from builder-dockercfg-mx2tp-push (ro)
Conditions:
Type Status
Initialized True
Ready False
PodScheduled True
Volumes:
buildworkdir:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
docker-socket:
Type: HostPath (bare host directory volume)
Path: /var/run/docker.sock
HostPathType:
crio-socket:
Type: HostPath (bare host directory volume)
Path: /var/run/crio/crio.sock
HostPathType:
builder-dockercfg-mx2tp-push:
Type: Secret (a volume populated by a Secret)
SecretName: builder-dockercfg-mx2tp
Optional: false
builder-token-n88rq:
Type: Secret (a volume populated by a Secret)
SecretName: builder-token-n88rq
Optional: false
QoS Class: Burstable
Node-Selectors: type=compute
Tolerations: node.kubernetes.io/memory-pressure:NoSchedule
Events: <none>
Name: nodejs-mongo-persistent-1-w4lh5
Namespace: tlaloc
Node: ip-172-31-20-146.ca-central-1.compute.internal/172.31.20.146
Start Time: Sun, 15 Apr 2018 16:10:22 -0400
Labels: deployment=nodejs-mongo-persistent-1
deploymentconfig=nodejs-mongo-persistent
name=nodejs-mongo-persistent
Annotations: kubernetes.io/limit-ranger=LimitRanger plugin set: cpu request for container nodejs-mongo-persistent; cpu limit for container nodejs-mongo-persistent
openshift.io/deployment-config.latest-version=1
openshift.io/deployment-config.name=nodejs-mongo-persistent
openshift.io/deployment.name=nodejs-mongo-persistent-1
openshift.io/scc=restricted
Status: Running
IP: 10.129.21.51
Controlled By: ReplicationController/nodejs-mongo-persistent-1
Containers:
nodejs-mongo-persistent:
Container ID: docker://f82c710c8279557b8a63c88c7fba1b41be656a2003461e46c04925fa88c17e25
Image: docker-registry.default.svc:5000/tlaloc/nodejs-mongo-persistent@sha256:5c47c133650aaa0d1600bd967018dbd5de82753d9f0d23eddbc85b267c663cfa
Image ID: docker-pullable://docker-registry.default.svc:5000/tlaloc/nodejs-mongo-persistent@sha256:5c47c133650aaa0d1600bd967018dbd5de82753d9f0d23eddbc85b267c663cfa
Port: 8080/TCP
State: Running
Started: Sun, 15 Apr 2018 16:10:28 -0400
Ready: True
Restart Count: 0
Limits:
cpu: 1
memory: 512Mi
Requests:
cpu: 50m
memory: 256Mi
Liveness: http-get http://:8080/pagecount delay=30s timeout=3s period=10s #success=1 #failure=3
Readiness: http-get http://:8080/pagecount delay=3s timeout=3s period=10s #success=1 #failure=3
Environment:
DATABASE_SERVICE_NAME: mongodb
MONGODB_USER: <set to the key 'database-user' in secret 'nodejs-mongo-persistent'> Optional: false
MONGODB_PASSWORD: <set to the key 'database-password' in secret 'nodejs-mongo-persistent'> Optional: false
MONGODB_DATABASE: sampledb
MONGODB_ADMIN_PASSWORD: <set to the key 'database-admin-password' in secret 'nodejs-mongo-persistent'> Optional: false
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-zfl6x (ro)
Conditions:
Type Status
Initialized True
Ready True
PodScheduled True
Volumes:
default-token-zfl6x:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-zfl6x
Optional: false
QoS Class: Burstable
Node-Selectors: type=compute
Tolerations: node.kubernetes.io/memory-pressure:NoSchedule
Events: <none>