Prerequisites to install Operator online

Install a client binary command-line tool and Operator SDK before you install the Operator.

Procedure

  • Installing client binary command-line tools
    1. Install the oc or kubectl tool, based on the following scenarios.
      • If you are connected to a Red Hat® OpenShift® Container Platform cluster, install the oc command-line tool. For more information, see Installing the OpenShift CLI by downloading the binary.
      • If you are connected to a non-OpenShift Kubernetes cluster, install the kubectl command-line tool. For more information, see kubectl.
      Note: oc commands are interchangeable with kubect. Hence, if you are connected to a non-OpenShift Kubernetes cluster, ensure to replace the oc commands with kubectl counterparts.
  • Installing Operator SDK command-line tool

    Install the Operator SDK command-line tool only if you are installing the Operator on a non-OpenShift Kubernetes cluster.

    Important:
    • Ensure that you have administrator authority or have been granted the appropriate role-based access control (RBAC) to administer the cluster before installing the Operator Lifecycle Manager (OLM). For more information, see role-based access control good practices.
    • The OLM is not included in the out-of-the-box offering. For inquiries about OLM, you must contact the OLM product team.
    • In the following steps, to install Operator SDK and OLM on a Kubernetes platform, you will be navigated to the respective websites outside of IBM®. For more information, see Operator Lifecycle Manger.
    1. Install the Operator SDK. For more information, see Install the Operator SDK.
    2. Ensure that you are logged in to your Kubernetes environment.
    3. Run the following command to install OLM in your cluster:
      operator-sdk olm install