OpenShift Operations In this scenario, we have been tasked with reconfiguring an internal-only OpenShift cluster to be accessible on the public internet. Since the cluster will be open to the outside world, it's been asked that
htpasswd authentication be enabled. The cluster owners have requested that a backup of the
master be created before any changes are made... just in case.
- Create a backup of
$ git clone https://github.com/openshift/openshift-ansible-contrib.git $ cd openshift-ansible-contrib/reference-architecture/day2ops/scripts/ $ bash backup_master_node.sh -h
master-config.ymlto set the
MasterPublicURLto the public IP for the instance.
- Change the cluster identityprovider from
- Update the "openshift_web_console"
oc get oauthclients
oc edit oauthclient openshift_web_console
- Restart the
origin-master-apiservices to propagate changes.
systemctl restart origin-master-controllers origin-master-api