Difference between zones and locations endpoints in GKE clusters API

3/31/2020

When I began working with the GKE API, I was surprised to find two very similar endpoints:

A quick look at the difference between them reveals that some methods and fields are rearranged, some are deprecated, but no documentation that explains the difference between these two.

I initially thought that the first is for creating zonal, and that latter for creating regional clusters, yet when creating a cluster via Google Cloud Console there's an "Equivalent REST" option, which shows that both cases use the same projects.zones.clusters endpoint.

So, what's the difference between these endpoints, and in which scenarios one would use projects.locations.clusters?

-- Nikolay Edigaryev
google-api
google-kubernetes-engine

0 Answers