Class ComputeNodeGroupAutoscalingPolicy.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • maxNodes

        @Stability(Stable)
        public ComputeNodeGroupAutoscalingPolicy.Builder maxNodes​(Number maxNodes)
        Parameters:
        maxNodes - Maximum size of the node group. Set to a value less than or equal to 100 and greater than or equal to min-nodes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_group#max_nodes ComputeNodeGroup#max_nodes}
        Returns:
        this
      • minNodes

        @Stability(Stable)
        public ComputeNodeGroupAutoscalingPolicy.Builder minNodes​(Number minNodes)
        Parameters:
        minNodes - Minimum size of the node group. Must be less than or equal to max-nodes. The default value is 0. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_group#min_nodes ComputeNodeGroup#min_nodes}
        Returns:
        this
      • mode

        @Stability(Stable)
        public ComputeNodeGroupAutoscalingPolicy.Builder mode​(String mode)
        Parameters:
        mode - The autoscaling mode. Set to one of the following: * OFF: Disables the autoscaler. * ON: Enables scaling in and scaling out. * ONLY_SCALE_OUT: Enables only scaling out. You must use this mode if your node groups are configured to restart their hosted VMs on minimal servers. Possible values: ["OFF", "ON", "ONLY_SCALE_OUT"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_group#mode ComputeNodeGroup#mode}
        Returns:
        this