Suppose you have a folder with manifests - to import it use:
oc apply -f ./test
to import individual files:
oc apply -f ./test/sa.yaml
after running the apply command, OpenShift will create or update the resource in the cluster.oc get deploy first-app -o yaml > my-deployment.yaml
For exporting secrets and configmaps there is a special command called extract:
oc extract secret/deployer-token-xxxxx
it will extract each secret in separate file. You can extract to specific folder:
oc extract secret/deployer-token-xxxxx –to=./tmp
Once you have exported your resource configurations – you can modify them to suit your needs and re-apply them later