Cluster CLI tools


In Kubernetes-based platforms, you declare the desired cluster state, and let the platform maintain that state. To support this declarative interaction, Kubernetes-based platforms define state using a set of objects, such as pods, services, and namespaces. You can manipulate these objects with api server calls.

CLI tools allow you communicate with the api server to deploy and manage objects, to talk to your cluster to acquire useful information, and to perform administration operations. For a CLI, OpenShift provides oc and Kubernetes provides kubectl.

Install oc or kubectl


The following steps summarize a way to get started quickly:

  1. Obtain a user name and password for the cluster.

  2. Using the URL for the cluster’s OpenShift GUI, log in.

  3. In the upper right, find the downward-pointing arrow next to the Help question mark.

  4. Click the arrow to open a menu and select the About entry.

  5. On the About page, click the Command Line Tools link.

  6. Click the link Latest Release to download oc.

  7. Follow the rest of the instructions on this page to install and configure oc.

    The detailed instructions for installing and using oc can be found at this OpenShift documentation.

    To follow the detailed instructions, make sure you select the correct version from the documentation toolbar.

To install kubectl, follow the instructions for your platform.