Oc set: Difference between revisions
Jump to navigation
Jump to search
(→env) |
(→env) |
||
Line 10: | Line 10: | ||
Sets [[OpenShift_Concepts#Environment_Variables|environment variables]] in deployment configurations, build configurations, etc. | Sets [[OpenShift_Concepts#Environment_Variables|environment variables]] in deployment configurations, build configurations, etc. | ||
List: | |||
oc set env <''object''> --list | |||
Set: | |||
oc set env <''object''> KEY_1=VAL_1 ... | oc set env <''object''> KEY_1=VAL_1 ... |
Revision as of 23:10, 22 November 2017
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