Oc
Jump to navigation
Jump to search
External
- https://docs.openshift.com/container-platform/latest/cli_reference/basic_cli_operations.html
- https://docs.openshift.com/container-platform/latest/cli_reference/admin_cli_operations.html
Internal
Overview
oc is the OpenShift remote client that talks with the master API server.
Installation
RHEL: oc can be installed with the atomic-openshift-clients package.
Mac: Download from https://access.redhat.com/downloads/content/290, choose "OpenShift v3.5 MacOSX Client". Then extract the content and place "oc" in PATH.
Output
oc ... -o json
creates a JSON output of the requested action, rather than executing the command.
oc ... -o yaml
creates a YAML output of the requested action, rather than executing the command.
Logging and Debugging
oc ... --loglevel=8
This log level shows the API requests made with each command.