get |
oc get <object_type> [<object_name_or_id>]
|
|
describe |
oc describe <object_type>
|
Returns information about the specific object returned by the query |
edit |
oc edit <object_type>/<object_type_name>
|
Edit the desired object type |
edit |
OC_EDITOR="<text_editor>" oc edit \ <object_type>/<object_type_name>
|
Edit the desired object type with a specified text editor |
edit |
oc edit <object_type>/<object_type_name> \ --output-version=<object_type_version> \ -o <object_type_format>
|
Edit the desired object in a specified format (e.g: JSON) |
env |
oc env <object_type>/<object_type_name> \ <EN_VAR>=/<VALUE>
|
Update the desired object type with a new environment variable |
volume |
oc volume <object_type>/<object_type_name> \ [--option]
|
Modify a volume |
label |
oc label <object_type> <obejct_name_or_id> \ <label>
|
Update the labels on an object |
expose |
oc expose <object_type> <object_name_or_id>
|
Look up a service and expose it as a route |
stop |
oc stop -f <file_path>
|
Gracefully shut down an object by ID or file name. |
stop |
oc stop <object_type> <object_name_or_id>
|
Gracefully shut down an object with the specified ID |
stop |
oc stop <object_type> -l <label>
|
Gracefully shit down an object with the specified label |
stop |
|
Gracefully shut down all objects with the specified label |
delete |
oc delete -f <file_path>
|
Delete the specified object |
delete |
oc delete <object_type> <object_name_or_id>
|
Delete the specified object |
delete |
oc delete <object_type> -l <label>
|
Delete the object matching the specified label |
delete |
oc delete all -l <label>
|
Delete all object matching the specified label |