OpenShift: Additional Resource Cheat Sheet

# Update fields for a resource with JSON or YAML segments

oc patch

# Get configmaps or secrets and save to disk

oc extract

# Modify miscellaneous application resources

oc set

# Add a readiness/liveness probe on pod template/deployment configuration

oc set probe

# Manage volume types on a pod template/deployment configuration

oc set volumes

# Set a script/command to execute as part of the build process

oc set build-hook

# Set a secret to be included as part of the build process

oc set build-secret

# Set environment variables on a pod template/deployment
configuration/build configuration

oc set env

# Update the image for deployment configurations/ daemonsets

oc set image

# Set triggers for deployment configurations/build configurations

oc set triggers

Leave a Reply

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