Oc: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 21: Line 21:


<tt>-o json</tt> or <tt>-o yaml</tt> creates an output of the requested action in the desired format rather than actually executing the command.
<tt>-o json</tt> or <tt>-o yaml</tt> creates an output of the requested action in the desired format rather than actually executing the command.
=Logging and Debugging=
oc ... --loglevel=8
This log level shows the API requests made with each command.
=Commands=
=Commands=



Revision as of 02:50, 6 July 2017

External

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

-o json or -o yaml creates an output of the requested action in the desired format rather than actually executing the command.

Logging and Debugging

oc ... --loglevel=8

This log level shows the API requests made with each command.

Commands