13.2. Generating a Kubernetes YAML file in OpenShift environment
In the OpenShift environment, use the oc create command to generate the YAML files describing your application.
Procedure
Generate the YAML file for your
myappapplication:$ oc create myapp --image=me/myapp:v1 -o yaml --dry-run > myapp.yamlThe
oc createcommand creates and run themyappimage. The object is printed using the--dry-runoption and redirected into themyapp.yamloutput file.
참고
In the Kubernetes environment, you can use the kubectl create command with the same flags.