Add instructions for `oc cluster up` on EC2
When running on EC2 it is crucial to pass in the correct public hostname
and IPv4 so the cluster is functional and you can reach it from your
local host.
@@ -86,6 +86,14 @@ a URL to access the management console for your cluster.
$ oc cluster up
```
+If you are running `oc cluster up` on a virtual machine in Amazon AWS EC2, you should pass the public hostname and IP address to ensure that the cluster is reachable from your local host. You can retrieve this information from the [internal meta-data endpoints](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-retrieval):
+```
+$ metadata_endpoint="http://169.254.169.254/latest/meta-data"
+$ public_hostname="$( curl "${metadata_endpoint}/public-hostname" )"
+$ public_ip="$( curl "${metadata_endpoint}/public-ipv4" )"
+$ oc cluster up --public-hostname="${public_hostname}" --routing-suffix="${public_ip}.nip.io"
+```
+
To stop your cluster, run:
```
$ oc cluster down
