Difference between revisions of "Openshift"
From John Freier
Line 1: | Line 1: | ||
RedHat OpenShift | RedHat OpenShift | ||
+ | |||
+ | |||
+ | |||
+ | == OpenShift CLI - OC == | ||
+ | |||
+ | Switch Projects. | ||
+ | oc project ${project_name} | ||
This will process a Kubernetes template with a param file. | This will process a Kubernetes template with a param file. |
Revision as of 13:31, 4 April 2022
RedHat OpenShift
OpenShift CLI - OC
Switch Projects.
oc project ${project_name}
This will process a Kubernetes template with a param file.
oc process -f templates/template.yaml --param-file=parameters/dev.yaml --ignore-unknown-parameters=true | oc apply -f-
After applying a deployment you need to restart the OpenShift containers.
oc rollout resume deployment/${deployment_name}