Skip to content

Commit bbdc0a6

Browse files
committed
chore(gke): install and dns instructions for gke
1 parent 0e8780f commit bbdc0a6

2 files changed

Lines changed: 65 additions & 5 deletions

File tree

src/quickstart/provider/gke/dns.md

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
1-
$ kubectl --namespace=deis describe svc deis-router | grep LoadBalancer
1+
## Find Your Load Balancer Address
22

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.
47

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).

src/quickstart/provider/gke/install-gke.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Installing Deis Workflow
1+
# Install Deis Workflow on Google Compute Engine
22

33
## Check Your Setup
44

@@ -67,6 +67,24 @@ If you would like `kubectl` to automatically update as the pod states change, ru
6767
$ kubectl get pods --namespace=deis -w
6868
```
6969

70+
Depending on the order in which the Workflow components start, you may see a few components restart. This is common during the installation process, if a component's dependencies are not yet available the component will exit and Kubernetes will automatically restart the containers.
71+
72+
Here, you can see that controller, builder and registry all took a few loops before there were able to star:
73+
```
74+
workflow [refactor-docs*]$ kubectl get pods --namespace=deis
75+
NAME READY STATUS RESTARTS AGE
76+
deis-builder-miekp 1/1 Running 1 2m
77+
deis-controller-egu7x 1/1 Running 3 2m
78+
deis-database-ok3ev 1/1 Running 0 2m
79+
deis-logger-fluentd-d5cb9 1/1 Running 0 2m
80+
deis-logger-fluentd-u6azj 1/1 Running 0 2m
81+
deis-logger-rf3z9 1/1 Running 0 2m
82+
deis-minio-sdfyz 1/1 Running 0 2m
83+
deis-registry-f534k 1/1 Running 4 2m
84+
deis-router-t3qb2 1/1 Running 0 2m
85+
deis-workflow-manager-kbpw3 1/1 Running 0 2m
86+
```
87+
7088
Once you see all of the pods in the `READY` state, Deis Workflow is up and running!
7189

72-
Next, [configure dns](dns) so you can register your first user.
90+
Next, [configure dns](dns.md) so you can register your first user and deploy an application.

0 commit comments

Comments
 (0)