-
Notifications
You must be signed in to change notification settings - Fork 913
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAST: Separate network environment (#566)
- Loading branch information
Showing
27 changed files
with
3,880 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ludo-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# IAM bindings reference | ||
|
||
Legend: <code>+</code> additive, <code>•</code> conditional. | ||
|
||
## Project <i>dev-net-spoke-0</i> | ||
|
||
| members | roles | | ||
|---|---| | ||
|<b>dev-resman-pf-0</b><br><small><i>serviceAccount</i></small>|[roles/resourcemanager.projectIamAdmin](https://cloud.google.com/iam/docs/understanding-roles#resourcemanager.projectIamAdmin) <code>•</code><br>[roles/dns.admin](https://cloud.google.com/iam/docs/understanding-roles#dns.admin) | | ||
|<b>prod-resman-pf-0</b><br><small><i>serviceAccount</i></small>|organizations/[org_id #0]/roles/serviceProjectNetworkAdmin | | ||
|
||
## Project <i>prod-net-spoke-0</i> | ||
|
||
| members | roles | | ||
|---|---| | ||
|<b>prod-resman-pf-0</b><br><small><i>serviceAccount</i></small>|[roles/resourcemanager.projectIamAdmin](https://cloud.google.com/iam/docs/understanding-roles#resourcemanager.projectIamAdmin) <code>•</code><br>organizations/[org_id #0]/roles/serviceProjectNetworkAdmin <br>[roles/dns.admin](https://cloud.google.com/iam/docs/understanding-roles#dns.admin) | |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# skip boilerplate check | ||
|
||
healthchecks: | ||
- 35.191.0.0/16 | ||
- 130.211.0.0/22 | ||
- 209.85.152.0/22 | ||
- 209.85.204.0/22 | ||
|
||
rfc1918: | ||
- 10.0.0.0/8 | ||
- 172.16.0.0/12 | ||
- 192.168.0.0/16 | ||
|
||
onprem_probes: | ||
- 10.255.255.254/32 |
68 changes: 68 additions & 0 deletions
68
fast/stages/02-networking-separate-envs/data/dashboards/firewall_insights.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"displayName": "Firewall Insights Monitoring", | ||
"gridLayout": { | ||
"columns": "2", | ||
"widgets": [ | ||
{ | ||
"title": "Subnet Firewall Hit Counts", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"minAlignmentPeriod": "60s", | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesFilter": { | ||
"aggregation": { | ||
"perSeriesAligner": "ALIGN_RATE" | ||
}, | ||
"filter": "metric.type=\"firewallinsights.googleapis.com/subnet/firewall_hit_count\" resource.type=\"gce_subnetwork\"", | ||
"secondaryAggregation": {} | ||
}, | ||
"unitOverride": "1" | ||
} | ||
} | ||
], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "y1Axis", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "VM Firewall Hit Counts", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"minAlignmentPeriod": "60s", | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesFilter": { | ||
"aggregation": { | ||
"perSeriesAligner": "ALIGN_RATE" | ||
}, | ||
"filter": "metric.type=\"firewallinsights.googleapis.com/vm/firewall_hit_count\" resource.type=\"gce_instance\"", | ||
"secondaryAggregation": {} | ||
}, | ||
"unitOverride": "1" | ||
} | ||
} | ||
], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "y1Axis", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |
248 changes: 248 additions & 0 deletions
248
fast/stages/02-networking-separate-envs/data/dashboards/vpn.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,248 @@ | ||
{ | ||
"displayName": "VPN Monitoring", | ||
"gridLayout": { | ||
"columns": "2", | ||
"widgets": [ | ||
{ | ||
"title": "Number of connections", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"minAlignmentPeriod": "60s", | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesFilter": { | ||
"aggregation": { | ||
"perSeriesAligner": "ALIGN_MEAN" | ||
}, | ||
"filter": "metric.type=\"vpn.googleapis.com/gateway/connections\" resource.type=\"vpn_gateway\"", | ||
"secondaryAggregation": {} | ||
}, | ||
"unitOverride": "1" | ||
} | ||
} | ||
], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "y1Axis", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Tunnel established", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"minAlignmentPeriod": "60s", | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesFilter": { | ||
"aggregation": { | ||
"perSeriesAligner": "ALIGN_MEAN" | ||
}, | ||
"filter": "metric.type=\"vpn.googleapis.com/tunnel_established\" resource.type=\"vpn_gateway\"", | ||
"secondaryAggregation": {} | ||
}, | ||
"unitOverride": "1" | ||
} | ||
} | ||
], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "y1Axis", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Cloud VPN Gateway - Received bytes", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"minAlignmentPeriod": "60s", | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesFilter": { | ||
"aggregation": { | ||
"perSeriesAligner": "ALIGN_RATE" | ||
}, | ||
"filter": "metric.type=\"vpn.googleapis.com/network/received_bytes_count\" resource.type=\"vpn_gateway\"", | ||
"secondaryAggregation": {} | ||
}, | ||
"unitOverride": "By" | ||
} | ||
} | ||
], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "y1Axis", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Cloud VPN Gateway - Sent bytes", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"minAlignmentPeriod": "60s", | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesFilter": { | ||
"aggregation": { | ||
"perSeriesAligner": "ALIGN_RATE" | ||
}, | ||
"filter": "metric.type=\"vpn.googleapis.com/network/sent_bytes_count\" resource.type=\"vpn_gateway\"", | ||
"secondaryAggregation": {} | ||
}, | ||
"unitOverride": "By" | ||
} | ||
} | ||
], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "y1Axis", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Cloud VPN Gateway - Received packets", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"minAlignmentPeriod": "60s", | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesFilter": { | ||
"aggregation": { | ||
"perSeriesAligner": "ALIGN_RATE" | ||
}, | ||
"filter": "metric.type=\"vpn.googleapis.com/network/received_packets_count\" resource.type=\"vpn_gateway\"", | ||
"secondaryAggregation": {} | ||
}, | ||
"unitOverride": "{packets}" | ||
} | ||
} | ||
], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "y1Axis", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Cloud VPN Gateway - Sent packets", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"minAlignmentPeriod": "60s", | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesFilter": { | ||
"aggregation": { | ||
"perSeriesAligner": "ALIGN_RATE" | ||
}, | ||
"filter": "metric.type=\"vpn.googleapis.com/network/sent_packets_count\" resource.type=\"vpn_gateway\"", | ||
"secondaryAggregation": {} | ||
}, | ||
"unitOverride": "{packets}" | ||
} | ||
} | ||
], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "y1Axis", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Incoming packets dropped", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"minAlignmentPeriod": "60s", | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesFilter": { | ||
"aggregation": { | ||
"perSeriesAligner": "ALIGN_RATE" | ||
}, | ||
"filter": "metric.type=\"vpn.googleapis.com/network/dropped_received_packets_count\" resource.type=\"vpn_gateway\"", | ||
"secondaryAggregation": {} | ||
}, | ||
"unitOverride": "1" | ||
} | ||
} | ||
], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "y1Axis", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Outgoing packets dropped", | ||
"xyChart": { | ||
"chartOptions": { | ||
"mode": "COLOR" | ||
}, | ||
"dataSets": [ | ||
{ | ||
"minAlignmentPeriod": "60s", | ||
"plotType": "LINE", | ||
"targetAxis": "Y1", | ||
"timeSeriesQuery": { | ||
"timeSeriesFilter": { | ||
"aggregation": { | ||
"perSeriesAligner": "ALIGN_RATE" | ||
}, | ||
"filter": "metric.type=\"vpn.googleapis.com/network/dropped_sent_packets_count\" resource.type=\"vpn_gateway\"", | ||
"secondaryAggregation": {} | ||
}, | ||
"unitOverride": "1" | ||
} | ||
} | ||
], | ||
"timeshiftDuration": "0s", | ||
"yAxis": { | ||
"label": "y1Axis", | ||
"scale": "LINEAR" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
fast/stages/02-networking-separate-envs/data/firewall-rules/dev/rules.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# skip boilerplate check | ||
|
||
ingress-allow-composer-nodes: | ||
description: "Allow traffic to Composer nodes." | ||
direction: INGRESS | ||
action: allow | ||
sources: [] | ||
ranges: ["0.0.0.0/0"] | ||
targets: | ||
- composer-worker | ||
use_service_accounts: false | ||
rules: | ||
- protocol: tcp | ||
ports: [80, 443, 3306, 3307] | ||
|
||
ingress-allow-dataflow-load: | ||
description: "Allow traffic to Dataflow nodes." | ||
direction: INGRESS | ||
action: allow | ||
sources: [] | ||
ranges: ["0.0.0.0/0"] | ||
targets: | ||
- dataflow | ||
use_service_accounts: false | ||
rules: | ||
- protocol: tcp | ||
ports: [12345, 12346] |
Oops, something went wrong.