Class ContainerClusterNodePool.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • initialNodeCount

        @Stability(Stable)
        public ContainerClusterNodePool.Builder initialNodeCount​(Number initialNodeCount)
        Parameters:
        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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#initial_node_count ContainerCluster#initial_node_count}
        Returns:
        this
      • maxPodsPerNode

        @Stability(Stable)
        public ContainerClusterNodePool.Builder maxPodsPerNode​(Number maxPodsPerNode)
        Parameters:
        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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#max_pods_per_node ContainerCluster#max_pods_per_node}
        Returns:
        this
      • name

        @Stability(Stable)
        public ContainerClusterNodePool.Builder name​(String name)
        Parameters:
        name - The name of the node pool. If left blank, Terraform will auto-generate a unique name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#name ContainerCluster#name}
        Returns:
        this
      • namePrefix

        @Stability(Stable)
        public ContainerClusterNodePool.Builder namePrefix​(String namePrefix)
        Parameters:
        namePrefix - Creates a unique name for the node pool beginning with the specified prefix. Conflicts with name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#name_prefix ContainerCluster#name_prefix}
        Returns:
        this
      • nodeCount

        @Stability(Stable)
        public ContainerClusterNodePool.Builder nodeCount​(Number nodeCount)
        Parameters:
        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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#node_count ContainerCluster#node_count}
        Returns:
        this
      • nodeLocations

        @Stability(Stable)
        public ContainerClusterNodePool.Builder nodeLocations​(List<String> nodeLocations)
        Parameters:
        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 node_locations will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#node_locations ContainerCluster#node_locations}
        Returns:
        this
      • version

        @Stability(Stable)
        public ContainerClusterNodePool.Builder version​(String version)
        Parameters:
        version - The Kubernetes version for the nodes in this pool. Note that if this field and auto_upgrade 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 google_container_engine_versions data source's version_prefix field to approximate fuzzy versions in a Terraform-compatible way. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#version ContainerCluster#version}
        Returns:
        this