July 2018
Intermediate to advanced
504 pages
11h 34m
English
Existing OpenShift resources may be exported as templates by using the oc export command. Let's create a running application using oc new-app command first.
$ oc new-app httpd--> Found image 9fd201d (10 days old) in image stream "openshift/httpd" under tag "2.4" for "httpd"...<output omitted>...--> Success Application is not exposed. You can expose services to the outside world by executing one or more of the commands below: 'oc expose svc/httpd' Run 'oc status' to view your app.$ oc get allNAME READY STATUS RESTARTS AGEhttpd-1-dcm2d 1/1 Running 0 2shttpd-1-deploy 1/1 Running 0 3s[root@openshift ~]# oc get allNAME REVISION DESIRED CURRENT TRIGGERED BYdeploymentconfigs/httpd 1 1 1 config,image(httpd:2.4) ...
Read now
Unlock full access