Oc set: Difference between revisions
Jump to navigation
Jump to search
(→volume) |
|||
Line 28: | Line 28: | ||
=volumes= | =volumes= | ||
The command queries or updates volumes on a pod template. | |||
oc set volume <''resource-type''>/<''resource-name''> <--add|--remove|--list> [options] | |||
=probe= | =probe= |
Revision as of 04:37, 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]
probe
deployment-hook
image
build-secret
oc set build-secret --source bc/<build-configuration-name'> somesecret