OpenShift: Build and Deploy Cheat Sheet

# Manage deployments from deployment configuration

oc rollout

# Start a new deployment with the latest state

oc rollout latest

# Perform a rollback operation

oc rollout undo

# View historical information for a deployment configuration

oc rollout history

# Watch the status of a rollout until complete

oc rollout status

# Tag existing images into image streams

oc tag

# Start a new build from a build configuration

oc start-build

# Cancel a build in progress

oc cancel-build

# Pull in images and tags from an external Docker registry

oc import-image

# Change the number of pod replicas for a deployment

oc scale

Leave a Reply

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