cancel
Showing results for 
Search instead for 
Did you mean: 
RK_JHA
Cadet
Cadet
  • 6,704 Views

Openshift oc-create vs oc-new-app vs oc-process

Hi Folks,

Want to understand the basic difference between commands

oc create

oc new-app

oc process

 

Also in which scenario which command i should use.

 

Regards,

Rajneesh

Labels (1)
Tags (1)
0 Kudos
2 Replies
joseph_joy
Mission Specialist
Mission Specialist
  • 6,686 Views

 

oc create - creating resoruce suche secrets, quotas...etc

oc  new-app  - deploying a application in a project from a template, github  etc..

oc process - Process a template into list of resources

also please check openshift  CLI reference  for more options and usage syntax
https://docs.openshift.com/container-platform/4.8/cli_reference/openshift_cli/developer-cli-commands.html
https://manned.org/oc-process/79e1edf4

 

JustinP
Flight Engineer
Flight Engineer
  • 6,668 Views

+1

To the OP:

append '-o yaml' to any of those commands to see what k8s objects they generate.  You'll notice new-app generates multiple objects (ex: grep the YAML output for "kind: ")

--
Sr. Solution Architect
0 Kudos
Join the discussion
You must log in to join this conversation.