On Kubernetes v1.35+, you can target pods by zone with topology.kubernetes.io/zone (or by region with topology.kubernetes.io/region) without additional configuration in Gremlin.
You should pair the zone with an app label for targeting purposes.
Considerations on GKE:
On GKE, you need to use the full projects/<project-number>/zones/<zone> when using the Gremlin 'zone' value. This is not necessary with topology.kubernetes.io/zone
GCP subnets are regional, not zonal, so a zone can only be defined based on which hosts have agents running on them and targeting the IPs of those agents.
References
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article