2.1.1. Windows
Installation for Windows
The straight-forward way to installing oc
on your system is to install by downloading the binary.
This is what we are going to do step by step:
First, download
oc
. The following URL directly points to the latest stableoc
version:https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-windows.zip
Unzip the downloaded archive with a ZIP program.
Move the
oc
binary to a directory that is on yourPATH
.
Note
To check your PATH
, open the command prompt and execute the following command:
C:\> path
If you have previously accessed a Kubernetes cluster you have to rename your
.kube
directory.Check if you have a directory
%HOMEPATH%\.kube
and rename it to something like%HOMEPATH%\.kube_backup
. You can undo this after the training.Now, head over to the 2.2. Console login page.