title: oc cluster up and public-hostname
body: <p>I have Docker and OpenShift client installed on Ubuntu 16.04.3 LTS </p>
  
  <pre><code>[vagrant@desktop:~] $ docker --version
  Docker version 18.01.0-ce, build 03596f5
  [vagrant@desktop:~] $ oc version
  oc v3.7.1+ab0f056
  kubernetes v1.7.6+a08f5eeb62
  features: Basic-Auth GSSAPI Kerberos SPNEGO
  
  Server https://127.0.0.1:8443
  openshift v3.7.1+282e43f-42
  kubernetes v1.7.6+a08f5eeb62
  [vagrant@desktop:~] $ 
  </code></pre>
  
  <p>Notice server URL <a href="https://127.0.0.1:8443" rel="nofollow noreferrer">https://127.0.0.1:8443</a>. </p>
  
  <p>I can start a cluster using <code>oc cluster up</code> </p>
  
  <pre><code>vagrant@desktop:~] $ oc cluster up --public-hostname='ocp.devops.ok' --host-data-dir='/var/lib/origin/etcd' --use-existing-config --routing-suffix='cloudapps.lab.example.com'
  Starting OpenShift using openshift/origin:v3.7.1 ...
  OpenShift server started.
  
  The server is accessible via web console at:
      https://ocp.devops.ok:8443
  </code></pre>
  
  <p>I can access the server using <a href="https://ocp.devops.ok:8443" rel="nofollow noreferrer">https://ocp.devops.ok:8443</a> but then the OCP will redirect to <a href="https://127.0.0.1:8443" rel="nofollow noreferrer">https://127.0.0.1:8443</a>. So it redirect to kubernetes server URL I think.</p>
  
  <p>This raises the question about <code>public-hostname</code>. What does it do? It is not used by OpenShift I think because it redirects to Kubernetes server URL.</p>
  
  <p>How do I change this setting in Kubernetes?</p>