Oc set: Difference between revisions
Jump to navigation
Jump to search
Line 33: | Line 33: | ||
oc set volume <''resource-type''>/<''resource-name''> <--add|--remove|--list> [options] | oc set volume <''resource-type''>/<''resource-name''> <--add|--remove|--list> [options] | ||
==List All Volumes Defined on All Deployment Configurations in the Current Project= | ==List All Volumes Defined on All Deployment Configurations in the Current Project== | ||
oc set volume dc --all | oc set volume dc --all |
Revision as of 04:39, 20 January 2018
Internal
Overview
The command changes existing application resources.
env
Sets environment variables in deployment configurations, build configurations, etc.
List:
oc set env <object> --list
Set:
oc set env <object> KEY_1=VAL_1 ...
Unset:
ec set env <object> KEY_1-
resources
oc set resources dc/jenkins --limits=memory=1Gi
volumes
The command queries or updates volumes on a pod template.
oc set volume <resource-type>/<resource-name> <--add|--remove|--list> [options]
List All Volumes Defined on All Deployment Configurations in the Current Project
oc set volume dc --all
probe
deployment-hook
image
build-secret
oc set build-secret --source bc/<build-configuration-name'> somesecret