import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Import * * Kubernetes pools can be imported using the `{region}/{id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/k8sPool:K8sPool mypool fr-par/11111111-1111-1111-1111-111111111111 * ``` */ export declare class K8sPool extends pulumi.CustomResource { /** * Get an existing K8sPool resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: K8sPoolState, opts?: pulumi.CustomResourceOptions): K8sPool; /** * Returns true if the given object is an instance of K8sPool. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is K8sPool; /** * Enables the autohealing feature for this pool. */ readonly autohealing: pulumi.Output; /** * Enables the autoscaling feature for this pool. * > **Important:** When enabled, an update of the `size` will not be taken into account. */ readonly autoscaling: pulumi.Output; /** * The ID of the Kubernetes cluster on which this pool will be created. */ readonly clusterId: pulumi.Output; /** * The container runtime of the pool. * > **Important:** Updates to this field will recreate a new resource. */ readonly containerRuntime: pulumi.Output; /** * The creation date of the pool. */ readonly createdAt: pulumi.Output; /** * The actual size of the pool */ readonly currentSize: pulumi.Output; /** * The Kubelet arguments to be used by this pool */ readonly kubeletArgs: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The maximum size of the pool, used by the autoscaling feature. */ readonly maxSize: pulumi.Output; /** * The minimum size of the pool, used by the autoscaling feature. */ readonly minSize: pulumi.Output; /** * The name for the pool. * > **Important:** Updates to this field will recreate a new resource. */ readonly name: pulumi.Output; /** * The commercial type of the pool instances. Instances with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST). `external` is a special node type used to provision from other Cloud providers. * * > **Important:** Updates to this field will recreate a new resource. */ readonly nodeType: pulumi.Output; /** * (List of) The nodes in the default pool. */ readonly nodes: pulumi.Output; /** * The [placement group](https://www.scaleway.com/en/developers/api/instance/#path-placement-groups-create-a-placement-group) the nodes of the pool will be attached to. * > **Important:** Updates to this field will recreate a new resource. */ readonly placementGroupId: pulumi.Output; /** * Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway. * > **Important:** Updates to this field will recreate a new resource. */ readonly publicIpDisabled: pulumi.Output; /** * `region`) The region in which the pool should be created. */ readonly region: pulumi.Output; /** * The size of the system volume of the nodes in gigabyte */ readonly rootVolumeSizeInGb: pulumi.Output; /** * System volume type of the nodes composing the pool */ readonly rootVolumeType: pulumi.Output; /** * The size of the pool. * > **Important:** This field will only be used at creation if autoscaling is enabled. */ readonly size: pulumi.Output; /** * The status of the node. */ readonly status: pulumi.Output; /** * The tags associated with the pool. * > Note: As mentionned in [this document](https://github.com/scaleway/scaleway-cloud-controller-manager/blob/master/docs/tags.md#taints), taints of a pool's nodes are applied using tags. (Example: "taint=taintName=taineValue:Effect") */ readonly tags: pulumi.Output; /** * The last update date of the pool. */ readonly updatedAt: pulumi.Output; /** * The Pool upgrade policy */ readonly upgradePolicy: pulumi.Output; /** * The version of the pool. */ readonly version: pulumi.Output; /** * Whether to wait for the pool to be ready. */ readonly waitForPoolReady: pulumi.Output; /** * `zone`) The zone in which the pool should be created. * > **Important:** Updates to this field will recreate a new resource. */ readonly zone: pulumi.Output; /** * Create a K8sPool resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: K8sPoolArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering K8sPool resources. */ export interface K8sPoolState { /** * Enables the autohealing feature for this pool. */ autohealing?: pulumi.Input; /** * Enables the autoscaling feature for this pool. * > **Important:** When enabled, an update of the `size` will not be taken into account. */ autoscaling?: pulumi.Input; /** * The ID of the Kubernetes cluster on which this pool will be created. */ clusterId?: pulumi.Input; /** * The container runtime of the pool. * > **Important:** Updates to this field will recreate a new resource. */ containerRuntime?: pulumi.Input; /** * The creation date of the pool. */ createdAt?: pulumi.Input; /** * The actual size of the pool */ currentSize?: pulumi.Input; /** * The Kubelet arguments to be used by this pool */ kubeletArgs?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The maximum size of the pool, used by the autoscaling feature. */ maxSize?: pulumi.Input; /** * The minimum size of the pool, used by the autoscaling feature. */ minSize?: pulumi.Input; /** * The name for the pool. * > **Important:** Updates to this field will recreate a new resource. */ name?: pulumi.Input; /** * The commercial type of the pool instances. Instances with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST). `external` is a special node type used to provision from other Cloud providers. * * > **Important:** Updates to this field will recreate a new resource. */ nodeType?: pulumi.Input; /** * (List of) The nodes in the default pool. */ nodes?: pulumi.Input[]>; /** * The [placement group](https://www.scaleway.com/en/developers/api/instance/#path-placement-groups-create-a-placement-group) the nodes of the pool will be attached to. * > **Important:** Updates to this field will recreate a new resource. */ placementGroupId?: pulumi.Input; /** * Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway. * > **Important:** Updates to this field will recreate a new resource. */ publicIpDisabled?: pulumi.Input; /** * `region`) The region in which the pool should be created. */ region?: pulumi.Input; /** * The size of the system volume of the nodes in gigabyte */ rootVolumeSizeInGb?: pulumi.Input; /** * System volume type of the nodes composing the pool */ rootVolumeType?: pulumi.Input; /** * The size of the pool. * > **Important:** This field will only be used at creation if autoscaling is enabled. */ size?: pulumi.Input; /** * The status of the node. */ status?: pulumi.Input; /** * The tags associated with the pool. * > Note: As mentionned in [this document](https://github.com/scaleway/scaleway-cloud-controller-manager/blob/master/docs/tags.md#taints), taints of a pool's nodes are applied using tags. (Example: "taint=taintName=taineValue:Effect") */ tags?: pulumi.Input[]>; /** * The last update date of the pool. */ updatedAt?: pulumi.Input; /** * The Pool upgrade policy */ upgradePolicy?: pulumi.Input; /** * The version of the pool. */ version?: pulumi.Input; /** * Whether to wait for the pool to be ready. */ waitForPoolReady?: pulumi.Input; /** * `zone`) The zone in which the pool should be created. * > **Important:** Updates to this field will recreate a new resource. */ zone?: pulumi.Input; } /** * The set of arguments for constructing a K8sPool resource. */ export interface K8sPoolArgs { /** * Enables the autohealing feature for this pool. */ autohealing?: pulumi.Input; /** * Enables the autoscaling feature for this pool. * > **Important:** When enabled, an update of the `size` will not be taken into account. */ autoscaling?: pulumi.Input; /** * The ID of the Kubernetes cluster on which this pool will be created. */ clusterId: pulumi.Input; /** * The container runtime of the pool. * > **Important:** Updates to this field will recreate a new resource. */ containerRuntime?: pulumi.Input; /** * The Kubelet arguments to be used by this pool */ kubeletArgs?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The maximum size of the pool, used by the autoscaling feature. */ maxSize?: pulumi.Input; /** * The minimum size of the pool, used by the autoscaling feature. */ minSize?: pulumi.Input; /** * The name for the pool. * > **Important:** Updates to this field will recreate a new resource. */ name?: pulumi.Input; /** * The commercial type of the pool instances. Instances with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST). `external` is a special node type used to provision from other Cloud providers. * * > **Important:** Updates to this field will recreate a new resource. */ nodeType: pulumi.Input; /** * The [placement group](https://www.scaleway.com/en/developers/api/instance/#path-placement-groups-create-a-placement-group) the nodes of the pool will be attached to. * > **Important:** Updates to this field will recreate a new resource. */ placementGroupId?: pulumi.Input; /** * Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway. * > **Important:** Updates to this field will recreate a new resource. */ publicIpDisabled?: pulumi.Input; /** * `region`) The region in which the pool should be created. */ region?: pulumi.Input; /** * The size of the system volume of the nodes in gigabyte */ rootVolumeSizeInGb?: pulumi.Input; /** * System volume type of the nodes composing the pool */ rootVolumeType?: pulumi.Input; /** * The size of the pool. * > **Important:** This field will only be used at creation if autoscaling is enabled. */ size: pulumi.Input; /** * The tags associated with the pool. * > Note: As mentionned in [this document](https://github.com/scaleway/scaleway-cloud-controller-manager/blob/master/docs/tags.md#taints), taints of a pool's nodes are applied using tags. (Example: "taint=taintName=taineValue:Effect") */ tags?: pulumi.Input[]>; /** * The Pool upgrade policy */ upgradePolicy?: pulumi.Input; /** * Whether to wait for the pool to be ready. */ waitForPoolReady?: pulumi.Input; /** * `zone`) The zone in which the pool should be created. * > **Important:** Updates to this field will recreate a new resource. */ zone?: pulumi.Input; }