FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GCP Cloud Run app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Information Services
DevOps
Infrastructure
Terraform Modules
GCP Cloud Run app
Commits
dddb7f92
Commit
dddb7f92
authored
3 years ago
by
Wajdi Hajji
Committed by
Arun Patel
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added Cloud NAT "min ports per VM" config
(cherry picked from commit
a068f599
)
parent
deffb168
No related branches found
No related tags found
1 merge request
!35
Added Cloud NAT "min ports per VM" config
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
static_egress_ip.tf
+1
-0
1 addition, 0 deletions
static_egress_ip.tf
variables.tf
+10
-0
10 additions, 0 deletions
variables.tf
with
11 additions
and
0 deletions
static_egress_ip.tf
+
1
−
0
View file @
dddb7f92
...
...
@@ -50,6 +50,7 @@ resource "google_compute_router_nat" "static-ip-nat" {
nat_ips
=
[
google_compute_address
.
static-ip
[
0
].
self_link
]
nat_ip_allocate_option
=
"MANUAL_ONLY"
region
=
var
.
cloud_run_region
min_ports_per_vm
=
var
.
min_ports_per_vm
source_subnetwork_ip_ranges_to_nat
=
"LIST_OF_SUBNETWORKS"
subnetwork
{
...
...
This diff is collapsed.
Click to expand it.
variables.tf
+
10
−
0
View file @
dddb7f92
...
...
@@ -209,6 +209,16 @@ variable "static_egress_ip_cidr_range" {
description
=
"The cidr range used to create a subnet that this cloud run will use if assigned a static ip"
}
variable
"min_ports_per_vm"
{
default
=
64
type
=
number
description
=
<<-
EOL
When
using
Cloud
NAT
to
provide
an
egress
route
,
Cloud
NAT
's minimum ports per VM
can be configured to determine how many concurrent connections can be established
to the same destination IP address and port.
EOL
}
variable "secrets_volume" {
type = list(object({
name = string # name of the file that is going to be mounted
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment