Sunday, December 16, 2018

Creating new objects from existing objects in OpenShift


---------
To create a new object from a existing object make use of
# oc get --export    -o yaml 

you can create new template out of this and can be used to create new objects.


Using "export " removes unnecessary info. from the template.

---------

To simply view a resource you can use

# oc get -o yaml

---------

No comments:

Post a Comment