1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. K8s
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.K8s

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    Represent k8s cluster with one default pool.

    WARNING: Resource “edgecenter.K8s” is deprecated and unavailable.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const k8s = new edgecenter.K8s("k8s", {
        fixedNetwork: "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25",
        fixedSubnet: "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
        keypair: "tf-keypair",
        pool: {
            dockerVolumeSize: 2,
            flavorId: "g1-standard-1-2",
            maxNodeCount: 2,
            minNodeCount: 1,
            name: "tf-pool",
            nodeCount: 1,
        },
        projectId: 1,
        regionId: 1,
        version: "1.25.11",
    });
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    k8s = edgecenter.K8s("k8s",
        fixed_network="6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25",
        fixed_subnet="dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
        keypair="tf-keypair",
        pool={
            "docker_volume_size": 2,
            "flavor_id": "g1-standard-1-2",
            "max_node_count": 2,
            "min_node_count": 1,
            "name": "tf-pool",
            "node_count": 1,
        },
        project_id=1,
        region_id=1,
        version="1.25.11")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := edgecenter.NewK8s(ctx, "k8s", &edgecenter.K8sArgs{
    			FixedNetwork: pulumi.String("6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25"),
    			FixedSubnet:  pulumi.String("dc3a3ea9-86ae-47ad-a8e8-79df0ce04839"),
    			Keypair:      pulumi.String("tf-keypair"),
    			Pool: &edgecenter.K8sPoolTypeArgs{
    				DockerVolumeSize: pulumi.Float64(2),
    				FlavorId:         pulumi.String("g1-standard-1-2"),
    				MaxNodeCount:     pulumi.Float64(2),
    				MinNodeCount:     pulumi.Float64(1),
    				Name:             pulumi.String("tf-pool"),
    				NodeCount:        pulumi.Float64(1),
    			},
    			ProjectId: pulumi.Float64(1),
    			RegionId:  pulumi.Float64(1),
    			Version:   pulumi.String("1.25.11"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var k8s = new Edgecenter.K8s("k8s", new()
        {
            FixedNetwork = "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25",
            FixedSubnet = "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
            Keypair = "tf-keypair",
            Pool = new Edgecenter.Inputs.K8sPoolArgs
            {
                DockerVolumeSize = 2,
                FlavorId = "g1-standard-1-2",
                MaxNodeCount = 2,
                MinNodeCount = 1,
                Name = "tf-pool",
                NodeCount = 1,
            },
            ProjectId = 1,
            RegionId = 1,
            Version = "1.25.11",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.K8s;
    import com.pulumi.edgecenter.K8sArgs;
    import com.pulumi.edgecenter.inputs.K8sPoolArgs;
    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 k8s = new K8s("k8s", K8sArgs.builder()
                .fixedNetwork("6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25")
                .fixedSubnet("dc3a3ea9-86ae-47ad-a8e8-79df0ce04839")
                .keypair("tf-keypair")
                .pool(K8sPoolArgs.builder()
                    .dockerVolumeSize(2)
                    .flavorId("g1-standard-1-2")
                    .maxNodeCount(2)
                    .minNodeCount(1)
                    .name("tf-pool")
                    .nodeCount(1)
                    .build())
                .projectId(1)
                .regionId(1)
                .version("1.25.11")
                .build());
    
        }
    }
    
    resources:
      k8s:
        type: edgecenter:K8s
        properties:
          fixedNetwork: 6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25
          fixedSubnet: dc3a3ea9-86ae-47ad-a8e8-79df0ce04839
          keypair: tf-keypair
          pool:
            dockerVolumeSize: 2
            flavorId: g1-standard-1-2
            maxNodeCount: 2
            minNodeCount: 1
            name: tf-pool
            nodeCount: 1
          projectId: 1
          regionId: 1
          version: 1.25.11
    

    Create K8s Resource

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

    Constructor syntax

    new K8s(name: string, args: K8sArgs, opts?: CustomResourceOptions);
    @overload
    def K8s(resource_name: str,
            args: K8sArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def K8s(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            pool: Optional[K8sPoolArgs] = None,
            fixed_network: Optional[str] = None,
            fixed_subnet: Optional[str] = None,
            version: Optional[str] = None,
            keypair: Optional[str] = None,
            pods_ip_pool: Optional[str] = None,
            master_lb_floating_ip_enabled: Optional[bool] = None,
            name: Optional[str] = None,
            auto_healing_enabled: Optional[bool] = None,
            last_updated: Optional[str] = None,
            project_id: Optional[float] = None,
            project_name: Optional[str] = None,
            region_id: Optional[float] = None,
            region_name: Optional[str] = None,
            services_ip_pool: Optional[str] = None,
            timeouts: Optional[K8sTimeoutsArgs] = None,
            k8s_id: Optional[str] = None)
    func NewK8s(ctx *Context, name string, args K8sArgs, opts ...ResourceOption) (*K8s, error)
    public K8s(string name, K8sArgs args, CustomResourceOptions? opts = null)
    public K8s(String name, K8sArgs args)
    public K8s(String name, K8sArgs args, CustomResourceOptions options)
    
    type: edgecenter:K8s
    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 K8sArgs
    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 K8sArgs
    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 K8sArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args K8sArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args K8sArgs
    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 k8sResource = new Edgecenter.K8s("k8sResource", new()
    {
        Pool = new Edgecenter.Inputs.K8sPoolArgs
        {
            FlavorId = "string",
            MaxNodeCount = 0,
            MinNodeCount = 0,
            Name = "string",
            NodeCount = 0,
            CreatedAt = "string",
            DockerVolumeSize = 0,
            DockerVolumeType = "string",
            StackId = "string",
            Uuid = "string",
        },
        FixedNetwork = "string",
        FixedSubnet = "string",
        Version = "string",
        Keypair = "string",
        PodsIpPool = "string",
        MasterLbFloatingIpEnabled = false,
        Name = "string",
        AutoHealingEnabled = false,
        LastUpdated = "string",
        ProjectId = 0,
        ProjectName = "string",
        RegionId = 0,
        RegionName = "string",
        ServicesIpPool = "string",
        Timeouts = new Edgecenter.Inputs.K8sTimeoutsArgs
        {
            Create = "string",
            Update = "string",
        },
        K8sId = "string",
    });
    
    example, err := edgecenter.NewK8s(ctx, "k8sResource", &edgecenter.K8sArgs{
    	Pool: &edgecenter.K8sPoolTypeArgs{
    		FlavorId:         pulumi.String("string"),
    		MaxNodeCount:     pulumi.Float64(0),
    		MinNodeCount:     pulumi.Float64(0),
    		Name:             pulumi.String("string"),
    		NodeCount:        pulumi.Float64(0),
    		CreatedAt:        pulumi.String("string"),
    		DockerVolumeSize: pulumi.Float64(0),
    		DockerVolumeType: pulumi.String("string"),
    		StackId:          pulumi.String("string"),
    		Uuid:             pulumi.String("string"),
    	},
    	FixedNetwork:              pulumi.String("string"),
    	FixedSubnet:               pulumi.String("string"),
    	Version:                   pulumi.String("string"),
    	Keypair:                   pulumi.String("string"),
    	PodsIpPool:                pulumi.String("string"),
    	MasterLbFloatingIpEnabled: pulumi.Bool(false),
    	Name:                      pulumi.String("string"),
    	AutoHealingEnabled:        pulumi.Bool(false),
    	LastUpdated:               pulumi.String("string"),
    	ProjectId:                 pulumi.Float64(0),
    	ProjectName:               pulumi.String("string"),
    	RegionId:                  pulumi.Float64(0),
    	RegionName:                pulumi.String("string"),
    	ServicesIpPool:            pulumi.String("string"),
    	Timeouts: &edgecenter.K8sTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	K8sId: pulumi.String("string"),
    })
    
    var k8sResource = new K8s("k8sResource", K8sArgs.builder()
        .pool(K8sPoolArgs.builder()
            .flavorId("string")
            .maxNodeCount(0)
            .minNodeCount(0)
            .name("string")
            .nodeCount(0)
            .createdAt("string")
            .dockerVolumeSize(0)
            .dockerVolumeType("string")
            .stackId("string")
            .uuid("string")
            .build())
        .fixedNetwork("string")
        .fixedSubnet("string")
        .version("string")
        .keypair("string")
        .podsIpPool("string")
        .masterLbFloatingIpEnabled(false)
        .name("string")
        .autoHealingEnabled(false)
        .lastUpdated("string")
        .projectId(0)
        .projectName("string")
        .regionId(0)
        .regionName("string")
        .servicesIpPool("string")
        .timeouts(K8sTimeoutsArgs.builder()
            .create("string")
            .update("string")
            .build())
        .k8sId("string")
        .build());
    
    k8s_resource = edgecenter.K8s("k8sResource",
        pool={
            "flavor_id": "string",
            "max_node_count": 0,
            "min_node_count": 0,
            "name": "string",
            "node_count": 0,
            "created_at": "string",
            "docker_volume_size": 0,
            "docker_volume_type": "string",
            "stack_id": "string",
            "uuid": "string",
        },
        fixed_network="string",
        fixed_subnet="string",
        version="string",
        keypair="string",
        pods_ip_pool="string",
        master_lb_floating_ip_enabled=False,
        name="string",
        auto_healing_enabled=False,
        last_updated="string",
        project_id=0,
        project_name="string",
        region_id=0,
        region_name="string",
        services_ip_pool="string",
        timeouts={
            "create": "string",
            "update": "string",
        },
        k8s_id="string")
    
    const k8sResource = new edgecenter.K8s("k8sResource", {
        pool: {
            flavorId: "string",
            maxNodeCount: 0,
            minNodeCount: 0,
            name: "string",
            nodeCount: 0,
            createdAt: "string",
            dockerVolumeSize: 0,
            dockerVolumeType: "string",
            stackId: "string",
            uuid: "string",
        },
        fixedNetwork: "string",
        fixedSubnet: "string",
        version: "string",
        keypair: "string",
        podsIpPool: "string",
        masterLbFloatingIpEnabled: false,
        name: "string",
        autoHealingEnabled: false,
        lastUpdated: "string",
        projectId: 0,
        projectName: "string",
        regionId: 0,
        regionName: "string",
        servicesIpPool: "string",
        timeouts: {
            create: "string",
            update: "string",
        },
        k8sId: "string",
    });
    
    type: edgecenter:K8s
    properties:
        autoHealingEnabled: false
        fixedNetwork: string
        fixedSubnet: string
        k8sId: string
        keypair: string
        lastUpdated: string
        masterLbFloatingIpEnabled: false
        name: string
        podsIpPool: string
        pool:
            createdAt: string
            dockerVolumeSize: 0
            dockerVolumeType: string
            flavorId: string
            maxNodeCount: 0
            minNodeCount: 0
            name: string
            nodeCount: 0
            stackId: string
            uuid: string
        projectId: 0
        projectName: string
        regionId: 0
        regionName: string
        servicesIpPool: string
        timeouts:
            create: string
            update: string
        version: string
    

    K8s 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 K8s resource accepts the following input properties:

    FixedNetwork string
    Fixed network (uuid) associated with the Kubernetes cluster.
    FixedSubnet string
    Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
    Keypair string
    The name of the keypair
    Pool K8sPool
    Configuration details of the node pool in the Kubernetes cluster.
    Version string
    The version of the Kubernetes cluster.
    AutoHealingEnabled bool
    Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
    K8sId string
    The ID of this resource.
    LastUpdated string
    The timestamp of the last update (use with update context).
    MasterLbFloatingIpEnabled bool
    Flag indicating if the master LoadBalancer should have a floating IP.
    Name string
    The name of the Kubernetes cluster.
    PodsIpPool string
    IP pool to be used for pods within the Kubernetes cluster.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    ServicesIpPool string
    IP pool to be used for services within the Kubernetes cluster.
    Timeouts K8sTimeouts
    FixedNetwork string
    Fixed network (uuid) associated with the Kubernetes cluster.
    FixedSubnet string
    Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
    Keypair string
    The name of the keypair
    Pool K8sPoolTypeArgs
    Configuration details of the node pool in the Kubernetes cluster.
    Version string
    The version of the Kubernetes cluster.
    AutoHealingEnabled bool
    Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
    K8sId string
    The ID of this resource.
    LastUpdated string
    The timestamp of the last update (use with update context).
    MasterLbFloatingIpEnabled bool
    Flag indicating if the master LoadBalancer should have a floating IP.
    Name string
    The name of the Kubernetes cluster.
    PodsIpPool string
    IP pool to be used for pods within the Kubernetes cluster.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    ServicesIpPool string
    IP pool to be used for services within the Kubernetes cluster.
    Timeouts K8sTimeoutsArgs
    fixedNetwork String
    Fixed network (uuid) associated with the Kubernetes cluster.
    fixedSubnet String
    Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
    keypair String
    The name of the keypair
    pool K8sPool
    Configuration details of the node pool in the Kubernetes cluster.
    version String
    The version of the Kubernetes cluster.
    autoHealingEnabled Boolean
    Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
    k8sId String
    The ID of this resource.
    lastUpdated String
    The timestamp of the last update (use with update context).
    masterLbFloatingIpEnabled Boolean
    Flag indicating if the master LoadBalancer should have a floating IP.
    name String
    The name of the Kubernetes cluster.
    podsIpPool String
    IP pool to be used for pods within the Kubernetes cluster.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    servicesIpPool String
    IP pool to be used for services within the Kubernetes cluster.
    timeouts K8sTimeouts
    fixedNetwork string
    Fixed network (uuid) associated with the Kubernetes cluster.
    fixedSubnet string
    Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
    keypair string
    The name of the keypair
    pool K8sPool
    Configuration details of the node pool in the Kubernetes cluster.
    version string
    The version of the Kubernetes cluster.
    autoHealingEnabled boolean
    Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
    k8sId string
    The ID of this resource.
    lastUpdated string
    The timestamp of the last update (use with update context).
    masterLbFloatingIpEnabled boolean
    Flag indicating if the master LoadBalancer should have a floating IP.
    name string
    The name of the Kubernetes cluster.
    podsIpPool string
    IP pool to be used for pods within the Kubernetes cluster.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    servicesIpPool string
    IP pool to be used for services within the Kubernetes cluster.
    timeouts K8sTimeouts
    fixed_network str
    Fixed network (uuid) associated with the Kubernetes cluster.
    fixed_subnet str
    Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
    keypair str
    The name of the keypair
    pool K8sPoolArgs
    Configuration details of the node pool in the Kubernetes cluster.
    version str
    The version of the Kubernetes cluster.
    auto_healing_enabled bool
    Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
    k8s_id str
    The ID of this resource.
    last_updated str
    The timestamp of the last update (use with update context).
    master_lb_floating_ip_enabled bool
    Flag indicating if the master LoadBalancer should have a floating IP.
    name str
    The name of the Kubernetes cluster.
    pods_ip_pool str
    IP pool to be used for pods within the Kubernetes cluster.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    services_ip_pool str
    IP pool to be used for services within the Kubernetes cluster.
    timeouts K8sTimeoutsArgs
    fixedNetwork String
    Fixed network (uuid) associated with the Kubernetes cluster.
    fixedSubnet String
    Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
    keypair String
    The name of the keypair
    pool Property Map
    Configuration details of the node pool in the Kubernetes cluster.
    version String
    The version of the Kubernetes cluster.
    autoHealingEnabled Boolean
    Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
    k8sId String
    The ID of this resource.
    lastUpdated String
    The timestamp of the last update (use with update context).
    masterLbFloatingIpEnabled Boolean
    Flag indicating if the master LoadBalancer should have a floating IP.
    name String
    The name of the Kubernetes cluster.
    podsIpPool String
    IP pool to be used for pods within the Kubernetes cluster.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    servicesIpPool String
    IP pool to be used for services within the Kubernetes cluster.
    timeouts Property Map

    Outputs

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

    ApiAddress string
    API endpoint address for the Kubernetes cluster.
    ClusterTemplateId string
    Template identifier from which the Kubernetes cluster was instantiated.
    ContainerVersion string
    The container runtime version used in the Kubernetes cluster.
    CreatedAt string
    The timestamp when the Kubernetes cluster was created.
    DiscoveryUrl string
    URL used for node discovery within the Kubernetes cluster.
    Faults Dictionary<string, string>
    HealthStatus string
    Overall health status of the Kubernetes cluster.
    HealthStatusReason Dictionary<string, string>
    Id string
    The provider-assigned unique ID for this managed resource.
    MasterAddresses List<string>
    List of IP addresses for master nodes in the Kubernetes cluster.
    MasterFlavorId string
    Identifier for the master node flavor in the Kubernetes cluster.
    NodeAddresses List<string>
    List of IP addresses for worker nodes in the Kubernetes cluster.
    NodeCount double
    Total number of nodes in the Kubernetes cluster.
    Status string
    The current status of the Kubernetes cluster.
    StatusReason string
    The reason for the current status of the Kubernetes cluster, if ERROR.
    UpdatedAt string
    The timestamp when the Kubernetes cluster was updated.
    UserId string
    User identifier associated with the Kubernetes cluster.
    ApiAddress string
    API endpoint address for the Kubernetes cluster.
    ClusterTemplateId string
    Template identifier from which the Kubernetes cluster was instantiated.
    ContainerVersion string
    The container runtime version used in the Kubernetes cluster.
    CreatedAt string
    The timestamp when the Kubernetes cluster was created.
    DiscoveryUrl string
    URL used for node discovery within the Kubernetes cluster.
    Faults map[string]string
    HealthStatus string
    Overall health status of the Kubernetes cluster.
    HealthStatusReason map[string]string
    Id string
    The provider-assigned unique ID for this managed resource.
    MasterAddresses []string
    List of IP addresses for master nodes in the Kubernetes cluster.
    MasterFlavorId string
    Identifier for the master node flavor in the Kubernetes cluster.
    NodeAddresses []string
    List of IP addresses for worker nodes in the Kubernetes cluster.
    NodeCount float64
    Total number of nodes in the Kubernetes cluster.
    Status string
    The current status of the Kubernetes cluster.
    StatusReason string
    The reason for the current status of the Kubernetes cluster, if ERROR.
    UpdatedAt string
    The timestamp when the Kubernetes cluster was updated.
    UserId string
    User identifier associated with the Kubernetes cluster.
    apiAddress String
    API endpoint address for the Kubernetes cluster.
    clusterTemplateId String
    Template identifier from which the Kubernetes cluster was instantiated.
    containerVersion String
    The container runtime version used in the Kubernetes cluster.
    createdAt String
    The timestamp when the Kubernetes cluster was created.
    discoveryUrl String
    URL used for node discovery within the Kubernetes cluster.
    faults Map<String,String>
    healthStatus String
    Overall health status of the Kubernetes cluster.
    healthStatusReason Map<String,String>
    id String
    The provider-assigned unique ID for this managed resource.
    masterAddresses List<String>
    List of IP addresses for master nodes in the Kubernetes cluster.
    masterFlavorId String
    Identifier for the master node flavor in the Kubernetes cluster.
    nodeAddresses List<String>
    List of IP addresses for worker nodes in the Kubernetes cluster.
    nodeCount Double
    Total number of nodes in the Kubernetes cluster.
    status String
    The current status of the Kubernetes cluster.
    statusReason String
    The reason for the current status of the Kubernetes cluster, if ERROR.
    updatedAt String
    The timestamp when the Kubernetes cluster was updated.
    userId String
    User identifier associated with the Kubernetes cluster.
    apiAddress string
    API endpoint address for the Kubernetes cluster.
    clusterTemplateId string
    Template identifier from which the Kubernetes cluster was instantiated.
    containerVersion string
    The container runtime version used in the Kubernetes cluster.
    createdAt string
    The timestamp when the Kubernetes cluster was created.
    discoveryUrl string
    URL used for node discovery within the Kubernetes cluster.
    faults {[key: string]: string}
    healthStatus string
    Overall health status of the Kubernetes cluster.
    healthStatusReason {[key: string]: string}
    id string
    The provider-assigned unique ID for this managed resource.
    masterAddresses string[]
    List of IP addresses for master nodes in the Kubernetes cluster.
    masterFlavorId string
    Identifier for the master node flavor in the Kubernetes cluster.
    nodeAddresses string[]
    List of IP addresses for worker nodes in the Kubernetes cluster.
    nodeCount number
    Total number of nodes in the Kubernetes cluster.
    status string
    The current status of the Kubernetes cluster.
    statusReason string
    The reason for the current status of the Kubernetes cluster, if ERROR.
    updatedAt string
    The timestamp when the Kubernetes cluster was updated.
    userId string
    User identifier associated with the Kubernetes cluster.
    api_address str
    API endpoint address for the Kubernetes cluster.
    cluster_template_id str
    Template identifier from which the Kubernetes cluster was instantiated.
    container_version str
    The container runtime version used in the Kubernetes cluster.
    created_at str
    The timestamp when the Kubernetes cluster was created.
    discovery_url str
    URL used for node discovery within the Kubernetes cluster.
    faults Mapping[str, str]
    health_status str
    Overall health status of the Kubernetes cluster.
    health_status_reason Mapping[str, str]
    id str
    The provider-assigned unique ID for this managed resource.
    master_addresses Sequence[str]
    List of IP addresses for master nodes in the Kubernetes cluster.
    master_flavor_id str
    Identifier for the master node flavor in the Kubernetes cluster.
    node_addresses Sequence[str]
    List of IP addresses for worker nodes in the Kubernetes cluster.
    node_count float
    Total number of nodes in the Kubernetes cluster.
    status str
    The current status of the Kubernetes cluster.
    status_reason str
    The reason for the current status of the Kubernetes cluster, if ERROR.
    updated_at str
    The timestamp when the Kubernetes cluster was updated.
    user_id str
    User identifier associated with the Kubernetes cluster.
    apiAddress String
    API endpoint address for the Kubernetes cluster.
    clusterTemplateId String
    Template identifier from which the Kubernetes cluster was instantiated.
    containerVersion String
    The container runtime version used in the Kubernetes cluster.
    createdAt String
    The timestamp when the Kubernetes cluster was created.
    discoveryUrl String
    URL used for node discovery within the Kubernetes cluster.
    faults Map<String>
    healthStatus String
    Overall health status of the Kubernetes cluster.
    healthStatusReason Map<String>
    id String
    The provider-assigned unique ID for this managed resource.
    masterAddresses List<String>
    List of IP addresses for master nodes in the Kubernetes cluster.
    masterFlavorId String
    Identifier for the master node flavor in the Kubernetes cluster.
    nodeAddresses List<String>
    List of IP addresses for worker nodes in the Kubernetes cluster.
    nodeCount Number
    Total number of nodes in the Kubernetes cluster.
    status String
    The current status of the Kubernetes cluster.
    statusReason String
    The reason for the current status of the Kubernetes cluster, if ERROR.
    updatedAt String
    The timestamp when the Kubernetes cluster was updated.
    userId String
    User identifier associated with the Kubernetes cluster.

    Look up Existing K8s Resource

    Get an existing K8s 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?: K8sState, opts?: CustomResourceOptions): K8s
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_address: Optional[str] = None,
            auto_healing_enabled: Optional[bool] = None,
            cluster_template_id: Optional[str] = None,
            container_version: Optional[str] = None,
            created_at: Optional[str] = None,
            discovery_url: Optional[str] = None,
            faults: Optional[Mapping[str, str]] = None,
            fixed_network: Optional[str] = None,
            fixed_subnet: Optional[str] = None,
            health_status: Optional[str] = None,
            health_status_reason: Optional[Mapping[str, str]] = None,
            k8s_id: Optional[str] = None,
            keypair: Optional[str] = None,
            last_updated: Optional[str] = None,
            master_addresses: Optional[Sequence[str]] = None,
            master_flavor_id: Optional[str] = None,
            master_lb_floating_ip_enabled: Optional[bool] = None,
            name: Optional[str] = None,
            node_addresses: Optional[Sequence[str]] = None,
            node_count: Optional[float] = None,
            pods_ip_pool: Optional[str] = None,
            pool: Optional[K8sPoolArgs] = None,
            project_id: Optional[float] = None,
            project_name: Optional[str] = None,
            region_id: Optional[float] = None,
            region_name: Optional[str] = None,
            services_ip_pool: Optional[str] = None,
            status: Optional[str] = None,
            status_reason: Optional[str] = None,
            timeouts: Optional[K8sTimeoutsArgs] = None,
            updated_at: Optional[str] = None,
            user_id: Optional[str] = None,
            version: Optional[str] = None) -> K8s
    func GetK8s(ctx *Context, name string, id IDInput, state *K8sState, opts ...ResourceOption) (*K8s, error)
    public static K8s Get(string name, Input<string> id, K8sState? state, CustomResourceOptions? opts = null)
    public static K8s get(String name, Output<String> id, K8sState state, CustomResourceOptions options)
    resources:  _:    type: edgecenter:K8s    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:
    ApiAddress string
    API endpoint address for the Kubernetes cluster.
    AutoHealingEnabled bool
    Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
    ClusterTemplateId string
    Template identifier from which the Kubernetes cluster was instantiated.
    ContainerVersion string
    The container runtime version used in the Kubernetes cluster.
    CreatedAt string
    The timestamp when the Kubernetes cluster was created.
    DiscoveryUrl string
    URL used for node discovery within the Kubernetes cluster.
    Faults Dictionary<string, string>
    FixedNetwork string
    Fixed network (uuid) associated with the Kubernetes cluster.
    FixedSubnet string
    Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
    HealthStatus string
    Overall health status of the Kubernetes cluster.
    HealthStatusReason Dictionary<string, string>
    K8sId string
    The ID of this resource.
    Keypair string
    The name of the keypair
    LastUpdated string
    The timestamp of the last update (use with update context).
    MasterAddresses List<string>
    List of IP addresses for master nodes in the Kubernetes cluster.
    MasterFlavorId string
    Identifier for the master node flavor in the Kubernetes cluster.
    MasterLbFloatingIpEnabled bool
    Flag indicating if the master LoadBalancer should have a floating IP.
    Name string
    The name of the Kubernetes cluster.
    NodeAddresses List<string>
    List of IP addresses for worker nodes in the Kubernetes cluster.
    NodeCount double
    Total number of nodes in the Kubernetes cluster.
    PodsIpPool string
    IP pool to be used for pods within the Kubernetes cluster.
    Pool K8sPool
    Configuration details of the node pool in the Kubernetes cluster.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    ServicesIpPool string
    IP pool to be used for services within the Kubernetes cluster.
    Status string
    The current status of the Kubernetes cluster.
    StatusReason string
    The reason for the current status of the Kubernetes cluster, if ERROR.
    Timeouts K8sTimeouts
    UpdatedAt string
    The timestamp when the Kubernetes cluster was updated.
    UserId string
    User identifier associated with the Kubernetes cluster.
    Version string
    The version of the Kubernetes cluster.
    ApiAddress string
    API endpoint address for the Kubernetes cluster.
    AutoHealingEnabled bool
    Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
    ClusterTemplateId string
    Template identifier from which the Kubernetes cluster was instantiated.
    ContainerVersion string
    The container runtime version used in the Kubernetes cluster.
    CreatedAt string
    The timestamp when the Kubernetes cluster was created.
    DiscoveryUrl string
    URL used for node discovery within the Kubernetes cluster.
    Faults map[string]string
    FixedNetwork string
    Fixed network (uuid) associated with the Kubernetes cluster.
    FixedSubnet string
    Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
    HealthStatus string
    Overall health status of the Kubernetes cluster.
    HealthStatusReason map[string]string
    K8sId string
    The ID of this resource.
    Keypair string
    The name of the keypair
    LastUpdated string
    The timestamp of the last update (use with update context).
    MasterAddresses []string
    List of IP addresses for master nodes in the Kubernetes cluster.
    MasterFlavorId string
    Identifier for the master node flavor in the Kubernetes cluster.
    MasterLbFloatingIpEnabled bool
    Flag indicating if the master LoadBalancer should have a floating IP.
    Name string
    The name of the Kubernetes cluster.
    NodeAddresses []string
    List of IP addresses for worker nodes in the Kubernetes cluster.
    NodeCount float64
    Total number of nodes in the Kubernetes cluster.
    PodsIpPool string
    IP pool to be used for pods within the Kubernetes cluster.
    Pool K8sPoolTypeArgs
    Configuration details of the node pool in the Kubernetes cluster.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    ServicesIpPool string
    IP pool to be used for services within the Kubernetes cluster.
    Status string
    The current status of the Kubernetes cluster.
    StatusReason string
    The reason for the current status of the Kubernetes cluster, if ERROR.
    Timeouts K8sTimeoutsArgs
    UpdatedAt string
    The timestamp when the Kubernetes cluster was updated.
    UserId string
    User identifier associated with the Kubernetes cluster.
    Version string
    The version of the Kubernetes cluster.
    apiAddress String
    API endpoint address for the Kubernetes cluster.
    autoHealingEnabled Boolean
    Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
    clusterTemplateId String
    Template identifier from which the Kubernetes cluster was instantiated.
    containerVersion String
    The container runtime version used in the Kubernetes cluster.
    createdAt String
    The timestamp when the Kubernetes cluster was created.
    discoveryUrl String
    URL used for node discovery within the Kubernetes cluster.
    faults Map<String,String>
    fixedNetwork String
    Fixed network (uuid) associated with the Kubernetes cluster.
    fixedSubnet String
    Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
    healthStatus String
    Overall health status of the Kubernetes cluster.
    healthStatusReason Map<String,String>
    k8sId String
    The ID of this resource.
    keypair String
    The name of the keypair
    lastUpdated String
    The timestamp of the last update (use with update context).
    masterAddresses List<String>
    List of IP addresses for master nodes in the Kubernetes cluster.
    masterFlavorId String
    Identifier for the master node flavor in the Kubernetes cluster.
    masterLbFloatingIpEnabled Boolean
    Flag indicating if the master LoadBalancer should have a floating IP.
    name String
    The name of the Kubernetes cluster.
    nodeAddresses List<String>
    List of IP addresses for worker nodes in the Kubernetes cluster.
    nodeCount Double
    Total number of nodes in the Kubernetes cluster.
    podsIpPool String
    IP pool to be used for pods within the Kubernetes cluster.
    pool K8sPool
    Configuration details of the node pool in the Kubernetes cluster.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    servicesIpPool String
    IP pool to be used for services within the Kubernetes cluster.
    status String
    The current status of the Kubernetes cluster.
    statusReason String
    The reason for the current status of the Kubernetes cluster, if ERROR.
    timeouts K8sTimeouts
    updatedAt String
    The timestamp when the Kubernetes cluster was updated.
    userId String
    User identifier associated with the Kubernetes cluster.
    version String
    The version of the Kubernetes cluster.
    apiAddress string
    API endpoint address for the Kubernetes cluster.
    autoHealingEnabled boolean
    Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
    clusterTemplateId string
    Template identifier from which the Kubernetes cluster was instantiated.
    containerVersion string
    The container runtime version used in the Kubernetes cluster.
    createdAt string
    The timestamp when the Kubernetes cluster was created.
    discoveryUrl string
    URL used for node discovery within the Kubernetes cluster.
    faults {[key: string]: string}
    fixedNetwork string
    Fixed network (uuid) associated with the Kubernetes cluster.
    fixedSubnet string
    Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
    healthStatus string
    Overall health status of the Kubernetes cluster.
    healthStatusReason {[key: string]: string}
    k8sId string
    The ID of this resource.
    keypair string
    The name of the keypair
    lastUpdated string
    The timestamp of the last update (use with update context).
    masterAddresses string[]
    List of IP addresses for master nodes in the Kubernetes cluster.
    masterFlavorId string
    Identifier for the master node flavor in the Kubernetes cluster.
    masterLbFloatingIpEnabled boolean
    Flag indicating if the master LoadBalancer should have a floating IP.
    name string
    The name of the Kubernetes cluster.
    nodeAddresses string[]
    List of IP addresses for worker nodes in the Kubernetes cluster.
    nodeCount number
    Total number of nodes in the Kubernetes cluster.
    podsIpPool string
    IP pool to be used for pods within the Kubernetes cluster.
    pool K8sPool
    Configuration details of the node pool in the Kubernetes cluster.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    servicesIpPool string
    IP pool to be used for services within the Kubernetes cluster.
    status string
    The current status of the Kubernetes cluster.
    statusReason string
    The reason for the current status of the Kubernetes cluster, if ERROR.
    timeouts K8sTimeouts
    updatedAt string
    The timestamp when the Kubernetes cluster was updated.
    userId string
    User identifier associated with the Kubernetes cluster.
    version string
    The version of the Kubernetes cluster.
    api_address str
    API endpoint address for the Kubernetes cluster.
    auto_healing_enabled bool
    Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
    cluster_template_id str
    Template identifier from which the Kubernetes cluster was instantiated.
    container_version str
    The container runtime version used in the Kubernetes cluster.
    created_at str
    The timestamp when the Kubernetes cluster was created.
    discovery_url str
    URL used for node discovery within the Kubernetes cluster.
    faults Mapping[str, str]
    fixed_network str
    Fixed network (uuid) associated with the Kubernetes cluster.
    fixed_subnet str
    Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
    health_status str
    Overall health status of the Kubernetes cluster.
    health_status_reason Mapping[str, str]
    k8s_id str
    The ID of this resource.
    keypair str
    The name of the keypair
    last_updated str
    The timestamp of the last update (use with update context).
    master_addresses Sequence[str]
    List of IP addresses for master nodes in the Kubernetes cluster.
    master_flavor_id str
    Identifier for the master node flavor in the Kubernetes cluster.
    master_lb_floating_ip_enabled bool
    Flag indicating if the master LoadBalancer should have a floating IP.
    name str
    The name of the Kubernetes cluster.
    node_addresses Sequence[str]
    List of IP addresses for worker nodes in the Kubernetes cluster.
    node_count float
    Total number of nodes in the Kubernetes cluster.
    pods_ip_pool str
    IP pool to be used for pods within the Kubernetes cluster.
    pool K8sPoolArgs
    Configuration details of the node pool in the Kubernetes cluster.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    services_ip_pool str
    IP pool to be used for services within the Kubernetes cluster.
    status str
    The current status of the Kubernetes cluster.
    status_reason str
    The reason for the current status of the Kubernetes cluster, if ERROR.
    timeouts K8sTimeoutsArgs
    updated_at str
    The timestamp when the Kubernetes cluster was updated.
    user_id str
    User identifier associated with the Kubernetes cluster.
    version str
    The version of the Kubernetes cluster.
    apiAddress String
    API endpoint address for the Kubernetes cluster.
    autoHealingEnabled Boolean
    Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
    clusterTemplateId String
    Template identifier from which the Kubernetes cluster was instantiated.
    containerVersion String
    The container runtime version used in the Kubernetes cluster.
    createdAt String
    The timestamp when the Kubernetes cluster was created.
    discoveryUrl String
    URL used for node discovery within the Kubernetes cluster.
    faults Map<String>
    fixedNetwork String
    Fixed network (uuid) associated with the Kubernetes cluster.
    fixedSubnet String
    Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
    healthStatus String
    Overall health status of the Kubernetes cluster.
    healthStatusReason Map<String>
    k8sId String
    The ID of this resource.
    keypair String
    The name of the keypair
    lastUpdated String
    The timestamp of the last update (use with update context).
    masterAddresses List<String>
    List of IP addresses for master nodes in the Kubernetes cluster.
    masterFlavorId String
    Identifier for the master node flavor in the Kubernetes cluster.
    masterLbFloatingIpEnabled Boolean
    Flag indicating if the master LoadBalancer should have a floating IP.
    name String
    The name of the Kubernetes cluster.
    nodeAddresses List<String>
    List of IP addresses for worker nodes in the Kubernetes cluster.
    nodeCount Number
    Total number of nodes in the Kubernetes cluster.
    podsIpPool String
    IP pool to be used for pods within the Kubernetes cluster.
    pool Property Map
    Configuration details of the node pool in the Kubernetes cluster.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    servicesIpPool String
    IP pool to be used for services within the Kubernetes cluster.
    status String
    The current status of the Kubernetes cluster.
    statusReason String
    The reason for the current status of the Kubernetes cluster, if ERROR.
    timeouts Property Map
    updatedAt String
    The timestamp when the Kubernetes cluster was updated.
    userId String
    User identifier associated with the Kubernetes cluster.
    version String
    The version of the Kubernetes cluster.

    Supporting Types

    K8sPool, K8sPoolArgs

    FlavorId string
    MaxNodeCount double
    MinNodeCount double
    Name string
    NodeCount double
    CreatedAt string
    DockerVolumeSize double
    DockerVolumeType string
    Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
    StackId string
    Uuid string
    FlavorId string
    MaxNodeCount float64
    MinNodeCount float64
    Name string
    NodeCount float64
    CreatedAt string
    DockerVolumeSize float64
    DockerVolumeType string
    Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
    StackId string
    Uuid string
    flavorId String
    maxNodeCount Double
    minNodeCount Double
    name String
    nodeCount Double
    createdAt String
    dockerVolumeSize Double
    dockerVolumeType String
    Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
    stackId String
    uuid String
    flavorId string
    maxNodeCount number
    minNodeCount number
    name string
    nodeCount number
    createdAt string
    dockerVolumeSize number
    dockerVolumeType string
    Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
    stackId string
    uuid string
    flavor_id str
    max_node_count float
    min_node_count float
    name str
    node_count float
    created_at str
    docker_volume_size float
    docker_volume_type str
    Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
    stack_id str
    uuid str
    flavorId String
    maxNodeCount Number
    minNodeCount Number
    name String
    nodeCount Number
    createdAt String
    dockerVolumeSize Number
    dockerVolumeType String
    Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
    stackId String
    uuid String

    K8sTimeouts, K8sTimeoutsArgs

    Create string
    Update string
    Create string
    Update string
    create String
    update String
    create string
    update string
    create str
    update str
    create String
    update String

    Import

    import using <project_id>:<region_id>:<cluster_id> format

    $ pulumi import edgecenter:index/k8s:K8s cluster1 1:6:447d2959-8ae0-4ca0-8d47-9f050a3637d7
    

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

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center