- Use the Openshift Client to connect to instances
oc login -u $USERNAME -p $PASSWORD
- Can also use the REST Api
- Needs a bearer token, login with
oc login
then runoc whoami -t
to get the token
- Needs a bearer token, login with
TOKEN=`oc whoami -t`
curl --insecure -H "Authorization: Bearer $TOKEN" https://$TARGET:8443/oapi/v1