OpenShift: Resource management Cheat Sheet

# Create a new application from source code, container
image, or OpenShift template

oc new-app

# Create a new build configuration from source code

oc new-build

# Add/update/remove annotations from an Openshift resource

oc annotate

# Create a new resource from filename or stdin

oc create

# Retrieve a resource (use -o for additional output options)

oc get

# Replace an existing resource from filename or stdin

oc replace

# Delete a resource

oc delete

# Modify a resource from text editor

oc edit

# Retrieve a resource with details

oc describe

Leave a Reply

Your email address will not be published. Required fields are marked *