k8s Ingress allows to filter IPs through annotation nginx.ingress.kubernetes.io/whitelist-source-range.
How can i to do the same through Gateway Api in GCP? https://cloud.google.com/kubernetes-engine/docs/concepts/gateway-api
I have not found any exemples of such behaviour for Gateway Api
Allow listing IP addresses is enforced via Cloud Armor policies. For example, you can use a rule like
inIpRange(origin.ip, '198.51.100.0/24')in a Cloud Armor security policy.With the Gateway API, you can then use gateway policies to attach a Cloud Armor policy to your Gateway: