public sealed class ClusterAutoscaling : IMessage<ClusterAutoscaling>, IEquatable<ClusterAutoscaling>, IDeepCloneable<ClusterAutoscaling>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Kubernetes Engine v1 API class ClusterAutoscaling.
ClusterAutoscaling contains global, per-cluster information
required by Cluster Autoscaler to automatically adjust
the size of the cluster and create/delete
node pools based on the current needs.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eClusterAutoscaling\u003c/code\u003e class within the Google Kubernetes Engine v1 API, specifically for .NET developers.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eClusterAutoscaling\u003c/code\u003e class is designed to help adjust the size of clusters automatically by creating or deleting node pools based on real-time needs.\u003c/p\u003e\n"],["\u003cp\u003eIt includes details on the \u003ccode\u003eClusterAutoscaling\u003c/code\u003e class constructors, such as the default constructor and a copy constructor that accepts another \u003ccode\u003eClusterAutoscaling\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists properties like \u003ccode\u003eAutoprovisioningLocations\u003c/code\u003e, \u003ccode\u003eAutoprovisioningNodePoolDefaults\u003c/code\u003e, \u003ccode\u003eAutoscalingProfile\u003c/code\u003e, \u003ccode\u003eEnableNodeAutoprovisioning\u003c/code\u003e, and \u003ccode\u003eResourceLimits\u003c/code\u003e that allow configuration of autoscaling features.\u003c/p\u003e\n"],["\u003cp\u003eThe provided content contains links to various historical versions, from 3.33.0 (latest) down to 2.3.0, of the \u003ccode\u003eClusterAutoscaling\u003c/code\u003e documentation.\u003c/p\u003e\n"]]],[],null,["# Google Kubernetes Engine v1 API - Class ClusterAutoscaling (3.35.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.35.0 (latest)](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.34.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.34.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.33.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.33.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.32.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.32.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.31.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.31.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.30.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.30.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.29.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.29.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.28.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.28.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.27.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.27.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.26.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.26.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.25.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.25.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.24.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.24.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.23.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.23.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.22.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.22.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.21.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.21.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.20.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.20.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.19.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.19.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.18.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.18.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.17.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.16.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.15.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.14.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.13.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.12.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.11.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.10.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.9.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.8.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.7.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.6.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.5.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.4.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.3.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.2.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.1.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.0.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.7.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.6.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.5.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.4.0/Google.Cloud.Container.V1.ClusterAutoscaling)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.3.0/Google.Cloud.Container.V1.ClusterAutoscaling) \n\n public sealed class ClusterAutoscaling : IMessage\u003cClusterAutoscaling\u003e, IEquatable\u003cClusterAutoscaling\u003e, IDeepCloneable\u003cClusterAutoscaling\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Kubernetes Engine v1 API class ClusterAutoscaling.\n\nClusterAutoscaling contains global, per-cluster information\nrequired by Cluster Autoscaler to automatically adjust\nthe size of the cluster and create/delete\nnode pools based on the current needs. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ClusterAutoscaling \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ClusterAutoscaling](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.ClusterAutoscaling), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ClusterAutoscaling](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.ClusterAutoscaling), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ClusterAutoscaling](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.ClusterAutoscaling), [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.Container.V1](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Container.V1.dll\n\nConstructors\n------------\n\n### ClusterAutoscaling()\n\n public ClusterAutoscaling()\n\n### ClusterAutoscaling(ClusterAutoscaling)\n\n public ClusterAutoscaling(ClusterAutoscaling other)\n\nProperties\n----------\n\n### AutoprovisioningLocations\n\n public RepeatedField\u003cstring\u003e AutoprovisioningLocations { get; }\n\nThe list of Google Compute Engine\n[zones](https://cloud.google.com/compute/docs/zones#available)\nin which the NodePool's nodes can be created by NAP.\n\n### AutoprovisioningNodePoolDefaults\n\n public AutoprovisioningNodePoolDefaults AutoprovisioningNodePoolDefaults { get; set; }\n\nAutoprovisioningNodePoolDefaults contains defaults for a node pool\ncreated by NAP.\n\n### AutoscalingProfile\n\n public ClusterAutoscaling.Types.AutoscalingProfile AutoscalingProfile { get; set; }\n\nDefines autoscaling behaviour.\n\n### DefaultComputeClassConfig\n\n public DefaultComputeClassConfig DefaultComputeClassConfig { get; set; }\n\nDefault compute class is a configuration for default compute class.\n\n### EnableNodeAutoprovisioning\n\n public bool EnableNodeAutoprovisioning { get; set; }\n\nEnables automatic node pool creation and deletion.\n\n### ResourceLimits\n\n public RepeatedField\u003cResourceLimit\u003e ResourceLimits { get; }\n\nContains global constraints regarding minimum and maximum\namount of resources in the cluster."]]