Skip to Content
Learn OpenShift
book

Learn OpenShift

by Denis Zuev, Artemii Kropachev, Aleksey Usov
July 2018
Intermediate to advanced
504 pages
11h 34m
English
Packt Publishing
Content preview from Learn OpenShift

Processing a template

The following is a real-life example of deploying an application from a predefined template using oc new-app command:

# oc new-app jenkins-persistent -p JENKINS_SERVICE_NAME=myjenkins--> Deploying template "openshift/jenkins-persistent" to project myproject...<output omitted>...--> Creating resources ...    route "myjenkins" created    deploymentconfig "myjenkins" created    serviceaccount "myjenkins" created    rolebinding "myjenkins_edit" created    service "jenkins-jnlp" created    service "myjenkins" created--> Success...<output omitted>...    Access your application via route 'myjenkins-myproject.127.0.0.1.nip.io'    Run 'oc status' to view your app

In the preceding example, we passed the template's name to the command as a parameter; ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Operating OpenShift

Operating OpenShift

Rick Rackow, Manuel Dewald
OpenShift for Developers, 2nd Edition

OpenShift for Developers, 2nd Edition

Joshua Wood, Brian Tannous
Kubernetes: Up and Running, 2nd Edition

Kubernetes: Up and Running, 2nd Edition

Brendan Burns, Joe Beda, Kelsey Hightower

Publisher Resources

ISBN: 9781788992329Supplemental Content