Class ContainerClusterNodePoolAutoscaling.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • locationPolicy

        @Stability(Stable)
        public ContainerClusterNodePoolAutoscaling.Builder locationPolicy​(String locationPolicy)
        Parameters:
        locationPolicy - Location policy specifies the algorithm used when scaling-up the node pool. "BALANCED" - Is a best effort policy that aims to balance the sizes of available zones. "ANY" - Instructs the cluster autoscaler to prioritize utilization of unused reservations, and reduces preemption risk for Spot VMs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#location_policy ContainerCluster#location_policy}
        Returns:
        this
      • maxNodeCount

        @Stability(Stable)
        public ContainerClusterNodePoolAutoscaling.Builder maxNodeCount​(Number maxNodeCount)
        Parameters:
        maxNodeCount - Maximum number of nodes per zone in the node pool. Must be >= min_node_count. Cannot be used with total limits. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#max_node_count ContainerCluster#max_node_count}
        Returns:
        this
      • minNodeCount

        @Stability(Stable)
        public ContainerClusterNodePoolAutoscaling.Builder minNodeCount​(Number minNodeCount)
        Parameters:
        minNodeCount - Minimum number of nodes per zone in the node pool. Must be >=0 and <= max_node_count. Cannot be used with total limits. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#min_node_count ContainerCluster#min_node_count}
        Returns:
        this
      • totalMaxNodeCount

        @Stability(Stable)
        public ContainerClusterNodePoolAutoscaling.Builder totalMaxNodeCount​(Number totalMaxNodeCount)
        Parameters:
        totalMaxNodeCount - Maximum number of all nodes in the node pool. Must be >= total_min_node_count. Cannot be used with per zone limits. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#total_max_node_count ContainerCluster#total_max_node_count}
        Returns:
        this
      • totalMinNodeCount

        @Stability(Stable)
        public ContainerClusterNodePoolAutoscaling.Builder totalMinNodeCount​(Number totalMinNodeCount)
        Parameters:
        totalMinNodeCount - Minimum number of all nodes in the node pool. Must be >=0 and <= total_max_node_count. Cannot be used with per zone limits. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#total_min_node_count ContainerCluster#total_min_node_count}
        Returns:
        this