Install the OpenShift command line interface (CLI)
Procedure
- Create an /ocp-tools directory on the bastion
server:
mkdir /ocp-tools
- 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
- 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