Skip to content

Commit a045639

Browse files
committed
Merge pull request #4029 from tscheepers/patch-1
fix(contrib/gce): updated GCE docs with new cloud dns config and commas
2 parents db4efa7 + c633c94 commit a045639

1 file changed

Lines changed: 61 additions & 74 deletions

File tree

docs/installing_deis/gce.rst

Lines changed: 61 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ Launch 3 instances. You can choose another starting CoreOS image from the listin
115115
gcloud compute instances create core${num} \
116116
--zone us-central1-c \
117117
--machine-type n1-standard-2 \
118-
--metadata-from-file user-data=gce-user-data sshKeys=~/.ssh/deis.pub \
119-
--disk name=cored${num} device-name=coredocker \
118+
--metadata-from-file user-data=gce-user-data,sshKeys=$HOME/.ssh/deis.pub \
119+
--disk name=cored${num},device-name=coredocker \
120120
--tags deis \
121121
--image coreos-stable-647-2-0-v20150528 \
122122
--image-project coreos-cloud;
@@ -142,7 +142,7 @@ We will need to load balance the Deis routers so we can get to Deis services (co
142142
143143
$ gcloud compute http-health-checks create basic-check --request-path /health-check
144144
$ gcloud compute target-pools create deis --health-check basic-check --session-affinity CLIENT_IP_PROTO --region us-central1
145-
$ gcloud compute target-pools add-instances deis --instances core1 core2 core3
145+
$ gcloud compute target-pools add-instances deis --instances core1,core2,core3
146146
$ gcloud compute forwarding-rules create deisapp --target-pool deis --region us-central1
147147
148148
NAME REGION IP_ADDRESS IP_PROTOCOL TARGET
@@ -152,7 +152,7 @@ Note the forwarding rule external IP address. We will use it as the Deis login e
152152

153153
.. code-block:: console
154154
155-
$ gcloud compute firewall-rules create deis-router --target-tags deis --allow tcp:80 tcp:443 tcp:2222
155+
$ gcloud compute firewall-rules create deis-router --target-tags deis --allow tcp:80,tcp:443,tcp:2222
156156
157157
158158
Configure DNS
@@ -163,7 +163,7 @@ be using the domain name `deisdemo.io`. Create the zone:
163163

164164
.. code-block:: console
165165
166-
$ gcloud dns managed-zone create --dns_name deisdemo.io. --description "Example Deis cluster domain name" deisdemoio
166+
$ gcloud dns managed-zones create --dns-name deisdemo.io. --description "Example Deis cluster domain name" deisdemoio
167167
Creating {'dnsName': 'deisdemo.io.', 'name': 'deisdemoio', 'description':
168168
'Example Deis cluster domain name'} in eco-theater-654
169169
@@ -184,85 +184,72 @@ be using the domain name `deisdemo.io`. Create the zone:
184184
]
185185
}
186186
187-
Note the `nameServers` array from the JSON output. We will need to setup our upstream domain name
187+
Note the `nameServers` array from the output. We will need to setup our upstream domain name
188188
servers to these.
189189

190190
Now edit the zone to add the Deis endpoint and wildcard DNS:
191191

192192
.. code-block:: console
193193
194-
$ gcloud dns records --zone deisdemoio edit
195-
{
196-
"additions": [
197-
{
198-
"kind": "dns#resourceRecordSet",
199-
"name": "deisdemo.io.",
200-
"rrdatas": [
201-
"ns-cloud-d1.googledomains.com. dns-admin.google.com. 2 21600 3600 1209600 300"
202-
],
203-
"ttl": 21600,
204-
"type": "SOA"
205-
}
206-
],
207-
"deletions": [
208-
{
209-
"kind": "dns#resourceRecordSet",
210-
"name": "deisdemo.io.",
211-
"rrdatas": [
212-
"ns-cloud-d1.googledomains.com. dns-admin.google.com. 1 21600 3600 1209600 300"
213-
],
214-
"ttl": 21600,
215-
"type": "SOA"
216-
}
217-
]
218-
}
194+
$ gcloud dns record-sets --zone deisdemoio transaction start
219195
220-
You will want to add two records as JSON objects. Here is an example edit for the two A record additions:
196+
This exports a `transaction.yaml` file.
221197

222198
.. code-block:: console
223199
224-
{
225-
"additions": [
226-
{
227-
"kind": "dns#resourceRecordSet",
228-
"name": "deisdemo.io.",
229-
"rrdatas": [
230-
"ns-cloud-d1.googledomains.com. dns-admin.google.com. 2 21600 3600 1209600 300"
231-
],
232-
"ttl": 21600,
233-
"type": "SOA"
234-
},
235-
{
236-
"kind": "dns#resourceRecordSet",
237-
"name": "deis.deisdemo.io.",
238-
"rrdatas": [
239-
"23.251.153.6"
240-
],
241-
"ttl": 21600,
242-
"type": "A"
243-
},
244-
{
245-
"kind": "dns#resourceRecordSet",
246-
"name": "*.dev.deisdemo.io.",
247-
"rrdatas": [
248-
"23.251.153.6"
249-
],
250-
"ttl": 21600,
251-
"type": "A"
252-
}
253-
],
254-
"deletions": [
255-
{
256-
"kind": "dns#resourceRecordSet",
257-
"name": "deisdemo.io.",
258-
"rrdatas": [
259-
"ns-cloud-d1.googledomains.com. dns-admin.google.com. 1 21600 3600 1209600 300"
260-
],
261-
"ttl": 21600,
262-
"type": "SOA"
263-
}
264-
]
265-
}
200+
---
201+
additions:
202+
- kind: dns#resourceRecordSet
203+
name: deisdemo.io.
204+
rrdatas:
205+
- ns-cloud1.googledomains.com. dns-admin.google.com. 1 21600 3600 1209600 300
206+
ttl: 21600
207+
type: SOA
208+
deletions:
209+
- kind: dns#resourceRecordSet
210+
name: deisdemo.io.
211+
rrdatas:
212+
- ns-cloud1.googledomains.com. dns-admin.google.com. 0 21600 3600 1209600 300
213+
ttl: 21600
214+
type: SOA
215+
216+
You will want to add two records as YAML objects. Here is an example edit for the two A record additions:
217+
218+
.. code-block:: console
219+
220+
---
221+
additions:
222+
- kind: dns#resourceRecordSet
223+
name: deisdemo.io.
224+
rrdatas:
225+
- ns-cloud1.googledomains.com. dns-admin.google.com. 1 21600 3600 1209600 300
226+
ttl: 21600
227+
type: SOA
228+
- kind: dns#resourceRecordSet
229+
name: deis.deisdemo.io.
230+
rrdatas:
231+
- 23.251.153.6
232+
ttl: 21600
233+
type: A
234+
- kind: dns#resourceRecordSet
235+
name: *.dev.deisdemo.io.
236+
rrdatas:
237+
- 23.251.153.6
238+
ttl: 21600
239+
type: A
240+
deletions:
241+
- kind: dns#resourceRecordSet
242+
name: deisdemo.io.
243+
rrdatas:
244+
- ns-cloud1.googledomains.com. dns-admin.google.com. 0 21600 3600 1209600 300
245+
ttl: 21600
246+
type: SOA
247+
248+
And finaly execute the transaction.
249+
250+
.. code-block:: console
251+
252+
$ gcloud dns record-sets --zone deisdemoio transaction execute
266253
267254
268255
Install Deis Platform

0 commit comments

Comments
 (0)