GetClusterNodePool constructor

const GetClusterNodePool({
  1. required Input<List<GetClusterNodePoolAutoscaling>> autoscalings,
  2. required Input<bool> ignoreNodeCountChanges,
  3. required Input<int> initialNodeCount,
  4. required Input<List<String>> instanceGroupUrls,
  5. required Input<List<GetClusterNodePoolMaintenancePolicy>> maintenancePolicies,
  6. required Input<List<String>> managedInstanceGroupUrls,
  7. required Input<List<GetClusterNodePoolManagement>> managements,
  8. required Input<int> maxPodsPerNode,
  9. required Input<String> name,
  10. required Input<String> namePrefix,
  11. required Input<List<GetClusterNodePoolNetworkConfig>> networkConfigs,
  12. required Input<List<GetClusterNodePoolNodeConfig>> nodeConfigs,
  13. required Input<int> nodeCount,
  14. required Input<List<GetClusterNodePoolNodeDrainConfig>> nodeDrainConfigs,
  15. required Input<List<String>> nodeLocations,
  16. required Input<List<GetClusterNodePoolPlacementPolicy>> placementPolicies,
  17. required Input<List<GetClusterNodePoolQueuedProvisioning>> queuedProvisionings,
  18. required Input<List<GetClusterNodePoolUpgradeSetting>> upgradeSettings,
  19. required Input<String> version,
})

Creates a new GetClusterNodePool. autoscalings Configuration required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. ignoreNodeCountChanges When true, the provider ignores external changes (drift) to the node count by skipping GCE API queries to the Instance Group Managers. This is a performance optimization for large clusters that saves API quota. Setting this to true will result in missing managedInstanceGroupUrls in the state. initialNodeCount The initial number of nodes for the pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Changing this will force recreation of the resource. instanceGroupUrls The resource URLs of the managed instance groups associated with this node pool. maintenancePolicies Maintenance policy for this NodePool. managedInstanceGroupUrls List of instance group URLs which have been assigned to this node pool. managements Node management configuration, wherein auto-repair and auto-upgrade is configured. maxPodsPerNode The maximum number of pods per node in this node pool. Note that this does not work on node pools which are "route-based" - that is, node pools belonging to clusters that do not have IP Aliasing enabled. name The name of the cluster. namePrefix Creates a unique name for the node pool beginning with the specified prefix. Conflicts with name. networkConfigs Networking configuration for this NodePool. If specified, it overrides the cluster-level defaults. nodeConfigs The configuration of the nodepool nodeCount The number of nodes per instance group. This field can be used to update the number of nodes per instance group but should not be used alongside autoscaling. nodeDrainConfigs Node drain configuration for this NodePool. nodeLocations The list of zones in which the node pool's nodes should be located. Nodes must be in the region of their regional cluster or in the same region as their cluster's zone for zonal clusters. If unspecified, the cluster-level nodeLocations will be used. placementPolicies Specifies the node placement policy queuedProvisionings Specifies the configuration of queued provisioning upgradeSettings Specify node upgrade settings to change how many nodes GKE attempts to upgrade at once. The number of nodes upgraded simultaneously is the sum of maxSurge and max_unavailable. The maximum number of nodes upgraded simultaneously is limited to 20. version The Kubernetes version for the nodes in this pool. Note that if this field and autoUpgrade are both specified, they will fight each other for what the node version should be, so setting both is highly discouraged. While a fuzzy version can be specified, it's recommended that you specify explicit versions as Terraform will see spurious diffs when fuzzy versions are used. See the gcp.container.getEngineVersions data source's versionPrefix field to approximate fuzzy versions in a Terraform-compatible way.

Implementation

const GetClusterNodePool({
  required this.autoscalings,
  required this.ignoreNodeCountChanges,
  required this.initialNodeCount,
  required this.instanceGroupUrls,
  required this.maintenancePolicies,
  required this.managedInstanceGroupUrls,
  required this.managements,
  required this.maxPodsPerNode,
  required this.name,
  required this.namePrefix,
  required this.networkConfigs,
  required this.nodeConfigs,
  required this.nodeCount,
  required this.nodeDrainConfigs,
  required this.nodeLocations,
  required this.placementPolicies,
  required this.queuedProvisionings,
  required this.upgradeSettings,
  required this.version,
});