forked from rahullrajesh/implement-devops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigure a Firewall and a Startup Script with Deployment Manager lab
More file actions
43 lines (29 loc) · 1.35 KB
/
Configure a Firewall and a Startup Script with Deployment Manager lab
File metadata and controls
43 lines (29 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#WATCH FULL LAB : https://www.youtube.com/watch?v=LPfGE5BgZP8
mkdir deployment_manager
cd deployment_manager
gsutil cp gs://spls/gsp302/* .
gcloud deployment-manager deployments create test --config=qwiklabs.yaml
# Copy the content from Github's qwiklabs.yaml
# https://github.com/rahullrajesh/implement-devops/blob/master/qwiklabs.yaml
# Edit qwiklabs.yaml
nano qwiklabs.yaml
# Use CTRL + Shift + 6 to mark the beginning of your block
# Move cursor with arrow keys to end of your block, the text will be highlighted
# Use CTRL + K to cut/delete block
# Save file, use CTRL + X, type Y, Enter
# Copy the content from Github's qwiklabs.jinja
# https://github.com/rahullrajesh/implement-devops/blob/master/qwiklabs.jinja
# Edit qwiklabs.jinja
nano qwiklabs.jinja
# Use CTRL + Shift + 6 to mark the beginning of your block
# Move cursor with arrow keys to end of your block, the text will be highlighted
# Use CTRL + K to cut/delete block
# Save file, use CTRL + X, type Y, Enter
gcloud deployment-manager deployments delete test
gcloud deployment-manager deployments create test --config=qwiklabs.yaml
# Wait until the deployment completed
# Check the newly created vm instance external IP address
gcloud compute instances list
# Copy the EXTERNAL_IP of 'vm-test' instance
# Paste the IP to the new tab of the browser
# Make sure you can see the Apache welcome page