OpenShift v3 is based on Kubernetes, adding additional objects such as builds, routes and image streams.
- pods
- replication controllers (rc)
- services (svc)
- persistent volumes (pvc)
- labels
This command exports the common objects as a json template (could be yaml), piping the output to a file. The template file may be edited as necessary.
oc export pods,rc,svc,pvc,labels --as-template=<arbitrary_template_name> -o json > myapp.json
This command creates all of the objects on a kubernetes cluster.
kubectl create -f myapp.json
Images are typically stored in the integrated OpenShift registry. If these images are not accessible by the kubernetes cluster they may need to be pulled from the OpenShift registry and pushed to another registry.