1. Packages
  2. Ibm Provider
  3. API Docs
  4. ContainerWorkerPool
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.ContainerWorkerPool

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create, update, or delete a worker pool. For more information, about container worker pool, see adding worker nodes and zones to clusters.

    Example Usage

    The following example creates the worker pool mypool for the cluster that is named mycluster.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.ContainerWorkerPool;
    import com.pulumi.ibm.ContainerWorkerPoolArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testaccWorkerpool = new ContainerWorkerPool("testaccWorkerpool", ContainerWorkerPoolArgs.builder()
                .workerPoolName("terraform_test_pool")
                .machineType("u2c.2x4")
                .cluster("my_cluster")
                .sizePerZone(1)
                .hardware("shared")
                .diskEncryption("true")
                .labels(Map.of("test", "test-pool"))
                .timeouts(ContainerWorkerPoolTimeoutsArgs.builder()
                    .update("180m")
                    .build())
                .build());
    
        }
    }
    
    resources:
      testaccWorkerpool:
        type: ibm:ContainerWorkerPool
        properties:
          workerPoolName: terraform_test_pool
          machineType: u2c.2x4
          cluster: my_cluster
          sizePerZone: 1
          hardware: shared
          diskEncryption: 'true'
          labels:
            test: test-pool
          # User can increase timeouts
          timeouts:
            - update: 180m
    

    Create the Openshift cluster worker Pool with entitlement:

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const testPool = new ibm.ContainerWorkerPool("testPool", {
        cluster: "openshift_cluster_example",
        diskEncryption: true,
        entitlement: "cloud_pak",
        hardware: "shared",
        labels: {
            test: "oc-pool",
        },
        machineType: "b3c.4x16",
        sizePerZone: 3,
        workerPoolName: "test_openshift_wpool",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    test_pool = ibm.ContainerWorkerPool("testPool",
        cluster="openshift_cluster_example",
        disk_encryption=True,
        entitlement="cloud_pak",
        hardware="shared",
        labels={
            "test": "oc-pool",
        },
        machine_type="b3c.4x16",
        size_per_zone=3,
        worker_pool_name="test_openshift_wpool")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewContainerWorkerPool(ctx, "testPool", &ibm.ContainerWorkerPoolArgs{
    			Cluster:        pulumi.String("openshift_cluster_example"),
    			DiskEncryption: pulumi.Bool(true),
    			Entitlement:    pulumi.String("cloud_pak"),
    			Hardware:       pulumi.String("shared"),
    			Labels: pulumi.StringMap{
    				"test": pulumi.String("oc-pool"),
    			},
    			MachineType:    pulumi.String("b3c.4x16"),
    			SizePerZone:    pulumi.Float64(3),
    			WorkerPoolName: pulumi.String("test_openshift_wpool"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var testPool = new Ibm.ContainerWorkerPool("testPool", new()
        {
            Cluster = "openshift_cluster_example",
            DiskEncryption = true,
            Entitlement = "cloud_pak",
            Hardware = "shared",
            Labels = 
            {
                { "test", "oc-pool" },
            },
            MachineType = "b3c.4x16",
            SizePerZone = 3,
            WorkerPoolName = "test_openshift_wpool",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.ContainerWorkerPool;
    import com.pulumi.ibm.ContainerWorkerPoolArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testPool = new ContainerWorkerPool("testPool", ContainerWorkerPoolArgs.builder()
                .cluster("openshift_cluster_example")
                .diskEncryption("true")
                .entitlement("cloud_pak")
                .hardware("shared")
                .labels(Map.of("test", "oc-pool"))
                .machineType("b3c.4x16")
                .sizePerZone(3)
                .workerPoolName("test_openshift_wpool")
                .build());
    
        }
    }
    
    resources:
      testPool:
        type: ibm:ContainerWorkerPool
        properties:
          cluster: openshift_cluster_example
          diskEncryption: 'true'
          entitlement: cloud_pak
          hardware: shared
          labels:
            test: oc-pool
          machineType: b3c.4x16
          sizePerZone: 3
          workerPoolName: test_openshift_wpool
    

    Create ContainerWorkerPool Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ContainerWorkerPool(name: string, args: ContainerWorkerPoolArgs, opts?: CustomResourceOptions);
    @overload
    def ContainerWorkerPool(resource_name: str,
                            args: ContainerWorkerPoolArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContainerWorkerPool(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            cluster: Optional[str] = None,
                            worker_pool_name: Optional[str] = None,
                            size_per_zone: Optional[float] = None,
                            machine_type: Optional[str] = None,
                            hardware: Optional[str] = None,
                            import_on_create: Optional[bool] = None,
                            labels: Optional[Mapping[str, str]] = None,
                            entitlement: Optional[str] = None,
                            operating_system: Optional[str] = None,
                            orphan_on_delete: Optional[bool] = None,
                            region: Optional[str] = None,
                            resource_group_id: Optional[str] = None,
                            disk_encryption: Optional[bool] = None,
                            taints: Optional[Sequence[ContainerWorkerPoolTaintArgs]] = None,
                            timeouts: Optional[ContainerWorkerPoolTimeoutsArgs] = None,
                            container_worker_pool_id: Optional[str] = None)
    func NewContainerWorkerPool(ctx *Context, name string, args ContainerWorkerPoolArgs, opts ...ResourceOption) (*ContainerWorkerPool, error)
    public ContainerWorkerPool(string name, ContainerWorkerPoolArgs args, CustomResourceOptions? opts = null)
    public ContainerWorkerPool(String name, ContainerWorkerPoolArgs args)
    public ContainerWorkerPool(String name, ContainerWorkerPoolArgs args, CustomResourceOptions options)
    
    type: ibm:ContainerWorkerPool
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ContainerWorkerPoolArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ContainerWorkerPoolArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ContainerWorkerPoolArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContainerWorkerPoolArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContainerWorkerPoolArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var containerWorkerPoolResource = new Ibm.ContainerWorkerPool("containerWorkerPoolResource", new()
    {
        Cluster = "string",
        WorkerPoolName = "string",
        SizePerZone = 0,
        MachineType = "string",
        Hardware = "string",
        ImportOnCreate = false,
        Labels = 
        {
            { "string", "string" },
        },
        Entitlement = "string",
        OperatingSystem = "string",
        OrphanOnDelete = false,
        ResourceGroupId = "string",
        DiskEncryption = false,
        Taints = new[]
        {
            new Ibm.Inputs.ContainerWorkerPoolTaintArgs
            {
                Effect = "string",
                Key = "string",
                Value = "string",
            },
        },
        Timeouts = new Ibm.Inputs.ContainerWorkerPoolTimeoutsArgs
        {
            Update = "string",
        },
        ContainerWorkerPoolId = "string",
    });
    
    example, err := ibm.NewContainerWorkerPool(ctx, "containerWorkerPoolResource", &ibm.ContainerWorkerPoolArgs{
    	Cluster:        pulumi.String("string"),
    	WorkerPoolName: pulumi.String("string"),
    	SizePerZone:    pulumi.Float64(0),
    	MachineType:    pulumi.String("string"),
    	Hardware:       pulumi.String("string"),
    	ImportOnCreate: pulumi.Bool(false),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Entitlement:     pulumi.String("string"),
    	OperatingSystem: pulumi.String("string"),
    	OrphanOnDelete:  pulumi.Bool(false),
    	ResourceGroupId: pulumi.String("string"),
    	DiskEncryption:  pulumi.Bool(false),
    	Taints: ibm.ContainerWorkerPoolTaintArray{
    		&ibm.ContainerWorkerPoolTaintArgs{
    			Effect: pulumi.String("string"),
    			Key:    pulumi.String("string"),
    			Value:  pulumi.String("string"),
    		},
    	},
    	Timeouts: &ibm.ContainerWorkerPoolTimeoutsArgs{
    		Update: pulumi.String("string"),
    	},
    	ContainerWorkerPoolId: pulumi.String("string"),
    })
    
    var containerWorkerPoolResource = new ContainerWorkerPool("containerWorkerPoolResource", ContainerWorkerPoolArgs.builder()
        .cluster("string")
        .workerPoolName("string")
        .sizePerZone(0)
        .machineType("string")
        .hardware("string")
        .importOnCreate(false)
        .labels(Map.of("string", "string"))
        .entitlement("string")
        .operatingSystem("string")
        .orphanOnDelete(false)
        .resourceGroupId("string")
        .diskEncryption(false)
        .taints(ContainerWorkerPoolTaintArgs.builder()
            .effect("string")
            .key("string")
            .value("string")
            .build())
        .timeouts(ContainerWorkerPoolTimeoutsArgs.builder()
            .update("string")
            .build())
        .containerWorkerPoolId("string")
        .build());
    
    container_worker_pool_resource = ibm.ContainerWorkerPool("containerWorkerPoolResource",
        cluster="string",
        worker_pool_name="string",
        size_per_zone=0,
        machine_type="string",
        hardware="string",
        import_on_create=False,
        labels={
            "string": "string",
        },
        entitlement="string",
        operating_system="string",
        orphan_on_delete=False,
        resource_group_id="string",
        disk_encryption=False,
        taints=[{
            "effect": "string",
            "key": "string",
            "value": "string",
        }],
        timeouts={
            "update": "string",
        },
        container_worker_pool_id="string")
    
    const containerWorkerPoolResource = new ibm.ContainerWorkerPool("containerWorkerPoolResource", {
        cluster: "string",
        workerPoolName: "string",
        sizePerZone: 0,
        machineType: "string",
        hardware: "string",
        importOnCreate: false,
        labels: {
            string: "string",
        },
        entitlement: "string",
        operatingSystem: "string",
        orphanOnDelete: false,
        resourceGroupId: "string",
        diskEncryption: false,
        taints: [{
            effect: "string",
            key: "string",
            value: "string",
        }],
        timeouts: {
            update: "string",
        },
        containerWorkerPoolId: "string",
    });
    
    type: ibm:ContainerWorkerPool
    properties:
        cluster: string
        containerWorkerPoolId: string
        diskEncryption: false
        entitlement: string
        hardware: string
        importOnCreate: false
        labels:
            string: string
        machineType: string
        operatingSystem: string
        orphanOnDelete: false
        resourceGroupId: string
        sizePerZone: 0
        taints:
            - effect: string
              key: string
              value: string
        timeouts:
            update: string
        workerPoolName: string
    

    ContainerWorkerPool Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ContainerWorkerPool resource accepts the following input properties:

    Cluster string
    The name or ID of the cluster where you want to enable or disable the feature.
    MachineType string
    The machine type for your worker node. The machine type determines the amount of memory, CPU, and disk space that is available to the worker node. For an overview of supported machine types, see Planning your worker node setup.
    SizePerZone double
    The number of worker nodes per zone that you want to add to the worker pool.
    WorkerPoolName string
    worker pool name
    ContainerWorkerPoolId string
    (String) The unique identifier of the worker pool in the format <cluster_name_id>/<worker_pool_id>. Note To reference the worker pool ID in other resources use below interpolation syntax. For example, : ${element(split("/",ibm_container_worker_pool.testacc_workerpool.id),1)}
    DiskEncryption bool
    Optional-If set to true, the worker node disks are set up with an AES 256-bit encryption. If set to false, the disk encryption for the worker node is disabled. For more information, see Encrypted disks.Yes.
    Entitlement string
    If you purchased an IBM Cloud Cloud Pak that includes an entitlement to run worker nodes that are installed with OpenShift Container Platform, enter entitlement to create your worker pool with that entitlement so that you are not charged twice for the OpenShift license. Note that this option can be set only when you create the worker pool. After the worker pool is created, the cost for the OpenShift license automates when you add worker nodes to your worker pool. Note It is set only for the first time creation of the worker pool, modification in the further executes will not have any impacts. Set this argument to cloud_pak only if you use this cluster with a cloud pak that has an OpenShift entitlement.
    Hardware string
    The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. This option is available for virtual machine worker node flavors only.
    ImportOnCreate bool
    Import an existing WorkerPool from the cluster, instead of creating a new.
    Labels Dictionary<string, string>
    A list of labels that you want to add to your worker pool. The labels can help you find the worker pool more easily later.
    OperatingSystem string
    The operating system of the workers in the worker pool.
    OrphanOnDelete bool

    Orphan the Worker Pool resource, instead of deleting it. The argument allows the user to remove the worker pool from the state, without deleting the actual cloud resource. The worker pool can be re-imported into the state using the import_on_create argument.

    Deprecated reference

    Region string
    The region where the cluster is provisioned. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.

    Deprecated: Deprecated

    ResourceGroupId string
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    Taints List<ContainerWorkerPoolTaint>

    A nested block that sets or removes Kubernetes taints for all worker nodes in a worker pool

    Nested scheme for taints:

    Timeouts ContainerWorkerPoolTimeouts
    Cluster string
    The name or ID of the cluster where you want to enable or disable the feature.
    MachineType string
    The machine type for your worker node. The machine type determines the amount of memory, CPU, and disk space that is available to the worker node. For an overview of supported machine types, see Planning your worker node setup.
    SizePerZone float64
    The number of worker nodes per zone that you want to add to the worker pool.
    WorkerPoolName string
    worker pool name
    ContainerWorkerPoolId string
    (String) The unique identifier of the worker pool in the format <cluster_name_id>/<worker_pool_id>. Note To reference the worker pool ID in other resources use below interpolation syntax. For example, : ${element(split("/",ibm_container_worker_pool.testacc_workerpool.id),1)}
    DiskEncryption bool
    Optional-If set to true, the worker node disks are set up with an AES 256-bit encryption. If set to false, the disk encryption for the worker node is disabled. For more information, see Encrypted disks.Yes.
    Entitlement string
    If you purchased an IBM Cloud Cloud Pak that includes an entitlement to run worker nodes that are installed with OpenShift Container Platform, enter entitlement to create your worker pool with that entitlement so that you are not charged twice for the OpenShift license. Note that this option can be set only when you create the worker pool. After the worker pool is created, the cost for the OpenShift license automates when you add worker nodes to your worker pool. Note It is set only for the first time creation of the worker pool, modification in the further executes will not have any impacts. Set this argument to cloud_pak only if you use this cluster with a cloud pak that has an OpenShift entitlement.
    Hardware string
    The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. This option is available for virtual machine worker node flavors only.
    ImportOnCreate bool
    Import an existing WorkerPool from the cluster, instead of creating a new.
    Labels map[string]string
    A list of labels that you want to add to your worker pool. The labels can help you find the worker pool more easily later.
    OperatingSystem string
    The operating system of the workers in the worker pool.
    OrphanOnDelete bool

    Orphan the Worker Pool resource, instead of deleting it. The argument allows the user to remove the worker pool from the state, without deleting the actual cloud resource. The worker pool can be re-imported into the state using the import_on_create argument.

    Deprecated reference

    Region string
    The region where the cluster is provisioned. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.

    Deprecated: Deprecated

    ResourceGroupId string
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    Taints []ContainerWorkerPoolTaintArgs

    A nested block that sets or removes Kubernetes taints for all worker nodes in a worker pool

    Nested scheme for taints:

    Timeouts ContainerWorkerPoolTimeoutsArgs
    cluster String
    The name or ID of the cluster where you want to enable or disable the feature.
    machineType String
    The machine type for your worker node. The machine type determines the amount of memory, CPU, and disk space that is available to the worker node. For an overview of supported machine types, see Planning your worker node setup.
    sizePerZone Double
    The number of worker nodes per zone that you want to add to the worker pool.
    workerPoolName String
    worker pool name
    containerWorkerPoolId String
    (String) The unique identifier of the worker pool in the format <cluster_name_id>/<worker_pool_id>. Note To reference the worker pool ID in other resources use below interpolation syntax. For example, : ${element(split("/",ibm_container_worker_pool.testacc_workerpool.id),1)}
    diskEncryption Boolean
    Optional-If set to true, the worker node disks are set up with an AES 256-bit encryption. If set to false, the disk encryption for the worker node is disabled. For more information, see Encrypted disks.Yes.
    entitlement String
    If you purchased an IBM Cloud Cloud Pak that includes an entitlement to run worker nodes that are installed with OpenShift Container Platform, enter entitlement to create your worker pool with that entitlement so that you are not charged twice for the OpenShift license. Note that this option can be set only when you create the worker pool. After the worker pool is created, the cost for the OpenShift license automates when you add worker nodes to your worker pool. Note It is set only for the first time creation of the worker pool, modification in the further executes will not have any impacts. Set this argument to cloud_pak only if you use this cluster with a cloud pak that has an OpenShift entitlement.
    hardware String
    The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. This option is available for virtual machine worker node flavors only.
    importOnCreate Boolean
    Import an existing WorkerPool from the cluster, instead of creating a new.
    labels Map<String,String>
    A list of labels that you want to add to your worker pool. The labels can help you find the worker pool more easily later.
    operatingSystem String
    The operating system of the workers in the worker pool.
    orphanOnDelete Boolean

    Orphan the Worker Pool resource, instead of deleting it. The argument allows the user to remove the worker pool from the state, without deleting the actual cloud resource. The worker pool can be re-imported into the state using the import_on_create argument.

    Deprecated reference

    region String
    The region where the cluster is provisioned. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.

    Deprecated: Deprecated

    resourceGroupId String
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    taints List<ContainerWorkerPoolTaint>

    A nested block that sets or removes Kubernetes taints for all worker nodes in a worker pool

    Nested scheme for taints:

    timeouts ContainerWorkerPoolTimeouts
    cluster string
    The name or ID of the cluster where you want to enable or disable the feature.
    machineType string
    The machine type for your worker node. The machine type determines the amount of memory, CPU, and disk space that is available to the worker node. For an overview of supported machine types, see Planning your worker node setup.
    sizePerZone number
    The number of worker nodes per zone that you want to add to the worker pool.
    workerPoolName string
    worker pool name
    containerWorkerPoolId string
    (String) The unique identifier of the worker pool in the format <cluster_name_id>/<worker_pool_id>. Note To reference the worker pool ID in other resources use below interpolation syntax. For example, : ${element(split("/",ibm_container_worker_pool.testacc_workerpool.id),1)}
    diskEncryption boolean
    Optional-If set to true, the worker node disks are set up with an AES 256-bit encryption. If set to false, the disk encryption for the worker node is disabled. For more information, see Encrypted disks.Yes.
    entitlement string
    If you purchased an IBM Cloud Cloud Pak that includes an entitlement to run worker nodes that are installed with OpenShift Container Platform, enter entitlement to create your worker pool with that entitlement so that you are not charged twice for the OpenShift license. Note that this option can be set only when you create the worker pool. After the worker pool is created, the cost for the OpenShift license automates when you add worker nodes to your worker pool. Note It is set only for the first time creation of the worker pool, modification in the further executes will not have any impacts. Set this argument to cloud_pak only if you use this cluster with a cloud pak that has an OpenShift entitlement.
    hardware string
    The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. This option is available for virtual machine worker node flavors only.
    importOnCreate boolean
    Import an existing WorkerPool from the cluster, instead of creating a new.
    labels {[key: string]: string}
    A list of labels that you want to add to your worker pool. The labels can help you find the worker pool more easily later.
    operatingSystem string
    The operating system of the workers in the worker pool.
    orphanOnDelete boolean

    Orphan the Worker Pool resource, instead of deleting it. The argument allows the user to remove the worker pool from the state, without deleting the actual cloud resource. The worker pool can be re-imported into the state using the import_on_create argument.

    Deprecated reference

    region string
    The region where the cluster is provisioned. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.

    Deprecated: Deprecated

    resourceGroupId string
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    taints ContainerWorkerPoolTaint[]

    A nested block that sets or removes Kubernetes taints for all worker nodes in a worker pool

    Nested scheme for taints:

    timeouts ContainerWorkerPoolTimeouts
    cluster str
    The name or ID of the cluster where you want to enable or disable the feature.
    machine_type str
    The machine type for your worker node. The machine type determines the amount of memory, CPU, and disk space that is available to the worker node. For an overview of supported machine types, see Planning your worker node setup.
    size_per_zone float
    The number of worker nodes per zone that you want to add to the worker pool.
    worker_pool_name str
    worker pool name
    container_worker_pool_id str
    (String) The unique identifier of the worker pool in the format <cluster_name_id>/<worker_pool_id>. Note To reference the worker pool ID in other resources use below interpolation syntax. For example, : ${element(split("/",ibm_container_worker_pool.testacc_workerpool.id),1)}
    disk_encryption bool
    Optional-If set to true, the worker node disks are set up with an AES 256-bit encryption. If set to false, the disk encryption for the worker node is disabled. For more information, see Encrypted disks.Yes.
    entitlement str
    If you purchased an IBM Cloud Cloud Pak that includes an entitlement to run worker nodes that are installed with OpenShift Container Platform, enter entitlement to create your worker pool with that entitlement so that you are not charged twice for the OpenShift license. Note that this option can be set only when you create the worker pool. After the worker pool is created, the cost for the OpenShift license automates when you add worker nodes to your worker pool. Note It is set only for the first time creation of the worker pool, modification in the further executes will not have any impacts. Set this argument to cloud_pak only if you use this cluster with a cloud pak that has an OpenShift entitlement.
    hardware str
    The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. This option is available for virtual machine worker node flavors only.
    import_on_create bool
    Import an existing WorkerPool from the cluster, instead of creating a new.
    labels Mapping[str, str]
    A list of labels that you want to add to your worker pool. The labels can help you find the worker pool more easily later.
    operating_system str
    The operating system of the workers in the worker pool.
    orphan_on_delete bool

    Orphan the Worker Pool resource, instead of deleting it. The argument allows the user to remove the worker pool from the state, without deleting the actual cloud resource. The worker pool can be re-imported into the state using the import_on_create argument.

    Deprecated reference

    region str
    The region where the cluster is provisioned. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.

    Deprecated: Deprecated

    resource_group_id str
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    taints Sequence[ContainerWorkerPoolTaintArgs]

    A nested block that sets or removes Kubernetes taints for all worker nodes in a worker pool

    Nested scheme for taints:

    timeouts ContainerWorkerPoolTimeoutsArgs
    cluster String
    The name or ID of the cluster where you want to enable or disable the feature.
    machineType String
    The machine type for your worker node. The machine type determines the amount of memory, CPU, and disk space that is available to the worker node. For an overview of supported machine types, see Planning your worker node setup.
    sizePerZone Number
    The number of worker nodes per zone that you want to add to the worker pool.
    workerPoolName String
    worker pool name
    containerWorkerPoolId String
    (String) The unique identifier of the worker pool in the format <cluster_name_id>/<worker_pool_id>. Note To reference the worker pool ID in other resources use below interpolation syntax. For example, : ${element(split("/",ibm_container_worker_pool.testacc_workerpool.id),1)}
    diskEncryption Boolean
    Optional-If set to true, the worker node disks are set up with an AES 256-bit encryption. If set to false, the disk encryption for the worker node is disabled. For more information, see Encrypted disks.Yes.
    entitlement String
    If you purchased an IBM Cloud Cloud Pak that includes an entitlement to run worker nodes that are installed with OpenShift Container Platform, enter entitlement to create your worker pool with that entitlement so that you are not charged twice for the OpenShift license. Note that this option can be set only when you create the worker pool. After the worker pool is created, the cost for the OpenShift license automates when you add worker nodes to your worker pool. Note It is set only for the first time creation of the worker pool, modification in the further executes will not have any impacts. Set this argument to cloud_pak only if you use this cluster with a cloud pak that has an OpenShift entitlement.
    hardware String
    The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. This option is available for virtual machine worker node flavors only.
    importOnCreate Boolean
    Import an existing WorkerPool from the cluster, instead of creating a new.
    labels Map<String>
    A list of labels that you want to add to your worker pool. The labels can help you find the worker pool more easily later.
    operatingSystem String
    The operating system of the workers in the worker pool.
    orphanOnDelete Boolean

    Orphan the Worker Pool resource, instead of deleting it. The argument allows the user to remove the worker pool from the state, without deleting the actual cloud resource. The worker pool can be re-imported into the state using the import_on_create argument.

    Deprecated reference

    region String
    The region where the cluster is provisioned. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.

    Deprecated: Deprecated

    resourceGroupId String
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    taints List<Property Map>

    A nested block that sets or removes Kubernetes taints for all worker nodes in a worker pool

    Nested scheme for taints:

    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ContainerWorkerPool resource produces the following output properties:

    AutoscaleEnabled bool
    (Bool) Autoscaling is enabled on the workerpool
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster
    State string
    (String) The state of the worker pool.
    WorkerPoolId string
    (String) The unique identifier of the worker pool.
    Zones List<ContainerWorkerPoolZone>
    List - A list of zones that are attached to the worker pool.
    AutoscaleEnabled bool
    (Bool) Autoscaling is enabled on the workerpool
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster
    State string
    (String) The state of the worker pool.
    WorkerPoolId string
    (String) The unique identifier of the worker pool.
    Zones []ContainerWorkerPoolZone
    List - A list of zones that are attached to the worker pool.
    autoscaleEnabled Boolean
    (Bool) Autoscaling is enabled on the workerpool
    id String
    The provider-assigned unique ID for this managed resource.
    resourceControllerUrl String
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster
    state String
    (String) The state of the worker pool.
    workerPoolId String
    (String) The unique identifier of the worker pool.
    zones List<ContainerWorkerPoolZone>
    List - A list of zones that are attached to the worker pool.
    autoscaleEnabled boolean
    (Bool) Autoscaling is enabled on the workerpool
    id string
    The provider-assigned unique ID for this managed resource.
    resourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster
    state string
    (String) The state of the worker pool.
    workerPoolId string
    (String) The unique identifier of the worker pool.
    zones ContainerWorkerPoolZone[]
    List - A list of zones that are attached to the worker pool.
    autoscale_enabled bool
    (Bool) Autoscaling is enabled on the workerpool
    id str
    The provider-assigned unique ID for this managed resource.
    resource_controller_url str
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster
    state str
    (String) The state of the worker pool.
    worker_pool_id str
    (String) The unique identifier of the worker pool.
    zones Sequence[ContainerWorkerPoolZone]
    List - A list of zones that are attached to the worker pool.
    autoscaleEnabled Boolean
    (Bool) Autoscaling is enabled on the workerpool
    id String
    The provider-assigned unique ID for this managed resource.
    resourceControllerUrl String
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster
    state String
    (String) The state of the worker pool.
    workerPoolId String
    (String) The unique identifier of the worker pool.
    zones List<Property Map>
    List - A list of zones that are attached to the worker pool.

    Look up Existing ContainerWorkerPool Resource

    Get an existing ContainerWorkerPool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ContainerWorkerPoolState, opts?: CustomResourceOptions): ContainerWorkerPool
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            autoscale_enabled: Optional[bool] = None,
            cluster: Optional[str] = None,
            container_worker_pool_id: Optional[str] = None,
            disk_encryption: Optional[bool] = None,
            entitlement: Optional[str] = None,
            hardware: Optional[str] = None,
            import_on_create: Optional[bool] = None,
            labels: Optional[Mapping[str, str]] = None,
            machine_type: Optional[str] = None,
            operating_system: Optional[str] = None,
            orphan_on_delete: Optional[bool] = None,
            region: Optional[str] = None,
            resource_controller_url: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            size_per_zone: Optional[float] = None,
            state: Optional[str] = None,
            taints: Optional[Sequence[ContainerWorkerPoolTaintArgs]] = None,
            timeouts: Optional[ContainerWorkerPoolTimeoutsArgs] = None,
            worker_pool_id: Optional[str] = None,
            worker_pool_name: Optional[str] = None,
            zones: Optional[Sequence[ContainerWorkerPoolZoneArgs]] = None) -> ContainerWorkerPool
    func GetContainerWorkerPool(ctx *Context, name string, id IDInput, state *ContainerWorkerPoolState, opts ...ResourceOption) (*ContainerWorkerPool, error)
    public static ContainerWorkerPool Get(string name, Input<string> id, ContainerWorkerPoolState? state, CustomResourceOptions? opts = null)
    public static ContainerWorkerPool get(String name, Output<String> id, ContainerWorkerPoolState state, CustomResourceOptions options)
    resources:  _:    type: ibm:ContainerWorkerPool    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutoscaleEnabled bool
    (Bool) Autoscaling is enabled on the workerpool
    Cluster string
    The name or ID of the cluster where you want to enable or disable the feature.
    ContainerWorkerPoolId string
    (String) The unique identifier of the worker pool in the format <cluster_name_id>/<worker_pool_id>. Note To reference the worker pool ID in other resources use below interpolation syntax. For example, : ${element(split("/",ibm_container_worker_pool.testacc_workerpool.id),1)}
    DiskEncryption bool
    Optional-If set to true, the worker node disks are set up with an AES 256-bit encryption. If set to false, the disk encryption for the worker node is disabled. For more information, see Encrypted disks.Yes.
    Entitlement string
    If you purchased an IBM Cloud Cloud Pak that includes an entitlement to run worker nodes that are installed with OpenShift Container Platform, enter entitlement to create your worker pool with that entitlement so that you are not charged twice for the OpenShift license. Note that this option can be set only when you create the worker pool. After the worker pool is created, the cost for the OpenShift license automates when you add worker nodes to your worker pool. Note It is set only for the first time creation of the worker pool, modification in the further executes will not have any impacts. Set this argument to cloud_pak only if you use this cluster with a cloud pak that has an OpenShift entitlement.
    Hardware string
    The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. This option is available for virtual machine worker node flavors only.
    ImportOnCreate bool
    Import an existing WorkerPool from the cluster, instead of creating a new.
    Labels Dictionary<string, string>
    A list of labels that you want to add to your worker pool. The labels can help you find the worker pool more easily later.
    MachineType string
    The machine type for your worker node. The machine type determines the amount of memory, CPU, and disk space that is available to the worker node. For an overview of supported machine types, see Planning your worker node setup.
    OperatingSystem string
    The operating system of the workers in the worker pool.
    OrphanOnDelete bool

    Orphan the Worker Pool resource, instead of deleting it. The argument allows the user to remove the worker pool from the state, without deleting the actual cloud resource. The worker pool can be re-imported into the state using the import_on_create argument.

    Deprecated reference

    Region string
    The region where the cluster is provisioned. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.

    Deprecated: Deprecated

    ResourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster
    ResourceGroupId string
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    SizePerZone double
    The number of worker nodes per zone that you want to add to the worker pool.
    State string
    (String) The state of the worker pool.
    Taints List<ContainerWorkerPoolTaint>

    A nested block that sets or removes Kubernetes taints for all worker nodes in a worker pool

    Nested scheme for taints:

    Timeouts ContainerWorkerPoolTimeouts
    WorkerPoolId string
    (String) The unique identifier of the worker pool.
    WorkerPoolName string
    worker pool name
    Zones List<ContainerWorkerPoolZone>
    List - A list of zones that are attached to the worker pool.
    AutoscaleEnabled bool
    (Bool) Autoscaling is enabled on the workerpool
    Cluster string
    The name or ID of the cluster where you want to enable or disable the feature.
    ContainerWorkerPoolId string
    (String) The unique identifier of the worker pool in the format <cluster_name_id>/<worker_pool_id>. Note To reference the worker pool ID in other resources use below interpolation syntax. For example, : ${element(split("/",ibm_container_worker_pool.testacc_workerpool.id),1)}
    DiskEncryption bool
    Optional-If set to true, the worker node disks are set up with an AES 256-bit encryption. If set to false, the disk encryption for the worker node is disabled. For more information, see Encrypted disks.Yes.
    Entitlement string
    If you purchased an IBM Cloud Cloud Pak that includes an entitlement to run worker nodes that are installed with OpenShift Container Platform, enter entitlement to create your worker pool with that entitlement so that you are not charged twice for the OpenShift license. Note that this option can be set only when you create the worker pool. After the worker pool is created, the cost for the OpenShift license automates when you add worker nodes to your worker pool. Note It is set only for the first time creation of the worker pool, modification in the further executes will not have any impacts. Set this argument to cloud_pak only if you use this cluster with a cloud pak that has an OpenShift entitlement.
    Hardware string
    The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. This option is available for virtual machine worker node flavors only.
    ImportOnCreate bool
    Import an existing WorkerPool from the cluster, instead of creating a new.
    Labels map[string]string
    A list of labels that you want to add to your worker pool. The labels can help you find the worker pool more easily later.
    MachineType string
    The machine type for your worker node. The machine type determines the amount of memory, CPU, and disk space that is available to the worker node. For an overview of supported machine types, see Planning your worker node setup.
    OperatingSystem string
    The operating system of the workers in the worker pool.
    OrphanOnDelete bool

    Orphan the Worker Pool resource, instead of deleting it. The argument allows the user to remove the worker pool from the state, without deleting the actual cloud resource. The worker pool can be re-imported into the state using the import_on_create argument.

    Deprecated reference

    Region string
    The region where the cluster is provisioned. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.

    Deprecated: Deprecated

    ResourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster
    ResourceGroupId string
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    SizePerZone float64
    The number of worker nodes per zone that you want to add to the worker pool.
    State string
    (String) The state of the worker pool.
    Taints []ContainerWorkerPoolTaintArgs

    A nested block that sets or removes Kubernetes taints for all worker nodes in a worker pool

    Nested scheme for taints:

    Timeouts ContainerWorkerPoolTimeoutsArgs
    WorkerPoolId string
    (String) The unique identifier of the worker pool.
    WorkerPoolName string
    worker pool name
    Zones []ContainerWorkerPoolZoneArgs
    List - A list of zones that are attached to the worker pool.
    autoscaleEnabled Boolean
    (Bool) Autoscaling is enabled on the workerpool
    cluster String
    The name or ID of the cluster where you want to enable or disable the feature.
    containerWorkerPoolId String
    (String) The unique identifier of the worker pool in the format <cluster_name_id>/<worker_pool_id>. Note To reference the worker pool ID in other resources use below interpolation syntax. For example, : ${element(split("/",ibm_container_worker_pool.testacc_workerpool.id),1)}
    diskEncryption Boolean
    Optional-If set to true, the worker node disks are set up with an AES 256-bit encryption. If set to false, the disk encryption for the worker node is disabled. For more information, see Encrypted disks.Yes.
    entitlement String
    If you purchased an IBM Cloud Cloud Pak that includes an entitlement to run worker nodes that are installed with OpenShift Container Platform, enter entitlement to create your worker pool with that entitlement so that you are not charged twice for the OpenShift license. Note that this option can be set only when you create the worker pool. After the worker pool is created, the cost for the OpenShift license automates when you add worker nodes to your worker pool. Note It is set only for the first time creation of the worker pool, modification in the further executes will not have any impacts. Set this argument to cloud_pak only if you use this cluster with a cloud pak that has an OpenShift entitlement.
    hardware String
    The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. This option is available for virtual machine worker node flavors only.
    importOnCreate Boolean
    Import an existing WorkerPool from the cluster, instead of creating a new.
    labels Map<String,String>
    A list of labels that you want to add to your worker pool. The labels can help you find the worker pool more easily later.
    machineType String
    The machine type for your worker node. The machine type determines the amount of memory, CPU, and disk space that is available to the worker node. For an overview of supported machine types, see Planning your worker node setup.
    operatingSystem String
    The operating system of the workers in the worker pool.
    orphanOnDelete Boolean

    Orphan the Worker Pool resource, instead of deleting it. The argument allows the user to remove the worker pool from the state, without deleting the actual cloud resource. The worker pool can be re-imported into the state using the import_on_create argument.

    Deprecated reference

    region String
    The region where the cluster is provisioned. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.

    Deprecated: Deprecated

    resourceControllerUrl String
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster
    resourceGroupId String
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    sizePerZone Double
    The number of worker nodes per zone that you want to add to the worker pool.
    state String
    (String) The state of the worker pool.
    taints List<ContainerWorkerPoolTaint>

    A nested block that sets or removes Kubernetes taints for all worker nodes in a worker pool

    Nested scheme for taints:

    timeouts ContainerWorkerPoolTimeouts
    workerPoolId String
    (String) The unique identifier of the worker pool.
    workerPoolName String
    worker pool name
    zones List<ContainerWorkerPoolZone>
    List - A list of zones that are attached to the worker pool.
    autoscaleEnabled boolean
    (Bool) Autoscaling is enabled on the workerpool
    cluster string
    The name or ID of the cluster where you want to enable or disable the feature.
    containerWorkerPoolId string
    (String) The unique identifier of the worker pool in the format <cluster_name_id>/<worker_pool_id>. Note To reference the worker pool ID in other resources use below interpolation syntax. For example, : ${element(split("/",ibm_container_worker_pool.testacc_workerpool.id),1)}
    diskEncryption boolean
    Optional-If set to true, the worker node disks are set up with an AES 256-bit encryption. If set to false, the disk encryption for the worker node is disabled. For more information, see Encrypted disks.Yes.
    entitlement string
    If you purchased an IBM Cloud Cloud Pak that includes an entitlement to run worker nodes that are installed with OpenShift Container Platform, enter entitlement to create your worker pool with that entitlement so that you are not charged twice for the OpenShift license. Note that this option can be set only when you create the worker pool. After the worker pool is created, the cost for the OpenShift license automates when you add worker nodes to your worker pool. Note It is set only for the first time creation of the worker pool, modification in the further executes will not have any impacts. Set this argument to cloud_pak only if you use this cluster with a cloud pak that has an OpenShift entitlement.
    hardware string
    The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. This option is available for virtual machine worker node flavors only.
    importOnCreate boolean
    Import an existing WorkerPool from the cluster, instead of creating a new.
    labels {[key: string]: string}
    A list of labels that you want to add to your worker pool. The labels can help you find the worker pool more easily later.
    machineType string
    The machine type for your worker node. The machine type determines the amount of memory, CPU, and disk space that is available to the worker node. For an overview of supported machine types, see Planning your worker node setup.
    operatingSystem string
    The operating system of the workers in the worker pool.
    orphanOnDelete boolean

    Orphan the Worker Pool resource, instead of deleting it. The argument allows the user to remove the worker pool from the state, without deleting the actual cloud resource. The worker pool can be re-imported into the state using the import_on_create argument.

    Deprecated reference

    region string
    The region where the cluster is provisioned. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.

    Deprecated: Deprecated

    resourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster
    resourceGroupId string
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    sizePerZone number
    The number of worker nodes per zone that you want to add to the worker pool.
    state string
    (String) The state of the worker pool.
    taints ContainerWorkerPoolTaint[]

    A nested block that sets or removes Kubernetes taints for all worker nodes in a worker pool

    Nested scheme for taints:

    timeouts ContainerWorkerPoolTimeouts
    workerPoolId string
    (String) The unique identifier of the worker pool.
    workerPoolName string
    worker pool name
    zones ContainerWorkerPoolZone[]
    List - A list of zones that are attached to the worker pool.
    autoscale_enabled bool
    (Bool) Autoscaling is enabled on the workerpool
    cluster str
    The name or ID of the cluster where you want to enable or disable the feature.
    container_worker_pool_id str
    (String) The unique identifier of the worker pool in the format <cluster_name_id>/<worker_pool_id>. Note To reference the worker pool ID in other resources use below interpolation syntax. For example, : ${element(split("/",ibm_container_worker_pool.testacc_workerpool.id),1)}
    disk_encryption bool
    Optional-If set to true, the worker node disks are set up with an AES 256-bit encryption. If set to false, the disk encryption for the worker node is disabled. For more information, see Encrypted disks.Yes.
    entitlement str
    If you purchased an IBM Cloud Cloud Pak that includes an entitlement to run worker nodes that are installed with OpenShift Container Platform, enter entitlement to create your worker pool with that entitlement so that you are not charged twice for the OpenShift license. Note that this option can be set only when you create the worker pool. After the worker pool is created, the cost for the OpenShift license automates when you add worker nodes to your worker pool. Note It is set only for the first time creation of the worker pool, modification in the further executes will not have any impacts. Set this argument to cloud_pak only if you use this cluster with a cloud pak that has an OpenShift entitlement.
    hardware str
    The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. This option is available for virtual machine worker node flavors only.
    import_on_create bool
    Import an existing WorkerPool from the cluster, instead of creating a new.
    labels Mapping[str, str]
    A list of labels that you want to add to your worker pool. The labels can help you find the worker pool more easily later.
    machine_type str
    The machine type for your worker node. The machine type determines the amount of memory, CPU, and disk space that is available to the worker node. For an overview of supported machine types, see Planning your worker node setup.
    operating_system str
    The operating system of the workers in the worker pool.
    orphan_on_delete bool

    Orphan the Worker Pool resource, instead of deleting it. The argument allows the user to remove the worker pool from the state, without deleting the actual cloud resource. The worker pool can be re-imported into the state using the import_on_create argument.

    Deprecated reference

    region str
    The region where the cluster is provisioned. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.

    Deprecated: Deprecated

    resource_controller_url str
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster
    resource_group_id str
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    size_per_zone float
    The number of worker nodes per zone that you want to add to the worker pool.
    state str
    (String) The state of the worker pool.
    taints Sequence[ContainerWorkerPoolTaintArgs]

    A nested block that sets or removes Kubernetes taints for all worker nodes in a worker pool

    Nested scheme for taints:

    timeouts ContainerWorkerPoolTimeoutsArgs
    worker_pool_id str
    (String) The unique identifier of the worker pool.
    worker_pool_name str
    worker pool name
    zones Sequence[ContainerWorkerPoolZoneArgs]
    List - A list of zones that are attached to the worker pool.
    autoscaleEnabled Boolean
    (Bool) Autoscaling is enabled on the workerpool
    cluster String
    The name or ID of the cluster where you want to enable or disable the feature.
    containerWorkerPoolId String
    (String) The unique identifier of the worker pool in the format <cluster_name_id>/<worker_pool_id>. Note To reference the worker pool ID in other resources use below interpolation syntax. For example, : ${element(split("/",ibm_container_worker_pool.testacc_workerpool.id),1)}
    diskEncryption Boolean
    Optional-If set to true, the worker node disks are set up with an AES 256-bit encryption. If set to false, the disk encryption for the worker node is disabled. For more information, see Encrypted disks.Yes.
    entitlement String
    If you purchased an IBM Cloud Cloud Pak that includes an entitlement to run worker nodes that are installed with OpenShift Container Platform, enter entitlement to create your worker pool with that entitlement so that you are not charged twice for the OpenShift license. Note that this option can be set only when you create the worker pool. After the worker pool is created, the cost for the OpenShift license automates when you add worker nodes to your worker pool. Note It is set only for the first time creation of the worker pool, modification in the further executes will not have any impacts. Set this argument to cloud_pak only if you use this cluster with a cloud pak that has an OpenShift entitlement.
    hardware String
    The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. This option is available for virtual machine worker node flavors only.
    importOnCreate Boolean
    Import an existing WorkerPool from the cluster, instead of creating a new.
    labels Map<String>
    A list of labels that you want to add to your worker pool. The labels can help you find the worker pool more easily later.
    machineType String
    The machine type for your worker node. The machine type determines the amount of memory, CPU, and disk space that is available to the worker node. For an overview of supported machine types, see Planning your worker node setup.
    operatingSystem String
    The operating system of the workers in the worker pool.
    orphanOnDelete Boolean

    Orphan the Worker Pool resource, instead of deleting it. The argument allows the user to remove the worker pool from the state, without deleting the actual cloud resource. The worker pool can be re-imported into the state using the import_on_create argument.

    Deprecated reference

    region String
    The region where the cluster is provisioned. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.

    Deprecated: Deprecated

    resourceControllerUrl String
    The URL of the IBM Cloud dashboard that can be used to explore and view details about this cluster
    resourceGroupId String
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    sizePerZone Number
    The number of worker nodes per zone that you want to add to the worker pool.
    state String
    (String) The state of the worker pool.
    taints List<Property Map>

    A nested block that sets or removes Kubernetes taints for all worker nodes in a worker pool

    Nested scheme for taints:

    timeouts Property Map
    workerPoolId String
    (String) The unique identifier of the worker pool.
    workerPoolName String
    worker pool name
    zones List<Property Map>
    List - A list of zones that are attached to the worker pool.

    Supporting Types

    ContainerWorkerPoolTaint, ContainerWorkerPoolTaintArgs

    Effect string
    Effect for taint. Accepted values are NoSchedule, PreferNoSchedule, and NoExecute.
    Key string
    Key for taint.
    Value string
    Value for taint.
    Effect string
    Effect for taint. Accepted values are NoSchedule, PreferNoSchedule, and NoExecute.
    Key string
    Key for taint.
    Value string
    Value for taint.
    effect String
    Effect for taint. Accepted values are NoSchedule, PreferNoSchedule, and NoExecute.
    key String
    Key for taint.
    value String
    Value for taint.
    effect string
    Effect for taint. Accepted values are NoSchedule, PreferNoSchedule, and NoExecute.
    key string
    Key for taint.
    value string
    Value for taint.
    effect str
    Effect for taint. Accepted values are NoSchedule, PreferNoSchedule, and NoExecute.
    key str
    Key for taint.
    value str
    Value for taint.
    effect String
    Effect for taint. Accepted values are NoSchedule, PreferNoSchedule, and NoExecute.
    key String
    Key for taint.
    value String
    Value for taint.

    ContainerWorkerPoolTimeouts, ContainerWorkerPoolTimeoutsArgs

    Update string
    Update string
    update String
    update string
    update str
    update String

    ContainerWorkerPoolZone, ContainerWorkerPoolZoneArgs

    PrivateVlan string
    (String) The ID of the private VLAN that is used in the zone.
    PublicVlan string
    (String) The ID of the public VLAN that is used in the zone.
    WorkerCount double
    (Integer) The number of worker nodes that are attached to the zone.
    Zone string
    (String) The name of the zone.
    PrivateVlan string
    (String) The ID of the private VLAN that is used in the zone.
    PublicVlan string
    (String) The ID of the public VLAN that is used in the zone.
    WorkerCount float64
    (Integer) The number of worker nodes that are attached to the zone.
    Zone string
    (String) The name of the zone.
    privateVlan String
    (String) The ID of the private VLAN that is used in the zone.
    publicVlan String
    (String) The ID of the public VLAN that is used in the zone.
    workerCount Double
    (Integer) The number of worker nodes that are attached to the zone.
    zone String
    (String) The name of the zone.
    privateVlan string
    (String) The ID of the private VLAN that is used in the zone.
    publicVlan string
    (String) The ID of the public VLAN that is used in the zone.
    workerCount number
    (Integer) The number of worker nodes that are attached to the zone.
    zone string
    (String) The name of the zone.
    private_vlan str
    (String) The ID of the private VLAN that is used in the zone.
    public_vlan str
    (String) The ID of the public VLAN that is used in the zone.
    worker_count float
    (Integer) The number of worker nodes that are attached to the zone.
    zone str
    (String) The name of the zone.
    privateVlan String
    (String) The ID of the private VLAN that is used in the zone.
    publicVlan String
    (String) The ID of the public VLAN that is used in the zone.
    workerCount Number
    (Integer) The number of worker nodes that are attached to the zone.
    zone String
    (String) The name of the zone.

    Import

    The ibm_container_worker_pool can be imported by using cluster_name_id, worker_pool_id.

    Example

    $ pulumi import ibm:index/containerWorkerPool:ContainerWorkerPool example mycluster/5c4f4d06e0dc402084922dea70850e3b-7cafe35
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud