Adjust firewall to allow port 8080
This commit is contained in:
parent
2465318f77
commit
7011721c3c
1 changed files with 7 additions and 0 deletions
|
|
@ -25,6 +25,13 @@ if [[ -z "$vpc_exists" || -z "$subnet_exists" ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
gcloud compute firewall-rules create allow-tcp-8080 \
|
||||
--network $VPC_NAME \
|
||||
--allow tcp:8080 \
|
||||
--source-ranges 0.0.0.0/0 \
|
||||
--direction INGRESS
|
||||
|
||||
|
||||
# Create the Cloud Router and NAT Gateway
|
||||
gcloud compute routers create $CLOUD_ROUTER_NAME \
|
||||
--network $VPC_NAME \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue