Lab 1. Set up and deploy your first application
1. Deploy the guestbook application
oc new-project my-guestbookoc create deployment guestbook --image=ibmcom/guestbook:v1oc get pods$ oc get pods NAME READY STATUS RESTARTS AGE guestbook-59bd679fdc-bxdg7 1/1 Running 0 1moc expose deployment guestbook --type="NodePort" --port=3000$ oc get service guestbook NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE guestbook NodePort 10.10.10.253 <none> 3000:31208/TCP 1m$ oc get nodes -o wide NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME 10.189.80.112 Ready master,worker 10d v1.16.2+283af84 10.189.80.112 169.60.111.167 Red Hat 3.10.0-1127.13.1.el7.x86_64 cri-o://1.16.6-17.rhaos4.3.git4936f44.el7 10.189.80.113 Ready master,worker 10d v1.16.2+283af84 10.189.80.113 169.60.111.164 Red Hat 3.10.0-1127.13.1.el7.x86_64 cri-o://1.16.6-17.rhaos4.3.git4936f44.el7
Last updated
Was this helpful?