|
1 | | - $ kubectl --namespace=deis describe svc deis-router | grep LoadBalancer |
| 1 | +## Find Your Load Balancer Address |
2 | 2 |
|
3 | | -should exit this doc with `DEIS_HOSTNAME` set |
| 3 | +On Google Container Engine, Deis Workflow will automatically provision and |
| 4 | +attach a Google Cloud Loadbalancer to the router copmonent. This component is |
| 5 | +responsible for routing HTTP and HTTPS requests from the public internet to |
| 6 | +applications that are deployed and managed by Deis Workflow. |
4 | 7 |
|
5 | | -[next: deploy your first app](../../deploy-an-app.md) |
| 8 | +By describing the `deis-router` service, you can see what IP address has been |
| 9 | +allocated by Google Cloud for your Deis Workflow cluster: |
| 10 | + |
| 11 | +``` |
| 12 | +$ kubectl --namespace=deis describe svc deis-router | grep LoadBalancer |
| 13 | +Type: LoadBalancer |
| 14 | +LoadBalancer Ingress: 104.197.125.75 |
| 15 | +``` |
| 16 | + |
| 17 | +## Prepare the Hostname |
| 18 | + |
| 19 | +Now that you have the ip address of your load balancer we can use the `nip.io` |
| 20 | +DNS service to route arbitrary hostnames to the Deis Workflow edge router. This |
| 21 | +lets us point the Workflow CLI at your cluster without having to either use |
| 22 | +your own domain or update DNS! |
| 23 | + |
| 24 | +To verify the Workflow API server and nip.io, construct your hostname by taking |
| 25 | +the ip address for your load balancer and adding `nip.io`. For our example |
| 26 | +above, the address would be: `104.197.125.75.nip.io`. |
| 27 | + |
| 28 | +Nip answers with the ip address no matter the hostname: |
| 29 | +``` |
| 30 | +$ host 104.197.125.75.nip.io |
| 31 | +104.197.125.75.nip.io has address 104.197.125.75 |
| 32 | +$ host something-random.104.197.125.75.nip.io |
| 33 | +something-random.104.197.125.75.nip.io has address 104.197.125.75 |
| 34 | +``` |
| 35 | + |
| 36 | +By default, any HTTP traffic for the hostname `deis` will be sent to the Workflow API service. To test that everything is connected properly you may validate connectivity using `curl`: |
| 37 | + |
| 38 | +``` |
| 39 | +$ curl http://deis.104.197.125.75.nip.io/v2/ && echo |
| 40 | +{"detail":"Authentication credentials were not provided."} |
| 41 | +``` |
| 42 | + |
| 43 | +You should see a failed request because we provided no credentials to the API server. |
| 44 | + |
| 45 | +Remember the hostname, we will use it in the next step. |
| 46 | + |
| 47 | +You are now ready to [register an admin user and deploy your first app](../../deploy-an-app.md). |
0 commit comments