edgecenter.K8s
Explore with Pulumi AI
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)
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:
- Fixed
Network string - Fixed network (uuid) associated with the Kubernetes cluster.
- Fixed
Subnet string - Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
- Keypair string
- The name of the keypair
- Pool
K8s
Pool - Configuration details of the node pool in the Kubernetes cluster.
- Version string
- The version of the Kubernetes cluster.
- Auto
Healing boolEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
- K8s
Id string - The ID of this resource.
- Last
Updated string - The timestamp of the last update (use with update context).
- Master
Lb boolFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- Name string
- The name of the Kubernetes cluster.
- Pods
Ip stringPool - IP pool to be used for pods within the Kubernetes cluster.
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Services
Ip stringPool - IP pool to be used for services within the Kubernetes cluster.
- Timeouts
K8s
Timeouts
- Fixed
Network string - Fixed network (uuid) associated with the Kubernetes cluster.
- Fixed
Subnet string - Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
- Keypair string
- The name of the keypair
- Pool
K8s
Pool Type Args - Configuration details of the node pool in the Kubernetes cluster.
- Version string
- The version of the Kubernetes cluster.
- Auto
Healing boolEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
- K8s
Id string - The ID of this resource.
- Last
Updated string - The timestamp of the last update (use with update context).
- Master
Lb boolFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- Name string
- The name of the Kubernetes cluster.
- Pods
Ip stringPool - IP pool to be used for pods within the Kubernetes cluster.
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Services
Ip stringPool - IP pool to be used for services within the Kubernetes cluster.
- Timeouts
K8s
Timeouts Args
- fixed
Network String - Fixed network (uuid) associated with the Kubernetes cluster.
- fixed
Subnet String - Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
- keypair String
- The name of the keypair
- pool
K8s
Pool - Configuration details of the node pool in the Kubernetes cluster.
- version String
- The version of the Kubernetes cluster.
- auto
Healing BooleanEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
- k8s
Id String - The ID of this resource.
- last
Updated String - The timestamp of the last update (use with update context).
- master
Lb BooleanFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- name String
- The name of the Kubernetes cluster.
- pods
Ip StringPool - IP pool to be used for pods within the Kubernetes cluster.
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- services
Ip StringPool - IP pool to be used for services within the Kubernetes cluster.
- timeouts
K8s
Timeouts
- fixed
Network string - Fixed network (uuid) associated with the Kubernetes cluster.
- fixed
Subnet string - Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
- keypair string
- The name of the keypair
- pool
K8s
Pool - Configuration details of the node pool in the Kubernetes cluster.
- version string
- The version of the Kubernetes cluster.
- auto
Healing booleanEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
- k8s
Id string - The ID of this resource.
- last
Updated string - The timestamp of the last update (use with update context).
- master
Lb booleanFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- name string
- The name of the Kubernetes cluster.
- pods
Ip stringPool - IP pool to be used for pods within the Kubernetes cluster.
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- services
Ip stringPool - IP pool to be used for services within the Kubernetes cluster.
- timeouts
K8s
Timeouts
- 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
K8s
Pool Args - Configuration details of the node pool in the Kubernetes cluster.
- version str
- The version of the Kubernetes cluster.
- auto_
healing_ boolenabled - 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_ boolfloating_ ip_ enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- name str
- The name of the Kubernetes cluster.
- pods_
ip_ strpool - 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_ strpool - IP pool to be used for services within the Kubernetes cluster.
- timeouts
K8s
Timeouts Args
- fixed
Network String - Fixed network (uuid) associated with the Kubernetes cluster.
- fixed
Subnet 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.
- auto
Healing BooleanEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
- k8s
Id String - The ID of this resource.
- last
Updated String - The timestamp of the last update (use with update context).
- master
Lb BooleanFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- name String
- The name of the Kubernetes cluster.
- pods
Ip StringPool - IP pool to be used for pods within the Kubernetes cluster.
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- services
Ip StringPool - 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:
- Api
Address string - API endpoint address for the Kubernetes cluster.
- Cluster
Template stringId - Template identifier from which the Kubernetes cluster was instantiated.
- Container
Version string - The container runtime version used in the Kubernetes cluster.
- Created
At string - The timestamp when the Kubernetes cluster was created.
- Discovery
Url string - URL used for node discovery within the Kubernetes cluster.
- Faults Dictionary<string, string>
- Health
Status string - Overall health status of the Kubernetes cluster.
- Health
Status Dictionary<string, string>Reason - Id string
- The provider-assigned unique ID for this managed resource.
- Master
Addresses List<string> - List of IP addresses for master nodes in the Kubernetes cluster.
- Master
Flavor stringId - Identifier for the master node flavor in the Kubernetes cluster.
- Node
Addresses List<string> - List of IP addresses for worker nodes in the Kubernetes cluster.
- Node
Count double - Total number of nodes in the Kubernetes cluster.
- Status string
- The current status of the Kubernetes cluster.
- Status
Reason string - The reason for the current status of the Kubernetes cluster, if ERROR.
- Updated
At string - The timestamp when the Kubernetes cluster was updated.
- User
Id string - User identifier associated with the Kubernetes cluster.
- Api
Address string - API endpoint address for the Kubernetes cluster.
- Cluster
Template stringId - Template identifier from which the Kubernetes cluster was instantiated.
- Container
Version string - The container runtime version used in the Kubernetes cluster.
- Created
At string - The timestamp when the Kubernetes cluster was created.
- Discovery
Url string - URL used for node discovery within the Kubernetes cluster.
- Faults map[string]string
- Health
Status string - Overall health status of the Kubernetes cluster.
- Health
Status map[string]stringReason - Id string
- The provider-assigned unique ID for this managed resource.
- Master
Addresses []string - List of IP addresses for master nodes in the Kubernetes cluster.
- Master
Flavor stringId - Identifier for the master node flavor in the Kubernetes cluster.
- Node
Addresses []string - List of IP addresses for worker nodes in the Kubernetes cluster.
- Node
Count float64 - Total number of nodes in the Kubernetes cluster.
- Status string
- The current status of the Kubernetes cluster.
- Status
Reason string - The reason for the current status of the Kubernetes cluster, if ERROR.
- Updated
At string - The timestamp when the Kubernetes cluster was updated.
- User
Id string - User identifier associated with the Kubernetes cluster.
- api
Address String - API endpoint address for the Kubernetes cluster.
- cluster
Template StringId - Template identifier from which the Kubernetes cluster was instantiated.
- container
Version String - The container runtime version used in the Kubernetes cluster.
- created
At String - The timestamp when the Kubernetes cluster was created.
- discovery
Url String - URL used for node discovery within the Kubernetes cluster.
- faults Map<String,String>
- health
Status String - Overall health status of the Kubernetes cluster.
- health
Status Map<String,String>Reason - id String
- The provider-assigned unique ID for this managed resource.
- master
Addresses List<String> - List of IP addresses for master nodes in the Kubernetes cluster.
- master
Flavor StringId - Identifier for the master node flavor in the Kubernetes cluster.
- node
Addresses List<String> - List of IP addresses for worker nodes in the Kubernetes cluster.
- node
Count Double - Total number of nodes in the Kubernetes cluster.
- status String
- The current status of the Kubernetes cluster.
- status
Reason String - The reason for the current status of the Kubernetes cluster, if ERROR.
- updated
At String - The timestamp when the Kubernetes cluster was updated.
- user
Id String - User identifier associated with the Kubernetes cluster.
- api
Address string - API endpoint address for the Kubernetes cluster.
- cluster
Template stringId - Template identifier from which the Kubernetes cluster was instantiated.
- container
Version string - The container runtime version used in the Kubernetes cluster.
- created
At string - The timestamp when the Kubernetes cluster was created.
- discovery
Url string - URL used for node discovery within the Kubernetes cluster.
- faults {[key: string]: string}
- health
Status string - Overall health status of the Kubernetes cluster.
- health
Status {[key: string]: string}Reason - id string
- The provider-assigned unique ID for this managed resource.
- master
Addresses string[] - List of IP addresses for master nodes in the Kubernetes cluster.
- master
Flavor stringId - Identifier for the master node flavor in the Kubernetes cluster.
- node
Addresses string[] - List of IP addresses for worker nodes in the Kubernetes cluster.
- node
Count number - Total number of nodes in the Kubernetes cluster.
- status string
- The current status of the Kubernetes cluster.
- status
Reason string - The reason for the current status of the Kubernetes cluster, if ERROR.
- updated
At string - The timestamp when the Kubernetes cluster was updated.
- user
Id string - User identifier associated with the Kubernetes cluster.
- api_
address str - API endpoint address for the Kubernetes cluster.
- cluster_
template_ strid - 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_ Mapping[str, str]reason - 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_ strid - 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.
- api
Address String - API endpoint address for the Kubernetes cluster.
- cluster
Template StringId - Template identifier from which the Kubernetes cluster was instantiated.
- container
Version String - The container runtime version used in the Kubernetes cluster.
- created
At String - The timestamp when the Kubernetes cluster was created.
- discovery
Url String - URL used for node discovery within the Kubernetes cluster.
- faults Map<String>
- health
Status String - Overall health status of the Kubernetes cluster.
- health
Status Map<String>Reason - id String
- The provider-assigned unique ID for this managed resource.
- master
Addresses List<String> - List of IP addresses for master nodes in the Kubernetes cluster.
- master
Flavor StringId - Identifier for the master node flavor in the Kubernetes cluster.
- node
Addresses List<String> - List of IP addresses for worker nodes in the Kubernetes cluster.
- node
Count Number - Total number of nodes in the Kubernetes cluster.
- status String
- The current status of the Kubernetes cluster.
- status
Reason String - The reason for the current status of the Kubernetes cluster, if ERROR.
- updated
At String - The timestamp when the Kubernetes cluster was updated.
- user
Id 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.
- Api
Address string - API endpoint address for the Kubernetes cluster.
- Auto
Healing boolEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
- Cluster
Template stringId - Template identifier from which the Kubernetes cluster was instantiated.
- Container
Version string - The container runtime version used in the Kubernetes cluster.
- Created
At string - The timestamp when the Kubernetes cluster was created.
- Discovery
Url string - URL used for node discovery within the Kubernetes cluster.
- Faults Dictionary<string, string>
- Fixed
Network string - Fixed network (uuid) associated with the Kubernetes cluster.
- Fixed
Subnet string - Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
- Health
Status string - Overall health status of the Kubernetes cluster.
- Health
Status Dictionary<string, string>Reason - K8s
Id string - The ID of this resource.
- Keypair string
- The name of the keypair
- Last
Updated string - The timestamp of the last update (use with update context).
- Master
Addresses List<string> - List of IP addresses for master nodes in the Kubernetes cluster.
- Master
Flavor stringId - Identifier for the master node flavor in the Kubernetes cluster.
- Master
Lb boolFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- Name string
- The name of the Kubernetes cluster.
- Node
Addresses List<string> - List of IP addresses for worker nodes in the Kubernetes cluster.
- Node
Count double - Total number of nodes in the Kubernetes cluster.
- Pods
Ip stringPool - IP pool to be used for pods within the Kubernetes cluster.
- Pool
K8s
Pool - Configuration details of the node pool in the Kubernetes cluster.
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Services
Ip stringPool - IP pool to be used for services within the Kubernetes cluster.
- Status string
- The current status of the Kubernetes cluster.
- Status
Reason string - The reason for the current status of the Kubernetes cluster, if ERROR.
- Timeouts
K8s
Timeouts - Updated
At string - The timestamp when the Kubernetes cluster was updated.
- User
Id string - User identifier associated with the Kubernetes cluster.
- Version string
- The version of the Kubernetes cluster.
- Api
Address string - API endpoint address for the Kubernetes cluster.
- Auto
Healing boolEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
- Cluster
Template stringId - Template identifier from which the Kubernetes cluster was instantiated.
- Container
Version string - The container runtime version used in the Kubernetes cluster.
- Created
At string - The timestamp when the Kubernetes cluster was created.
- Discovery
Url string - URL used for node discovery within the Kubernetes cluster.
- Faults map[string]string
- Fixed
Network string - Fixed network (uuid) associated with the Kubernetes cluster.
- Fixed
Subnet string - Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
- Health
Status string - Overall health status of the Kubernetes cluster.
- Health
Status map[string]stringReason - K8s
Id string - The ID of this resource.
- Keypair string
- The name of the keypair
- Last
Updated string - The timestamp of the last update (use with update context).
- Master
Addresses []string - List of IP addresses for master nodes in the Kubernetes cluster.
- Master
Flavor stringId - Identifier for the master node flavor in the Kubernetes cluster.
- Master
Lb boolFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- Name string
- The name of the Kubernetes cluster.
- Node
Addresses []string - List of IP addresses for worker nodes in the Kubernetes cluster.
- Node
Count float64 - Total number of nodes in the Kubernetes cluster.
- Pods
Ip stringPool - IP pool to be used for pods within the Kubernetes cluster.
- Pool
K8s
Pool Type Args - Configuration details of the node pool in the Kubernetes cluster.
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Services
Ip stringPool - IP pool to be used for services within the Kubernetes cluster.
- Status string
- The current status of the Kubernetes cluster.
- Status
Reason string - The reason for the current status of the Kubernetes cluster, if ERROR.
- Timeouts
K8s
Timeouts Args - Updated
At string - The timestamp when the Kubernetes cluster was updated.
- User
Id string - User identifier associated with the Kubernetes cluster.
- Version string
- The version of the Kubernetes cluster.
- api
Address String - API endpoint address for the Kubernetes cluster.
- auto
Healing BooleanEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
- cluster
Template StringId - Template identifier from which the Kubernetes cluster was instantiated.
- container
Version String - The container runtime version used in the Kubernetes cluster.
- created
At String - The timestamp when the Kubernetes cluster was created.
- discovery
Url String - URL used for node discovery within the Kubernetes cluster.
- faults Map<String,String>
- fixed
Network String - Fixed network (uuid) associated with the Kubernetes cluster.
- fixed
Subnet String - Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
- health
Status String - Overall health status of the Kubernetes cluster.
- health
Status Map<String,String>Reason - k8s
Id String - The ID of this resource.
- keypair String
- The name of the keypair
- last
Updated String - The timestamp of the last update (use with update context).
- master
Addresses List<String> - List of IP addresses for master nodes in the Kubernetes cluster.
- master
Flavor StringId - Identifier for the master node flavor in the Kubernetes cluster.
- master
Lb BooleanFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- name String
- The name of the Kubernetes cluster.
- node
Addresses List<String> - List of IP addresses for worker nodes in the Kubernetes cluster.
- node
Count Double - Total number of nodes in the Kubernetes cluster.
- pods
Ip StringPool - IP pool to be used for pods within the Kubernetes cluster.
- pool
K8s
Pool - Configuration details of the node pool in the Kubernetes cluster.
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- services
Ip StringPool - IP pool to be used for services within the Kubernetes cluster.
- status String
- The current status of the Kubernetes cluster.
- status
Reason String - The reason for the current status of the Kubernetes cluster, if ERROR.
- timeouts
K8s
Timeouts - updated
At String - The timestamp when the Kubernetes cluster was updated.
- user
Id String - User identifier associated with the Kubernetes cluster.
- version String
- The version of the Kubernetes cluster.
- api
Address string - API endpoint address for the Kubernetes cluster.
- auto
Healing booleanEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
- cluster
Template stringId - Template identifier from which the Kubernetes cluster was instantiated.
- container
Version string - The container runtime version used in the Kubernetes cluster.
- created
At string - The timestamp when the Kubernetes cluster was created.
- discovery
Url string - URL used for node discovery within the Kubernetes cluster.
- faults {[key: string]: string}
- fixed
Network string - Fixed network (uuid) associated with the Kubernetes cluster.
- fixed
Subnet string - Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
- health
Status string - Overall health status of the Kubernetes cluster.
- health
Status {[key: string]: string}Reason - k8s
Id string - The ID of this resource.
- keypair string
- The name of the keypair
- last
Updated string - The timestamp of the last update (use with update context).
- master
Addresses string[] - List of IP addresses for master nodes in the Kubernetes cluster.
- master
Flavor stringId - Identifier for the master node flavor in the Kubernetes cluster.
- master
Lb booleanFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- name string
- The name of the Kubernetes cluster.
- node
Addresses string[] - List of IP addresses for worker nodes in the Kubernetes cluster.
- node
Count number - Total number of nodes in the Kubernetes cluster.
- pods
Ip stringPool - IP pool to be used for pods within the Kubernetes cluster.
- pool
K8s
Pool - Configuration details of the node pool in the Kubernetes cluster.
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- services
Ip stringPool - IP pool to be used for services within the Kubernetes cluster.
- status string
- The current status of the Kubernetes cluster.
- status
Reason string - The reason for the current status of the Kubernetes cluster, if ERROR.
- timeouts
K8s
Timeouts - updated
At string - The timestamp when the Kubernetes cluster was updated.
- user
Id 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_ boolenabled - Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
- cluster_
template_ strid - 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_ Mapping[str, str]reason - 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_ strid - Identifier for the master node flavor in the Kubernetes cluster.
- master_
lb_ boolfloating_ ip_ enabled - 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_ strpool - IP pool to be used for pods within the Kubernetes cluster.
- pool
K8s
Pool Args - 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_ strpool - 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
K8s
Timeouts Args - 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.
- api
Address String - API endpoint address for the Kubernetes cluster.
- auto
Healing BooleanEnabled - Indicates whether auto-healing is enabled for the Kubernetes cluster. true by default.
- cluster
Template StringId - Template identifier from which the Kubernetes cluster was instantiated.
- container
Version String - The container runtime version used in the Kubernetes cluster.
- created
At String - The timestamp when the Kubernetes cluster was created.
- discovery
Url String - URL used for node discovery within the Kubernetes cluster.
- faults Map<String>
- fixed
Network String - Fixed network (uuid) associated with the Kubernetes cluster.
- fixed
Subnet String - Subnet (uuid) associated with the fixed network. Ensure there's a router on this subnet.
- health
Status String - Overall health status of the Kubernetes cluster.
- health
Status Map<String>Reason - k8s
Id String - The ID of this resource.
- keypair String
- The name of the keypair
- last
Updated String - The timestamp of the last update (use with update context).
- master
Addresses List<String> - List of IP addresses for master nodes in the Kubernetes cluster.
- master
Flavor StringId - Identifier for the master node flavor in the Kubernetes cluster.
- master
Lb BooleanFloating Ip Enabled - Flag indicating if the master LoadBalancer should have a floating IP.
- name String
- The name of the Kubernetes cluster.
- node
Addresses List<String> - List of IP addresses for worker nodes in the Kubernetes cluster.
- node
Count Number - Total number of nodes in the Kubernetes cluster.
- pods
Ip StringPool - IP pool to be used for pods within the Kubernetes cluster.
- pool Property Map
- Configuration details of the node pool in the Kubernetes cluster.
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- services
Ip StringPool - IP pool to be used for services within the Kubernetes cluster.
- status String
- The current status of the Kubernetes cluster.
- status
Reason String - The reason for the current status of the Kubernetes cluster, if ERROR.
- timeouts Property Map
- updated
At String - The timestamp when the Kubernetes cluster was updated.
- user
Id String - User identifier associated with the Kubernetes cluster.
- version String
- The version of the Kubernetes cluster.
Supporting Types
K8sPool, K8sPoolArgs
- Flavor
Id string - Max
Node doubleCount - Min
Node doubleCount - Name string
- Node
Count double - Created
At string - Docker
Volume doubleSize - Docker
Volume stringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- Stack
Id string - Uuid string
- Flavor
Id string - Max
Node float64Count - Min
Node float64Count - Name string
- Node
Count float64 - Created
At string - Docker
Volume float64Size - Docker
Volume stringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- Stack
Id string - Uuid string
- flavor
Id String - max
Node DoubleCount - min
Node DoubleCount - name String
- node
Count Double - created
At String - docker
Volume DoubleSize - docker
Volume StringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- stack
Id String - uuid String
- flavor
Id string - max
Node numberCount - min
Node numberCount - name string
- node
Count number - created
At string - docker
Volume numberSize - docker
Volume stringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- stack
Id string - uuid string
- flavor_
id str - max_
node_ floatcount - min_
node_ floatcount - name str
- node_
count float - created_
at str - docker_
volume_ floatsize - docker_
volume_ strtype - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- stack_
id str - uuid str
- flavor
Id String - max
Node NumberCount - min
Node NumberCount - name String
- node
Count Number - created
At String - docker
Volume NumberSize - docker
Volume StringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- stack
Id String - uuid String
K8sTimeouts, K8sTimeoutsArgs
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.