The purpose of this is to expose the console on different port than the default 8443. There are ways to expose the console natively from master on 443, but from what I understand there can be quite a number of tricky things that happen when it is manually altered, thus we are going to try and expose as an Endpoint.
-
OSE master ip address: <ose-master-ip>
-
OSE master hostname: <ose-master-hostname>
-
OSE console host domain: <new-ose-console-domain>
Note
|
The new console domain can be whatever you want on top of the subdomain. It just has to be routable to node hosting haproxy. |
$ oc create -f openshift/service.yaml
$ sed -i 's/<template-master-ip-address>/<ose-master-ip>/g' \
openshift/service.yaml
$ oc create -f openshift/endpoint.yaml
$ sed -i 's/<template-ose-console-domain>/<new-ose-console-domain>:443/g' \
openshift/route.yaml
$ oc create -f openshift/route.yaml
$ sed -i 's/https://<ose-master-hostname>:8443/<new-ose-console-domain>:443/g' \
/etc/origin/master/master-config.yaml
$ systemctl restart atomic-openshift-master