Optional. The list of Compute Engine
zones where
node pool nodes associated with a Dataproc on GKE virtual cluster
will be located.
Note: All node pools associated with a virtual cluster
must be located in the same region as the virtual cluster, and they must
be located in the same zone within that region.
If a location is not specified during node pool creation, Dataproc on GKE
will choose the zone.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eGkeNodePoolConfig\u003c/code\u003e API class is 5.17.0, with several previous versions also available, ranging down to version 3.1.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGkeNodePoolConfig\u003c/code\u003e is a class used to configure a GKE node pool for a Dataproc-on-GKE cluster, as part of the Google Cloud Dataproc v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eGkeNodePoolConfig\u003c/code\u003e implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, which it inherits from.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGkeNodePoolConfig\u003c/code\u003e class allows for the optional configuration of node pool autoscaling, through the \u003ccode\u003eAutoscaling\u003c/code\u003e property, and custom configuration through the \u003ccode\u003eConfig\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLocations\u003c/code\u003e property of the \u003ccode\u003eGkeNodePoolConfig\u003c/code\u003e class allows specifying Compute Engine zones for the node pool nodes, ensuring they are in the same region and zone as the virtual cluster.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dataproc v1 API - Class GkeNodePoolConfig (5.20.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.20.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.19.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.19.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.18.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.18.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.17.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.17.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.16.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.16.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.15.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.15.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.14.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.14.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.13.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.13.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.12.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.12.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.11.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.11.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.10.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.10.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.9.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.9.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.8.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.8.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.7.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.7.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.6.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.6.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.5.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.5.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.4.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.3.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.2.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.1.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.0.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/4.0.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.4.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.3.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.2.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.1.0/Google.Cloud.Dataproc.V1.GkeNodePoolConfig) \n\n public sealed class GkeNodePoolConfig : IMessage\u003cGkeNodePoolConfig\u003e, IEquatable\u003cGkeNodePoolConfig\u003e, IDeepCloneable\u003cGkeNodePoolConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dataproc v1 API class GkeNodePoolConfig.\n\nThe configuration of a GKE node pool used by a [Dataproc-on-GKE\ncluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GkeNodePoolConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GkeNodePoolConfig](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GkeNodePoolConfig](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GkeNodePoolConfig](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dataproc.V1](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dataproc.V1.dll\n\nConstructors\n------------\n\n### GkeNodePoolConfig()\n\n public GkeNodePoolConfig()\n\n### GkeNodePoolConfig(GkeNodePoolConfig)\n\n public GkeNodePoolConfig(GkeNodePoolConfig other)\n\nProperties\n----------\n\n### Autoscaling\n\n public GkeNodePoolConfig.Types.GkeNodePoolAutoscalingConfig Autoscaling { get; set; }\n\nOptional. The autoscaler configuration for this node pool. The autoscaler\nis enabled only when a valid configuration is present.\n\n### Config\n\n public GkeNodePoolConfig.Types.GkeNodeConfig Config { get; set; }\n\nOptional. The node pool configuration.\n\n### Locations\n\n public RepeatedField\u003cstring\u003e Locations { get; }\n\nOptional. The list of Compute Engine\n[zones](https://cloud.google.com/compute/docs/zones#available) where\nnode pool nodes associated with a Dataproc on GKE virtual cluster\nwill be located.\n\n**Note:** All node pools associated with a virtual cluster\nmust be located in the same region as the virtual cluster, and they must\nbe located in the same zone within that region.\n\nIf a location is not specified during node pool creation, Dataproc on GKE\nwill choose the zone."]]