Package com.pulumi.gcp.container.inputs
Class ClusterNodePoolArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.container.inputs.ClusterNodePoolArgs.Builder
-
- Enclosing class:
- ClusterNodePoolArgs
public static final class ClusterNodePoolArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(ClusterNodePoolArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(ClusterNodePoolArgs defaults)
-
-
Method Detail
-
autoscaling
public ClusterNodePoolArgs.Builder autoscaling(@Nullable com.pulumi.core.Output<ClusterNodePoolAutoscalingArgs> autoscaling)
-
autoscaling
public ClusterNodePoolArgs.Builder autoscaling(ClusterNodePoolAutoscalingArgs autoscaling)
-
initialNodeCount
public ClusterNodePoolArgs.Builder initialNodeCount(@Nullable com.pulumi.core.Output<java.lang.Integer> initialNodeCount)
- Parameters:
initialNodeCount
- The number of nodes to create in this cluster's default node pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Must be set if `node_pool` is not set. If you're using `gcp.container.NodePool` objects with no default node pool, you'll need to set this to a value of at least `1`, alongside setting `remove_default_node_pool` to `true`.- Returns:
- builder
-
initialNodeCount
public ClusterNodePoolArgs.Builder initialNodeCount(java.lang.Integer initialNodeCount)
- Parameters:
initialNodeCount
- The number of nodes to create in this cluster's default node pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Must be set if `node_pool` is not set. If you're using `gcp.container.NodePool` objects with no default node pool, you'll need to set this to a value of at least `1`, alongside setting `remove_default_node_pool` to `true`.- Returns:
- builder
-
instanceGroupUrls
public ClusterNodePoolArgs.Builder instanceGroupUrls(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> instanceGroupUrls)
-
instanceGroupUrls
public ClusterNodePoolArgs.Builder instanceGroupUrls(java.util.List<java.lang.String> instanceGroupUrls)
-
instanceGroupUrls
public ClusterNodePoolArgs.Builder instanceGroupUrls(java.lang.String... instanceGroupUrls)
-
managedInstanceGroupUrls
public ClusterNodePoolArgs.Builder managedInstanceGroupUrls(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> managedInstanceGroupUrls)
-
managedInstanceGroupUrls
public ClusterNodePoolArgs.Builder managedInstanceGroupUrls(java.util.List<java.lang.String> managedInstanceGroupUrls)
-
managedInstanceGroupUrls
public ClusterNodePoolArgs.Builder managedInstanceGroupUrls(java.lang.String... managedInstanceGroupUrls)
-
management
public ClusterNodePoolArgs.Builder management(@Nullable com.pulumi.core.Output<ClusterNodePoolManagementArgs> management)
- Parameters:
management
- NodeManagement configuration for this NodePool. Structure is documented below.- Returns:
- builder
-
management
public ClusterNodePoolArgs.Builder management(ClusterNodePoolManagementArgs management)
- Parameters:
management
- NodeManagement configuration for this NodePool. Structure is documented below.- Returns:
- builder
-
maxPodsPerNode
public ClusterNodePoolArgs.Builder maxPodsPerNode(@Nullable com.pulumi.core.Output<java.lang.Integer> maxPodsPerNode)
-
maxPodsPerNode
public ClusterNodePoolArgs.Builder maxPodsPerNode(java.lang.Integer maxPodsPerNode)
-
name
public ClusterNodePoolArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- The name of the cluster, unique within the project and location. ***- Returns:
- builder
-
name
public ClusterNodePoolArgs.Builder name(java.lang.String name)
- Parameters:
name
- The name of the cluster, unique within the project and location. ***- Returns:
- builder
-
namePrefix
public ClusterNodePoolArgs.Builder namePrefix(@Nullable com.pulumi.core.Output<java.lang.String> namePrefix)
-
namePrefix
public ClusterNodePoolArgs.Builder namePrefix(java.lang.String namePrefix)
-
networkConfig
public ClusterNodePoolArgs.Builder networkConfig(@Nullable com.pulumi.core.Output<ClusterNodePoolNetworkConfigArgs> networkConfig)
- Parameters:
networkConfig
- Configuration for [Adding Pod IP address ranges](https://cloud.google.com/kubernetes-engine/docs/how-to/multi-pod-cidr)) to the node pool. Structure is documented below- Returns:
- builder
-
networkConfig
public ClusterNodePoolArgs.Builder networkConfig(ClusterNodePoolNetworkConfigArgs networkConfig)
- Parameters:
networkConfig
- Configuration for [Adding Pod IP address ranges](https://cloud.google.com/kubernetes-engine/docs/how-to/multi-pod-cidr)) to the node pool. Structure is documented below- Returns:
- builder
-
nodeConfig
public ClusterNodePoolArgs.Builder nodeConfig(@Nullable com.pulumi.core.Output<ClusterNodePoolNodeConfigArgs> nodeConfig)
- Parameters:
nodeConfig
- Parameters used in creating the default node pool. Generally, this field should not be used at the same time as a `gcp.container.NodePool` or a `node_pool` block; this configuration manages the default node pool, which isn't recommended to be used. Structure is documented below.- Returns:
- builder
-
nodeConfig
public ClusterNodePoolArgs.Builder nodeConfig(ClusterNodePoolNodeConfigArgs nodeConfig)
- Parameters:
nodeConfig
- Parameters used in creating the default node pool. Generally, this field should not be used at the same time as a `gcp.container.NodePool` or a `node_pool` block; this configuration manages the default node pool, which isn't recommended to be used. Structure is documented below.- Returns:
- builder
-
nodeCount
public ClusterNodePoolArgs.Builder nodeCount(@Nullable com.pulumi.core.Output<java.lang.Integer> nodeCount)
-
nodeCount
public ClusterNodePoolArgs.Builder nodeCount(java.lang.Integer nodeCount)
-
nodeLocations
public ClusterNodePoolArgs.Builder nodeLocations(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> nodeLocations)
- Parameters:
nodeLocations
- The list of zones in which the cluster's nodes are 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 this is specified for a zonal cluster, omit the cluster's zone. > A "multi-zonal" cluster is a zonal cluster with at least one additional zone defined; in a multi-zonal cluster, the cluster master is only present in a single zone while nodes are present in each of the primary zone and the node locations. In contrast, in a regional cluster, cluster master nodes are present in multiple zones in the region. For that reason, regional clusters should be preferred.- Returns:
- builder
-
nodeLocations
public ClusterNodePoolArgs.Builder nodeLocations(java.util.List<java.lang.String> nodeLocations)
- Parameters:
nodeLocations
- The list of zones in which the cluster's nodes are 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 this is specified for a zonal cluster, omit the cluster's zone. > A "multi-zonal" cluster is a zonal cluster with at least one additional zone defined; in a multi-zonal cluster, the cluster master is only present in a single zone while nodes are present in each of the primary zone and the node locations. In contrast, in a regional cluster, cluster master nodes are present in multiple zones in the region. For that reason, regional clusters should be preferred.- Returns:
- builder
-
nodeLocations
public ClusterNodePoolArgs.Builder nodeLocations(java.lang.String... nodeLocations)
- Parameters:
nodeLocations
- The list of zones in which the cluster's nodes are 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 this is specified for a zonal cluster, omit the cluster's zone. > A "multi-zonal" cluster is a zonal cluster with at least one additional zone defined; in a multi-zonal cluster, the cluster master is only present in a single zone while nodes are present in each of the primary zone and the node locations. In contrast, in a regional cluster, cluster master nodes are present in multiple zones in the region. For that reason, regional clusters should be preferred.- Returns:
- builder
-
placementPolicy
public ClusterNodePoolArgs.Builder placementPolicy(@Nullable com.pulumi.core.Output<ClusterNodePoolPlacementPolicyArgs> placementPolicy)
-
placementPolicy
public ClusterNodePoolArgs.Builder placementPolicy(ClusterNodePoolPlacementPolicyArgs placementPolicy)
-
upgradeSettings
public ClusterNodePoolArgs.Builder upgradeSettings(@Nullable com.pulumi.core.Output<ClusterNodePoolUpgradeSettingsArgs> upgradeSettings)
- Parameters:
upgradeSettings
- Specifies the upgrade settings for NAP created node pools. Structure is documented below.- Returns:
- builder
-
upgradeSettings
public ClusterNodePoolArgs.Builder upgradeSettings(ClusterNodePoolUpgradeSettingsArgs upgradeSettings)
- Parameters:
upgradeSettings
- Specifies the upgrade settings for NAP created node pools. Structure is documented below.- Returns:
- builder
-
version
public ClusterNodePoolArgs.Builder version(@Nullable com.pulumi.core.Output<java.lang.String> version)
-
version
public ClusterNodePoolArgs.Builder version(java.lang.String version)
-
build
public ClusterNodePoolArgs build()
-
-