Class NodePoolState


  • public final class NodePoolState
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • autoscaling

        public java.util.Optional<com.pulumi.core.Output<NodePoolAutoscalingArgs>> autoscaling()
        Returns:
        Configuration required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. Structure is documented below.
      • cluster

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> cluster()
        Returns:
        The cluster to create the node pool for. Cluster must be present in `location` provided for clusters. May be specified in the format `projects/{{project}}/locations/{{location}}/clusters/{{cluster}}` or as just the name of the cluster. ***
      • initialNodeCount

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> initialNodeCount()
        Returns:
        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. WARNING: Resizing your node pool manually may change this value in your existing cluster, which will trigger destruction and recreation on the next provider run (to rectify the discrepancy). If you don't need this value, don't set it. If you do need it, you can use a lifecycle block to ignore subsqeuent changes to this field.
      • instanceGroupUrls

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> instanceGroupUrls()
        Returns:
        The resource URLs of the managed instance groups associated with this node pool.
      • location

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> location()
        Returns:
        The location (region or zone) of the cluster. ***
      • managedInstanceGroupUrls

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> managedInstanceGroupUrls()
        Returns:
        List of instance group URLs which have been assigned to this node pool.
      • management

        public java.util.Optional<com.pulumi.core.Output<NodePoolManagementArgs>> management()
        Returns:
        Node management configuration, wherein auto-repair and auto-upgrade is configured. Structure is documented below.
      • maxPodsPerNode

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> maxPodsPerNode()
        Returns:
        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. See the [official documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/flexible-pod-cidr) for more information.
      • name

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
        Returns:
        The name of the node pool. If left blank, the provider will auto-generate a unique name.
      • namePrefix

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> namePrefix()
        Returns:
        Creates a unique name for the node pool beginning with the specified prefix. Conflicts with `name`.
      • networkConfig

        public java.util.Optional<com.pulumi.core.Output<NodePoolNetworkConfigArgs>> networkConfig()
        Returns:
        The network configuration of the pool. Such as configuration for [Adding Pod IP address ranges](https://cloud.google.com/kubernetes-engine/docs/how-to/multi-pod-cidr)) to the node pool. Or enabling private nodes. Structure is documented below
      • nodeConfig

        public java.util.Optional<com.pulumi.core.Output<NodePoolNodeConfigArgs>> nodeConfig()
        Returns:
        Parameters used in creating the node pool. See gcp.container.Cluster for schema.
      • nodeCount

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> nodeCount()
        Returns:
        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`.
      • nodeLocations

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> nodeLocations()
        Returns:
        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. > Note: `node_locations` will not revert to the cluster's default set of zones upon being unset. You must manually reconcile the list of zones with your cluster.
      • operation

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> operation()
      • placementPolicy

        public java.util.Optional<com.pulumi.core.Output<NodePoolPlacementPolicyArgs>> placementPolicy()
        Returns:
        Specifies a custom placement policy for the nodes. <a name="nested_autoscaling"></a>The `autoscaling` block supports (either total or per zone limits are required):
      • project

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> project()
        Returns:
        The ID of the project in which to create the node pool. If blank, the provider-configured project will be used.
      • upgradeSettings

        public java.util.Optional<com.pulumi.core.Output<NodePoolUpgradeSettingsArgs>> upgradeSettings()
        Returns:
        Specify node upgrade settings to change how GKE upgrades nodes. The maximum number of nodes upgraded simultaneously is limited to 20. Structure is documented below.
      • version

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> version()
        Returns:
        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 the provider will see spurious diffs when fuzzy versions are used. See the `gcp.container.getEngineVersions` data source's `version_prefix` field to approximate fuzzy versions in a provider-compatible way.