gke gateway :- error ensuring load balancer: generic::invalid_argument: Insert: Invalid value for field 'resource.target'
This error comes about when you do not have a proxy subnet created for your region when you're trying to deploy load balancer or when creating k8s API gateway's gateway resources.
These load balancers use a Google-managed proxy layer, and for internal communication between the proxy and your backend VMs, GCP needs a reserved IP range within your VPC. That’s where the proxy-only subnet comes in.
You can create it by going here:
https://cloud.google.com/load-balancing/docs/proxy-only-subnets#proxy_only_subnet_create
You can see after i apply the fixes, my gateway resources starts to sync successfully.
And then allocated a ip for my gateway here:-
Comments