Questions tagged [google-vpc]
243 questions
1
vote
1 answer
GKE cluster egress traffic coming out the nodes rather than the LB service
I'm new to GKE and K8S so please bare with me and my silliness. I currently have a GKE cluster that has two nodes in the default node pool and the cluster is exposed via a LoadBalancer type service.
These nodes are tasked with calling a Compute…

Josh
- 35
- 1
- 8
1
vote
1 answer
Failing to create Cloud SQL Instance through Terraform
I want to create a Cloud SQL instance in a project, connected to a host VPC. However, when running terraform apply I get the same result every time:
google_sql_database_instance.default: Still creating... [1m20s…

Sebastian Torres
- 11
- 2
1
vote
1 answer
Which of the IAM permissions and firewall rules take precedence
The GCP docs say that all resources within the same VPC network can communicate by default. But if the firewall rules were to be manually changed to restrict access to some resource, and at the same time an IAM policy would allow access to the same…

ravindra
- 13
- 2
1
vote
0 answers
Cannot access Tomcat installed on GCE
I've been trying to get Tomcat (specifically, Tomcat 9) running on a GCE along with enabling SSL to it with little success. I've run this configuration on another computer and I could do both of these things with no real complications.
What I've…

amilcar-capsus
- 13
- 3
1
vote
0 answers
GCP Internal HTTP(S) Load Balancing with Shared VPC
Internal HTTP(S) load balancer in a Shared VPC service project is released recently, and I tried following tutorial.
Setting up Internal HTTP(S) Load Balancing with Shared VPC
But I got error on creating forwarding rule (for HTTP) step.
$ make…

Junya
- 83
- 7
1
vote
1 answer
how to attach a static IP address programmatically (Python) in Google Cloud Platform
I am trying to programatically(Python) create a virtual machine with a static IP address that I have.
My code is based on https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/compute/api/create_instance.py
I am specifically looking…

pizza
- 584
- 1
- 10
- 19
1
vote
3 answers
Cannot connect to Mongo Atlas using VPC peering from GCP cluster
I am trying to connect a Java app running on a GCP Kubernetes engine cluster, with a Mongo Atlas cluster (M20). Before, it worked fine, when I didn't have VPC Peering turned on and I was using the regular connection string. But I am trying to use…

user1145925
- 971
- 3
- 13
- 24
1
vote
2 answers
How to access a network though peering in GCP-AWS vpn?
I have the following topology:
GCP with 2 vpcs: A and B. A is 10.0.0.0/16 and B is 10.1.0.0/16. A has peering with B, so A can access B but B can't access A.
AWS with a vpc C.
I want to make a VPN between GCP and AWS, so that from C I can access A…

Vivi
- 107
- 1
- 4
- 13
1
vote
1 answer
relationship between subnet mask and kubernetes master ip mask
I have a subnet mask for my subnet set to 10.0.0.0/9. When setting up kubernetes, google asks for a master ip range for kubernets. I set this to 10.0.0.0/28 but I have no idea if this is correct or how these two things are related? Is there any…

Dean Hiller
- 19,235
- 25
- 129
- 212
1
vote
2 answers
google cloud connectl local computer to network
Is there a way to connect a local computer to google cloud network?
I have a server building ios apps on a mac mini, and would like to be able to call/make builds from google cloud VM - and copy files from local/on prem. to Google Cloud VM.

Chris G.
- 23,930
- 48
- 177
- 302
1
vote
1 answer
VPC Service Control for GCR
The VPC-SC supported products page enlists the following repositories to be available to all the projects
https://cloud.google.com/vpc-service-controls/docs/supported-products#registry
However, seems the gcr.io/google-appengine is available too?

Shalanki Gupta
- 131
- 2
- 8
1
vote
2 answers
How to resolve We are unable to connect to the VM on port 22. Learn more about possible causes of this issue on GCP?
I have RHEL instance running on GCP. I was able to connect it using SSH. Later I have installed GUI using the command yum groupinstall "Server with GUI".
After reboot, I am not able to SSH. Getting port 22 error.
Need help

Vivek Reddy
- 11
- 2
1
vote
1 answer
How to access mongoDB atlas from google cloud function using serverless VPC
I have a google cloud function which needs to access the MongoDB hosted on Atlas (GCP).
This cloud function needs to access a specific API hosted outside GCP. For security reasons they need to allow the cloud functions IP address on their firewall…

Sharath Chandra
- 654
- 8
- 26
1
vote
1 answer
How to deploy a private google cloudsql instance assigning exiting vpc (network_interface) using terraform
I have a custom vpc - configured with vpc peering and all. Now I want to deploy a cloudsql instance using terraform under that vpc with only private ip. Can anyone have any suggestions regarding that.

Aniket
- 495
- 1
- 5
- 16
1
vote
0 answers
Cannot connect to a redis instance from app engine VPC connector
I have an app on app engine (standard) deployed and I'm trying to connect to a redis instance I have deployed on a regular compute engine VM that I have in a VPC. I created a VPC connector as the steps said and I've my app.yaml file accordingly.…

ninesalt
- 4,054
- 5
- 35
- 75