Installing the command-line tools to manage resources in your cluster

If you want to be able to use the command-line interface (CLI) to manage IBM® App Connect resources that are deployed in your cluster, install the CLI tools that you can use to access and manage the cluster, containers, infrastructures, services, and other resources.

About this task

As a one-time task, install these CLI tools locally if you don’t already have them installed.

  • OpenShift® Container Platform CLI (oc): If using Red Hat® OpenShift, you can use this CLI to log in to your cluster, and to run commands to manage the resources (such as projects, pods, and deployments) in the cluster.
    Note: If using a Kubernetes environment, you'll require the command-line interface (CLI) tool for logging in to your cluster; for example, Azure CLI (az) if using an Azure Kubernetes Service (AKS) cluster.
  • Kubernetes CLI (kubectl): You can use this CLI to run commands against your cluster. To learn about the kubectl commands, see Overview of kubectl in the Kubernetes documentation.
    Note: The oc CLI provides similar capabilities as kubectl, in addition to native OpenShift Container Platform support. If you are using a Kubernetes environment, you can substitute oc with kubectl in the instructions where appropriate.

Procedure

To install the CLI tools, complete the following steps:

  1. Download and install the OpenShift Container Platform CLI, as described in Getting started with the OpenShift CLI in the Red Hat OpenShift documentation. Ensure that you are using the version of oc that's provided for the Red Hat OpenShift version on which the IBM App Connect Operator is running.
  2. Download and install the Kubernetes CLI, as described in Install and Set Up kubectl in the Kubernetes documentation.

What to do next

Now that the CLIs are installed, you can log in to your cluster at any time to run oc and kubectl commands.