OpenShift Version 3.9

Step 1 of 7

Before anything else we're going to rebuild the existing cluster.

Starting clean

oc cluster status

You can see that a cluster is already running.

Trying to use this cluster has been a real pain for me...

Instead of paining we're going to provision a new cluster.

oc cluster down

VOLUMES=($(mount | grep /katacoda/volumes | awk '{ print $3 }'))

for volume in "${VOLUMES[@]}" do umount ${volume} done

rm --recursive --force /katacoda/config/* /katacoda/data/* /katacoda/pv/* /katacoda/volumes/*

oc cluster up --host-data-dir=/katacoda/data --host-config-dir=/katacoda/config --host-pv-dir=/katacoda/pv --host-volumes-dir=/katacoda/volumes --use-existing-config

oc config use-context default/127-0-0-1:8443/system:admin

cp /katacoda/config/master/ca-bundle.crt /etc/pki/ca-trust/source/anchors/

update-ca-trust extract