Install the OpenShift command line interface (CLI)

Procedure

  1. Create an /ocp-tools directory on the bastion server:
    mkdir /ocp-tools
  2. Download the OpenShift Container Platform client and installation utilities specific for your bastion operating system
    wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-4.6/openshift-client-linux.tar.gz -P /ocp-tools
    wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-4.6/openshift-install-linux.tar.gz -P /ocp-tools
  3. Issue these commands:
    ls -la /ocp-tools
    cd /ocp-tools
    chmod 777 *
    tar xvf openshift-install-linux.tar.gz openshift-install
    tar xvf openshift-client-linux.tar.gz oc kubectl
    cp oc kubectl /usr/local/bin
    
    oc version
    kubectl version
    /ocp-tools/openshift-install version