Skip to content

Run in OpenShift

Vincent Emonet edited this page Aug 9, 2019 · 3 revisions

Install

wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz

tar xvf openshift-origin-client-tools*.tar.gz
cd openshift-origin-client*/
sudo mv oc kubectl /usr/local/bin/

Login

Login to the cluster using the OpenShift client

oc login https://openshift_cluster:8443 --token=MY_TOKEN

Get the command with the token from the Copy Login Command button in the user details at the top right of the OpenShift webpage.

Run

Additional notes

Allow use of Insecure Docker registry.

cat << EOF | sudo tee /etc/docker/daemon.json 
 {
     "insecure-registries" : [ "172.30.0.0/16" ]
 }
EOF