OpenShift: Operational Cheat Sheet

# Retrieve the logs for a resource (build configurations, deployment configurations, and pods)

oc logs

# Remote shell into a container

oc rsh

# Copy files to or from a container

oc rsync

# Execute a command in a container

oc exec

# Create a deployment configuration from image

oc run

# Scale resources to zero replicas

oc idle

# Display an introduction to some core OpenShift concepts

oc types

# Log in to the OpenShift server

oc login

# End the current session

oc logout

# Create a new project

oc new-project <project_name>

# Show an overview of the current project

oc status

Leave a Reply

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