Targeting Kubernetes Pods by Zone in Gremlin

Modified on Tue, 10 Nov at 6:29 PM

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

KEP-4742: Node Topology Labels via Downward API

Kubernetes v1.35 release announcement

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article