July 2018
Intermediate to advanced
504 pages
11h 34m
English
By default, the oc new-app command creates all of the resources required for a project. You can modify this behavior and get the utility to create a resource definition file, instead of creating resources:
$ oc new-app httpd -o yaml | head -n 20apiVersion: v1items:- apiVersion: v1 kind: DeploymentConfig metadata: annotations: openshift.io/generated-by: OpenShiftNewApp creationTimestamp: null labels: app: httpd name: httpd spec: replicas: 1 selector: app: httpd deploymentconfig: httpd strategy: resources: {} template: metadata:
Clear out your your project environment, before we proceed.
# oc delete ...