-
Notifications
You must be signed in to change notification settings - Fork 1
/
2 VPC Networks with Subnets - Google
57 lines (57 loc) · 1.38 KB
/
2 VPC Networks with Subnets - Google
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
resources:
- type: compute.v1.network
name: network-1
properties:
autoCreateSubnetworks: false
- name: subnet-a
type: compute.v1.subnetwork
properties:
ipCidrRange: 10.0.1.0/24
network: $(ref.network-1.selfLink)
privateIpGoogleAccess: false
region: us-central1
- name: ssh-network-1
type: compute.v1.firewall
properties:
network: $(ref.network-1.selfLink)
sourceRanges: ["0.0.0.0/0"]
allowed:
- IPProtocol: TCP
ports: ["22"]
- type: compute.v1.firewall
name: default-allow-http-1
properties:
network: $(ref.network-1.selfLink)
targetTags: ["http-server"]
sourceRanges: ["0.0.0.0/0"]
allowed:
- IPProtocol: TCP
ports: ["80"]
- type: compute.v1.network
name: network-2
properties:
autoCreateSubnetworks: false
- name: subnet-b
type: compute.v1.subnetwork
properties:
ipCidrRange: 10.0.2.0/24
network: $(ref.network-2.selfLink)
privateIpGoogleAccess: false
region: us-east1
- name: ssh-network-2
type: compute.v1.firewall
properties:
network: $(ref.network-2.selfLink)
sourceRanges: ["0.0.0.0/0"]
allowed:
- IPProtocol: TCP
ports: ["22"]
- type: compute.v1.firewall
name: default-allow-http-2
properties:
network: $(ref.network-2.selfLink)
targetTags: ["http-server"]
sourceRanges: ["0.0.0.0/0"]
allowed:
- IPProtocol: TCP
ports: ["80"]