google-cloud-platformnetwork-programminggoogle-kubernetes-enginegoogle-vpc

GCP VPC networking


I have a reserved internal IP address and a nodeport service in gke, both are in the same VPC but different subnets. How do i make sure that all traffic coming to the reserved IP address over a certain port is forwarded to nodeport service and all outgoing traffic over that port from nodeport service is forwarded to the reserved IP address in GCP.


Solution

  • GKE Internal load balancer solves this.