vkcs.KubernetesCluster
Explore with Pulumi AI
Provides a kubernetes cluster resource. This can be used to create, modify and delete kubernetes clusters.
Standard Kubernetes cluster
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const k8sCluster = new vkcs.KubernetesCluster("k8sCluster", {
clusterType: "standard",
clusterTemplateId: data.vkcs_kubernetes_clustertemplate.k8s_31.id,
masterFlavor: data.vkcs_compute_flavor.basic.id,
masterCount: 1,
labels: {
cloud_monitoring: "true",
kube_log_level: "2",
clean_volumes: "true",
master_volume_size: "100",
cluster_node_volume_type: "ceph-ssd",
},
availabilityZone: "MS1",
networkId: vkcs_networking_network.app.id,
subnetId: vkcs_networking_subnet.app.id,
floatingIpEnabled: true,
syncSecurityPolicy: true,
}, {
dependsOn: [vkcs_networking_router_interface.app],
});
import pulumi
import pulumi_vkcs as vkcs
k8s_cluster = vkcs.KubernetesCluster("k8sCluster",
cluster_type="standard",
cluster_template_id=data["vkcs_kubernetes_clustertemplate"]["k8s_31"]["id"],
master_flavor=data["vkcs_compute_flavor"]["basic"]["id"],
master_count=1,
labels={
"cloud_monitoring": "true",
"kube_log_level": "2",
"clean_volumes": "true",
"master_volume_size": "100",
"cluster_node_volume_type": "ceph-ssd",
},
availability_zone="MS1",
network_id=vkcs_networking_network["app"]["id"],
subnet_id=vkcs_networking_subnet["app"]["id"],
floating_ip_enabled=True,
sync_security_policy=True,
opts = pulumi.ResourceOptions(depends_on=[vkcs_networking_router_interface["app"]]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.NewKubernetesCluster(ctx, "k8sCluster", &vkcs.KubernetesClusterArgs{
ClusterType: pulumi.String("standard"),
ClusterTemplateId: pulumi.Any(data.Vkcs_kubernetes_clustertemplate.K8s_31.Id),
MasterFlavor: pulumi.Any(data.Vkcs_compute_flavor.Basic.Id),
MasterCount: pulumi.Float64(1),
Labels: pulumi.StringMap{
"cloud_monitoring": pulumi.String("true"),
"kube_log_level": pulumi.String("2"),
"clean_volumes": pulumi.String("true"),
"master_volume_size": pulumi.String("100"),
"cluster_node_volume_type": pulumi.String("ceph-ssd"),
},
AvailabilityZone: pulumi.String("MS1"),
NetworkId: pulumi.Any(vkcs_networking_network.App.Id),
SubnetId: pulumi.Any(vkcs_networking_subnet.App.Id),
FloatingIpEnabled: pulumi.Bool(true),
SyncSecurityPolicy: pulumi.Bool(true),
}, pulumi.DependsOn([]pulumi.Resource{
vkcs_networking_router_interface.App,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var k8sCluster = new Vkcs.KubernetesCluster("k8sCluster", new()
{
ClusterType = "standard",
ClusterTemplateId = data.Vkcs_kubernetes_clustertemplate.K8s_31.Id,
MasterFlavor = data.Vkcs_compute_flavor.Basic.Id,
MasterCount = 1,
Labels =
{
{ "cloud_monitoring", "true" },
{ "kube_log_level", "2" },
{ "clean_volumes", "true" },
{ "master_volume_size", "100" },
{ "cluster_node_volume_type", "ceph-ssd" },
},
AvailabilityZone = "MS1",
NetworkId = vkcs_networking_network.App.Id,
SubnetId = vkcs_networking_subnet.App.Id,
FloatingIpEnabled = true,
SyncSecurityPolicy = true,
}, new CustomResourceOptions
{
DependsOn =
{
vkcs_networking_router_interface.App,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.KubernetesCluster;
import com.pulumi.vkcs.KubernetesClusterArgs;
import com.pulumi.resources.CustomResourceOptions;
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 k8sCluster = new KubernetesCluster("k8sCluster", KubernetesClusterArgs.builder()
.clusterType("standard")
.clusterTemplateId(data.vkcs_kubernetes_clustertemplate().k8s_31().id())
.masterFlavor(data.vkcs_compute_flavor().basic().id())
.masterCount(1)
.labels(Map.ofEntries(
Map.entry("cloud_monitoring", "true"),
Map.entry("kube_log_level", "2"),
Map.entry("clean_volumes", "true"),
Map.entry("master_volume_size", "100"),
Map.entry("cluster_node_volume_type", "ceph-ssd")
))
.availabilityZone("MS1")
.networkId(vkcs_networking_network.app().id())
.subnetId(vkcs_networking_subnet.app().id())
.floatingIpEnabled(true)
.syncSecurityPolicy(true)
.build(), CustomResourceOptions.builder()
.dependsOn(vkcs_networking_router_interface.app())
.build());
}
}
resources:
k8sCluster:
type: vkcs:KubernetesCluster
properties:
clusterType: standard
clusterTemplateId: ${data.vkcs_kubernetes_clustertemplate.k8s_31.id}
masterFlavor: ${data.vkcs_compute_flavor.basic.id}
masterCount: 1
labels:
cloud_monitoring: 'true'
kube_log_level: '2'
clean_volumes: 'true'
master_volume_size: '100'
cluster_node_volume_type: ceph-ssd
availabilityZone: MS1
networkId: ${vkcs_networking_network.app.id}
subnetId: ${vkcs_networking_subnet.app.id}
floatingIpEnabled: true
syncSecurityPolicy: true
options:
dependsOn:
- ${vkcs_networking_router_interface.app}
Regional Kubernetes cluster
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const k8sCluster = new vkcs.KubernetesCluster("k8sCluster", {
clusterType: "regional",
clusterTemplateId: data.vkcs_kubernetes_clustertemplate.k8s_31.id,
masterFlavor: data.vkcs_compute_flavor.basic.id,
masterCount: 3,
labels: {
cloud_monitoring: "true",
kube_log_level: "2",
clean_volumes: "true",
master_volume_size: "100",
cluster_node_volume_type: "ceph-ssd",
},
networkId: vkcs_networking_network.app.id,
subnetId: vkcs_networking_subnet.app.id,
floatingIpEnabled: true,
syncSecurityPolicy: true,
}, {
dependsOn: [vkcs_networking_router_interface.app],
});
import pulumi
import pulumi_vkcs as vkcs
k8s_cluster = vkcs.KubernetesCluster("k8sCluster",
cluster_type="regional",
cluster_template_id=data["vkcs_kubernetes_clustertemplate"]["k8s_31"]["id"],
master_flavor=data["vkcs_compute_flavor"]["basic"]["id"],
master_count=3,
labels={
"cloud_monitoring": "true",
"kube_log_level": "2",
"clean_volumes": "true",
"master_volume_size": "100",
"cluster_node_volume_type": "ceph-ssd",
},
network_id=vkcs_networking_network["app"]["id"],
subnet_id=vkcs_networking_subnet["app"]["id"],
floating_ip_enabled=True,
sync_security_policy=True,
opts = pulumi.ResourceOptions(depends_on=[vkcs_networking_router_interface["app"]]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.NewKubernetesCluster(ctx, "k8sCluster", &vkcs.KubernetesClusterArgs{
ClusterType: pulumi.String("regional"),
ClusterTemplateId: pulumi.Any(data.Vkcs_kubernetes_clustertemplate.K8s_31.Id),
MasterFlavor: pulumi.Any(data.Vkcs_compute_flavor.Basic.Id),
MasterCount: pulumi.Float64(3),
Labels: pulumi.StringMap{
"cloud_monitoring": pulumi.String("true"),
"kube_log_level": pulumi.String("2"),
"clean_volumes": pulumi.String("true"),
"master_volume_size": pulumi.String("100"),
"cluster_node_volume_type": pulumi.String("ceph-ssd"),
},
NetworkId: pulumi.Any(vkcs_networking_network.App.Id),
SubnetId: pulumi.Any(vkcs_networking_subnet.App.Id),
FloatingIpEnabled: pulumi.Bool(true),
SyncSecurityPolicy: pulumi.Bool(true),
}, pulumi.DependsOn([]pulumi.Resource{
vkcs_networking_router_interface.App,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var k8sCluster = new Vkcs.KubernetesCluster("k8sCluster", new()
{
ClusterType = "regional",
ClusterTemplateId = data.Vkcs_kubernetes_clustertemplate.K8s_31.Id,
MasterFlavor = data.Vkcs_compute_flavor.Basic.Id,
MasterCount = 3,
Labels =
{
{ "cloud_monitoring", "true" },
{ "kube_log_level", "2" },
{ "clean_volumes", "true" },
{ "master_volume_size", "100" },
{ "cluster_node_volume_type", "ceph-ssd" },
},
NetworkId = vkcs_networking_network.App.Id,
SubnetId = vkcs_networking_subnet.App.Id,
FloatingIpEnabled = true,
SyncSecurityPolicy = true,
}, new CustomResourceOptions
{
DependsOn =
{
vkcs_networking_router_interface.App,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.KubernetesCluster;
import com.pulumi.vkcs.KubernetesClusterArgs;
import com.pulumi.resources.CustomResourceOptions;
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 k8sCluster = new KubernetesCluster("k8sCluster", KubernetesClusterArgs.builder()
.clusterType("regional")
.clusterTemplateId(data.vkcs_kubernetes_clustertemplate().k8s_31().id())
.masterFlavor(data.vkcs_compute_flavor().basic().id())
.masterCount(3)
.labels(Map.ofEntries(
Map.entry("cloud_monitoring", "true"),
Map.entry("kube_log_level", "2"),
Map.entry("clean_volumes", "true"),
Map.entry("master_volume_size", "100"),
Map.entry("cluster_node_volume_type", "ceph-ssd")
))
.networkId(vkcs_networking_network.app().id())
.subnetId(vkcs_networking_subnet.app().id())
.floatingIpEnabled(true)
.syncSecurityPolicy(true)
.build(), CustomResourceOptions.builder()
.dependsOn(vkcs_networking_router_interface.app())
.build());
}
}
resources:
k8sCluster:
type: vkcs:KubernetesCluster
properties:
clusterType: regional
clusterTemplateId: ${data.vkcs_kubernetes_clustertemplate.k8s_31.id}
masterFlavor: ${data.vkcs_compute_flavor.basic.id}
masterCount: 3
labels:
cloud_monitoring: 'true'
kube_log_level: '2'
clean_volumes: 'true'
master_volume_size: '100'
cluster_node_volume_type: ceph-ssd
networkId: ${vkcs_networking_network.app.id}
subnetId: ${vkcs_networking_subnet.app.id}
floatingIpEnabled: true
syncSecurityPolicy: true
options:
dependsOn:
- ${vkcs_networking_router_interface.app}
Create KubernetesCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KubernetesCluster(name: string, args: KubernetesClusterArgs, opts?: CustomResourceOptions);
@overload
def KubernetesCluster(resource_name: str,
args: KubernetesClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KubernetesCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_template_id: Optional[str] = None,
subnet_id: Optional[str] = None,
network_id: Optional[str] = None,
floating_ip_enabled: Optional[bool] = None,
labels: Optional[Mapping[str, str]] = None,
master_flavor: Optional[str] = None,
dns_domain: Optional[str] = None,
availability_zones: Optional[Sequence[str]] = None,
ingress_floating_ip: Optional[str] = None,
insecure_registries: Optional[Sequence[str]] = None,
keypair: Optional[str] = None,
kubernetes_cluster_id: Optional[str] = None,
api_lb_fip: Optional[str] = None,
loadbalancer_subnet_id: Optional[str] = None,
master_count: Optional[float] = None,
cluster_type: Optional[str] = None,
name: Optional[str] = None,
availability_zone: Optional[str] = None,
pods_network_cidr: Optional[str] = None,
region: Optional[str] = None,
registry_auth_password: Optional[str] = None,
status: Optional[str] = None,
api_lb_vip: Optional[str] = None,
sync_security_policy: Optional[bool] = None,
timeouts: Optional[KubernetesClusterTimeoutsArgs] = None)
func NewKubernetesCluster(ctx *Context, name string, args KubernetesClusterArgs, opts ...ResourceOption) (*KubernetesCluster, error)
public KubernetesCluster(string name, KubernetesClusterArgs args, CustomResourceOptions? opts = null)
public KubernetesCluster(String name, KubernetesClusterArgs args)
public KubernetesCluster(String name, KubernetesClusterArgs args, CustomResourceOptions options)
type: vkcs:KubernetesCluster
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 KubernetesClusterArgs
- 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 KubernetesClusterArgs
- 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 KubernetesClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubernetesClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubernetesClusterArgs
- 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 kubernetesClusterResource = new Vkcs.KubernetesCluster("kubernetesClusterResource", new()
{
ClusterTemplateId = "string",
SubnetId = "string",
NetworkId = "string",
FloatingIpEnabled = false,
Labels =
{
{ "string", "string" },
},
MasterFlavor = "string",
DnsDomain = "string",
AvailabilityZones = new[]
{
"string",
},
InsecureRegistries = new[]
{
"string",
},
KubernetesClusterId = "string",
ApiLbFip = "string",
LoadbalancerSubnetId = "string",
MasterCount = 0,
ClusterType = "string",
Name = "string",
AvailabilityZone = "string",
PodsNetworkCidr = "string",
Region = "string",
RegistryAuthPassword = "string",
Status = "string",
ApiLbVip = "string",
SyncSecurityPolicy = false,
Timeouts = new Vkcs.Inputs.KubernetesClusterTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := vkcs.NewKubernetesCluster(ctx, "kubernetesClusterResource", &vkcs.KubernetesClusterArgs{
ClusterTemplateId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
NetworkId: pulumi.String("string"),
FloatingIpEnabled: pulumi.Bool(false),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
MasterFlavor: pulumi.String("string"),
DnsDomain: pulumi.String("string"),
AvailabilityZones: pulumi.StringArray{
pulumi.String("string"),
},
InsecureRegistries: pulumi.StringArray{
pulumi.String("string"),
},
KubernetesClusterId: pulumi.String("string"),
ApiLbFip: pulumi.String("string"),
LoadbalancerSubnetId: pulumi.String("string"),
MasterCount: pulumi.Float64(0),
ClusterType: pulumi.String("string"),
Name: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
PodsNetworkCidr: pulumi.String("string"),
Region: pulumi.String("string"),
RegistryAuthPassword: pulumi.String("string"),
Status: pulumi.String("string"),
ApiLbVip: pulumi.String("string"),
SyncSecurityPolicy: pulumi.Bool(false),
Timeouts: &.KubernetesClusterTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var kubernetesClusterResource = new KubernetesCluster("kubernetesClusterResource", KubernetesClusterArgs.builder()
.clusterTemplateId("string")
.subnetId("string")
.networkId("string")
.floatingIpEnabled(false)
.labels(Map.of("string", "string"))
.masterFlavor("string")
.dnsDomain("string")
.availabilityZones("string")
.insecureRegistries("string")
.kubernetesClusterId("string")
.apiLbFip("string")
.loadbalancerSubnetId("string")
.masterCount(0)
.clusterType("string")
.name("string")
.availabilityZone("string")
.podsNetworkCidr("string")
.region("string")
.registryAuthPassword("string")
.status("string")
.apiLbVip("string")
.syncSecurityPolicy(false)
.timeouts(KubernetesClusterTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
kubernetes_cluster_resource = vkcs.KubernetesCluster("kubernetesClusterResource",
cluster_template_id="string",
subnet_id="string",
network_id="string",
floating_ip_enabled=False,
labels={
"string": "string",
},
master_flavor="string",
dns_domain="string",
availability_zones=["string"],
insecure_registries=["string"],
kubernetes_cluster_id="string",
api_lb_fip="string",
loadbalancer_subnet_id="string",
master_count=0,
cluster_type="string",
name="string",
availability_zone="string",
pods_network_cidr="string",
region="string",
registry_auth_password="string",
status="string",
api_lb_vip="string",
sync_security_policy=False,
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const kubernetesClusterResource = new vkcs.KubernetesCluster("kubernetesClusterResource", {
clusterTemplateId: "string",
subnetId: "string",
networkId: "string",
floatingIpEnabled: false,
labels: {
string: "string",
},
masterFlavor: "string",
dnsDomain: "string",
availabilityZones: ["string"],
insecureRegistries: ["string"],
kubernetesClusterId: "string",
apiLbFip: "string",
loadbalancerSubnetId: "string",
masterCount: 0,
clusterType: "string",
name: "string",
availabilityZone: "string",
podsNetworkCidr: "string",
region: "string",
registryAuthPassword: "string",
status: "string",
apiLbVip: "string",
syncSecurityPolicy: false,
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: vkcs:KubernetesCluster
properties:
apiLbFip: string
apiLbVip: string
availabilityZone: string
availabilityZones:
- string
clusterTemplateId: string
clusterType: string
dnsDomain: string
floatingIpEnabled: false
insecureRegistries:
- string
kubernetesClusterId: string
labels:
string: string
loadbalancerSubnetId: string
masterCount: 0
masterFlavor: string
name: string
networkId: string
podsNetworkCidr: string
region: string
registryAuthPassword: string
status: string
subnetId: string
syncSecurityPolicy: false
timeouts:
create: string
delete: string
update: string
KubernetesCluster 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 KubernetesCluster resource accepts the following input properties:
- Cluster
Template stringId - required string → The UUID of the Kubernetes cluster template. It can be obtained using the cluster_template data source.
- Floating
Ip boolEnabled - required boolean → Floating ip is enabled.
- Network
Id string - required string → UUID of the cluster's network.
- Subnet
Id string - required string → UUID of the cluster's subnet.
- Api
Lb stringFip - optional string → API LoadBalancer fip. IP address field.
- Api
Lb stringVip - optional string → API LoadBalancer vip. IP address field. The field is read-only, the value set in this field will be ignored. The ability to set this field will be removed in future versions of the provider.
- Availability
Zone string - optional string → Availability zone of the cluster, set this argument only for cluster with type
standard
. - Availability
Zones List<string> - optional set of string → Availability zones of the regional cluster, set this argument only for cluster with type
regional
. If you do not set this argument, the availability zones will be selected automatically.New since v0.8.3. - Cluster
Type string - optional string → Type of the kubernetes cluster, may be
standard
orregional
. Default type isstandard
.New since v0.8.3. - Dns
Domain string - optional string → Custom DNS cluster domain. Changing this creates a new cluster.
- Ingress
Floating stringIp - optional deprecated string → Floating IP created for ingress service. Deprecated This argument is deprecated as Ingress controller is not currently installed by default.
- Insecure
Registries List<string> - optional string → Addresses of registries from which you can download images without checking certificates. Changing this creates a new cluster.
- Keypair string
- optional deprecated string → The name of the Compute service SSH keypair. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- Kubernetes
Cluster stringId - string → ID of the resource.
- Labels Dictionary<string, string>
- optional map of string → The list of optional key value pairs representing additional properties of the cluster. Note: Updating this attribute will not immediately apply the changes; these options will be used when recreating or deleting cluster nodes, for example, during an upgrade operation.
- Loadbalancer
Subnet stringId - optional string → The UUID of the load balancer's subnet. Changing this creates new cluster.
- Master
Count double - optional number → The number of master nodes for the cluster. Changing this creates a new cluster.
- Master
Flavor string - optional string → The UUID of a flavor for the master nodes. If master_flavor is not present, value from cluster_template will be used.
- Name string
- required string → The name of the cluster. Changing this creates a new cluster. Should match the pattern
^[a-zA-Z][a-zA-Z0-9_.-]*$
. - Pods
Network stringCidr - optional string → Network cidr of k8s virtual network
- Region string
- optional string → Region to use for the cluster. Default is a region configured for provider.
- Registry
Auth stringPassword - optional string → Docker registry access password.
- Status string
- optional string → Current state of a cluster. Changing this to
RUNNING
orSHUTOFF
will turn cluster on/off. - Sync
Security boolPolicy - optional boolean → Enables syncing of security policies of cluster. Default value is false.New since v0.7.0.
- Timeouts
Kubernetes
Cluster Timeouts
- Cluster
Template stringId - required string → The UUID of the Kubernetes cluster template. It can be obtained using the cluster_template data source.
- Floating
Ip boolEnabled - required boolean → Floating ip is enabled.
- Network
Id string - required string → UUID of the cluster's network.
- Subnet
Id string - required string → UUID of the cluster's subnet.
- Api
Lb stringFip - optional string → API LoadBalancer fip. IP address field.
- Api
Lb stringVip - optional string → API LoadBalancer vip. IP address field. The field is read-only, the value set in this field will be ignored. The ability to set this field will be removed in future versions of the provider.
- Availability
Zone string - optional string → Availability zone of the cluster, set this argument only for cluster with type
standard
. - Availability
Zones []string - optional set of string → Availability zones of the regional cluster, set this argument only for cluster with type
regional
. If you do not set this argument, the availability zones will be selected automatically.New since v0.8.3. - Cluster
Type string - optional string → Type of the kubernetes cluster, may be
standard
orregional
. Default type isstandard
.New since v0.8.3. - Dns
Domain string - optional string → Custom DNS cluster domain. Changing this creates a new cluster.
- Ingress
Floating stringIp - optional deprecated string → Floating IP created for ingress service. Deprecated This argument is deprecated as Ingress controller is not currently installed by default.
- Insecure
Registries []string - optional string → Addresses of registries from which you can download images without checking certificates. Changing this creates a new cluster.
- Keypair string
- optional deprecated string → The name of the Compute service SSH keypair. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- Kubernetes
Cluster stringId - string → ID of the resource.
- Labels map[string]string
- optional map of string → The list of optional key value pairs representing additional properties of the cluster. Note: Updating this attribute will not immediately apply the changes; these options will be used when recreating or deleting cluster nodes, for example, during an upgrade operation.
- Loadbalancer
Subnet stringId - optional string → The UUID of the load balancer's subnet. Changing this creates new cluster.
- Master
Count float64 - optional number → The number of master nodes for the cluster. Changing this creates a new cluster.
- Master
Flavor string - optional string → The UUID of a flavor for the master nodes. If master_flavor is not present, value from cluster_template will be used.
- Name string
- required string → The name of the cluster. Changing this creates a new cluster. Should match the pattern
^[a-zA-Z][a-zA-Z0-9_.-]*$
. - Pods
Network stringCidr - optional string → Network cidr of k8s virtual network
- Region string
- optional string → Region to use for the cluster. Default is a region configured for provider.
- Registry
Auth stringPassword - optional string → Docker registry access password.
- Status string
- optional string → Current state of a cluster. Changing this to
RUNNING
orSHUTOFF
will turn cluster on/off. - Sync
Security boolPolicy - optional boolean → Enables syncing of security policies of cluster. Default value is false.New since v0.7.0.
- Timeouts
Kubernetes
Cluster Timeouts Args
- cluster
Template StringId - required string → The UUID of the Kubernetes cluster template. It can be obtained using the cluster_template data source.
- floating
Ip BooleanEnabled - required boolean → Floating ip is enabled.
- network
Id String - required string → UUID of the cluster's network.
- subnet
Id String - required string → UUID of the cluster's subnet.
- api
Lb StringFip - optional string → API LoadBalancer fip. IP address field.
- api
Lb StringVip - optional string → API LoadBalancer vip. IP address field. The field is read-only, the value set in this field will be ignored. The ability to set this field will be removed in future versions of the provider.
- availability
Zone String - optional string → Availability zone of the cluster, set this argument only for cluster with type
standard
. - availability
Zones List<String> - optional set of string → Availability zones of the regional cluster, set this argument only for cluster with type
regional
. If you do not set this argument, the availability zones will be selected automatically.New since v0.8.3. - cluster
Type String - optional string → Type of the kubernetes cluster, may be
standard
orregional
. Default type isstandard
.New since v0.8.3. - dns
Domain String - optional string → Custom DNS cluster domain. Changing this creates a new cluster.
- ingress
Floating StringIp - optional deprecated string → Floating IP created for ingress service. Deprecated This argument is deprecated as Ingress controller is not currently installed by default.
- insecure
Registries List<String> - optional string → Addresses of registries from which you can download images without checking certificates. Changing this creates a new cluster.
- keypair String
- optional deprecated string → The name of the Compute service SSH keypair. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- kubernetes
Cluster StringId - string → ID of the resource.
- labels Map<String,String>
- optional map of string → The list of optional key value pairs representing additional properties of the cluster. Note: Updating this attribute will not immediately apply the changes; these options will be used when recreating or deleting cluster nodes, for example, during an upgrade operation.
- loadbalancer
Subnet StringId - optional string → The UUID of the load balancer's subnet. Changing this creates new cluster.
- master
Count Double - optional number → The number of master nodes for the cluster. Changing this creates a new cluster.
- master
Flavor String - optional string → The UUID of a flavor for the master nodes. If master_flavor is not present, value from cluster_template will be used.
- name String
- required string → The name of the cluster. Changing this creates a new cluster. Should match the pattern
^[a-zA-Z][a-zA-Z0-9_.-]*$
. - pods
Network StringCidr - optional string → Network cidr of k8s virtual network
- region String
- optional string → Region to use for the cluster. Default is a region configured for provider.
- registry
Auth StringPassword - optional string → Docker registry access password.
- status String
- optional string → Current state of a cluster. Changing this to
RUNNING
orSHUTOFF
will turn cluster on/off. - sync
Security BooleanPolicy - optional boolean → Enables syncing of security policies of cluster. Default value is false.New since v0.7.0.
- timeouts
Kubernetes
Cluster Timeouts
- cluster
Template stringId - required string → The UUID of the Kubernetes cluster template. It can be obtained using the cluster_template data source.
- floating
Ip booleanEnabled - required boolean → Floating ip is enabled.
- network
Id string - required string → UUID of the cluster's network.
- subnet
Id string - required string → UUID of the cluster's subnet.
- api
Lb stringFip - optional string → API LoadBalancer fip. IP address field.
- api
Lb stringVip - optional string → API LoadBalancer vip. IP address field. The field is read-only, the value set in this field will be ignored. The ability to set this field will be removed in future versions of the provider.
- availability
Zone string - optional string → Availability zone of the cluster, set this argument only for cluster with type
standard
. - availability
Zones string[] - optional set of string → Availability zones of the regional cluster, set this argument only for cluster with type
regional
. If you do not set this argument, the availability zones will be selected automatically.New since v0.8.3. - cluster
Type string - optional string → Type of the kubernetes cluster, may be
standard
orregional
. Default type isstandard
.New since v0.8.3. - dns
Domain string - optional string → Custom DNS cluster domain. Changing this creates a new cluster.
- ingress
Floating stringIp - optional deprecated string → Floating IP created for ingress service. Deprecated This argument is deprecated as Ingress controller is not currently installed by default.
- insecure
Registries string[] - optional string → Addresses of registries from which you can download images without checking certificates. Changing this creates a new cluster.
- keypair string
- optional deprecated string → The name of the Compute service SSH keypair. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- kubernetes
Cluster stringId - string → ID of the resource.
- labels {[key: string]: string}
- optional map of string → The list of optional key value pairs representing additional properties of the cluster. Note: Updating this attribute will not immediately apply the changes; these options will be used when recreating or deleting cluster nodes, for example, during an upgrade operation.
- loadbalancer
Subnet stringId - optional string → The UUID of the load balancer's subnet. Changing this creates new cluster.
- master
Count number - optional number → The number of master nodes for the cluster. Changing this creates a new cluster.
- master
Flavor string - optional string → The UUID of a flavor for the master nodes. If master_flavor is not present, value from cluster_template will be used.
- name string
- required string → The name of the cluster. Changing this creates a new cluster. Should match the pattern
^[a-zA-Z][a-zA-Z0-9_.-]*$
. - pods
Network stringCidr - optional string → Network cidr of k8s virtual network
- region string
- optional string → Region to use for the cluster. Default is a region configured for provider.
- registry
Auth stringPassword - optional string → Docker registry access password.
- status string
- optional string → Current state of a cluster. Changing this to
RUNNING
orSHUTOFF
will turn cluster on/off. - sync
Security booleanPolicy - optional boolean → Enables syncing of security policies of cluster. Default value is false.New since v0.7.0.
- timeouts
Kubernetes
Cluster Timeouts
- cluster_
template_ strid - required string → The UUID of the Kubernetes cluster template. It can be obtained using the cluster_template data source.
- floating_
ip_ boolenabled - required boolean → Floating ip is enabled.
- network_
id str - required string → UUID of the cluster's network.
- subnet_
id str - required string → UUID of the cluster's subnet.
- api_
lb_ strfip - optional string → API LoadBalancer fip. IP address field.
- api_
lb_ strvip - optional string → API LoadBalancer vip. IP address field. The field is read-only, the value set in this field will be ignored. The ability to set this field will be removed in future versions of the provider.
- availability_
zone str - optional string → Availability zone of the cluster, set this argument only for cluster with type
standard
. - availability_
zones Sequence[str] - optional set of string → Availability zones of the regional cluster, set this argument only for cluster with type
regional
. If you do not set this argument, the availability zones will be selected automatically.New since v0.8.3. - cluster_
type str - optional string → Type of the kubernetes cluster, may be
standard
orregional
. Default type isstandard
.New since v0.8.3. - dns_
domain str - optional string → Custom DNS cluster domain. Changing this creates a new cluster.
- ingress_
floating_ strip - optional deprecated string → Floating IP created for ingress service. Deprecated This argument is deprecated as Ingress controller is not currently installed by default.
- insecure_
registries Sequence[str] - optional string → Addresses of registries from which you can download images without checking certificates. Changing this creates a new cluster.
- keypair str
- optional deprecated string → The name of the Compute service SSH keypair. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- kubernetes_
cluster_ strid - string → ID of the resource.
- labels Mapping[str, str]
- optional map of string → The list of optional key value pairs representing additional properties of the cluster. Note: Updating this attribute will not immediately apply the changes; these options will be used when recreating or deleting cluster nodes, for example, during an upgrade operation.
- loadbalancer_
subnet_ strid - optional string → The UUID of the load balancer's subnet. Changing this creates new cluster.
- master_
count float - optional number → The number of master nodes for the cluster. Changing this creates a new cluster.
- master_
flavor str - optional string → The UUID of a flavor for the master nodes. If master_flavor is not present, value from cluster_template will be used.
- name str
- required string → The name of the cluster. Changing this creates a new cluster. Should match the pattern
^[a-zA-Z][a-zA-Z0-9_.-]*$
. - pods_
network_ strcidr - optional string → Network cidr of k8s virtual network
- region str
- optional string → Region to use for the cluster. Default is a region configured for provider.
- registry_
auth_ strpassword - optional string → Docker registry access password.
- status str
- optional string → Current state of a cluster. Changing this to
RUNNING
orSHUTOFF
will turn cluster on/off. - sync_
security_ boolpolicy - optional boolean → Enables syncing of security policies of cluster. Default value is false.New since v0.7.0.
- timeouts
Kubernetes
Cluster Timeouts Args
- cluster
Template StringId - required string → The UUID of the Kubernetes cluster template. It can be obtained using the cluster_template data source.
- floating
Ip BooleanEnabled - required boolean → Floating ip is enabled.
- network
Id String - required string → UUID of the cluster's network.
- subnet
Id String - required string → UUID of the cluster's subnet.
- api
Lb StringFip - optional string → API LoadBalancer fip. IP address field.
- api
Lb StringVip - optional string → API LoadBalancer vip. IP address field. The field is read-only, the value set in this field will be ignored. The ability to set this field will be removed in future versions of the provider.
- availability
Zone String - optional string → Availability zone of the cluster, set this argument only for cluster with type
standard
. - availability
Zones List<String> - optional set of string → Availability zones of the regional cluster, set this argument only for cluster with type
regional
. If you do not set this argument, the availability zones will be selected automatically.New since v0.8.3. - cluster
Type String - optional string → Type of the kubernetes cluster, may be
standard
orregional
. Default type isstandard
.New since v0.8.3. - dns
Domain String - optional string → Custom DNS cluster domain. Changing this creates a new cluster.
- ingress
Floating StringIp - optional deprecated string → Floating IP created for ingress service. Deprecated This argument is deprecated as Ingress controller is not currently installed by default.
- insecure
Registries List<String> - optional string → Addresses of registries from which you can download images without checking certificates. Changing this creates a new cluster.
- keypair String
- optional deprecated string → The name of the Compute service SSH keypair. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- kubernetes
Cluster StringId - string → ID of the resource.
- labels Map<String>
- optional map of string → The list of optional key value pairs representing additional properties of the cluster. Note: Updating this attribute will not immediately apply the changes; these options will be used when recreating or deleting cluster nodes, for example, during an upgrade operation.
- loadbalancer
Subnet StringId - optional string → The UUID of the load balancer's subnet. Changing this creates new cluster.
- master
Count Number - optional number → The number of master nodes for the cluster. Changing this creates a new cluster.
- master
Flavor String - optional string → The UUID of a flavor for the master nodes. If master_flavor is not present, value from cluster_template will be used.
- name String
- required string → The name of the cluster. Changing this creates a new cluster. Should match the pattern
^[a-zA-Z][a-zA-Z0-9_.-]*$
. - pods
Network StringCidr - optional string → Network cidr of k8s virtual network
- region String
- optional string → Region to use for the cluster. Default is a region configured for provider.
- registry
Auth StringPassword - optional string → Docker registry access password.
- status String
- optional string → Current state of a cluster. Changing this to
RUNNING
orSHUTOFF
will turn cluster on/off. - sync
Security BooleanPolicy - optional boolean → Enables syncing of security policies of cluster. Default value is false.New since v0.7.0.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesCluster resource produces the following output properties:
- All
Labels Dictionary<string, string> - map of string → The read-only map of all cluster labels.New since v0.5.1.
- Api
Address string - string → COE API address.
- Created
At string - string → The time at which cluster was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- K8s
Config string - string → Contents of the kubeconfig file. Use it to authenticate to Kubernetes cluster.New since v0.8.1.
- Master
Addresses List<string> - string → IP addresses of the master node of the cluster.
- Project
Id string - string → The project of the cluster.
- Stack
Id string - string → UUID of the Orchestration service stack.
- Updated
At string - string → The time at which cluster was created.
- User
Id string - string → The user of the cluster.
- All
Labels map[string]string - map of string → The read-only map of all cluster labels.New since v0.5.1.
- Api
Address string - string → COE API address.
- Created
At string - string → The time at which cluster was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- K8s
Config string - string → Contents of the kubeconfig file. Use it to authenticate to Kubernetes cluster.New since v0.8.1.
- Master
Addresses []string - string → IP addresses of the master node of the cluster.
- Project
Id string - string → The project of the cluster.
- Stack
Id string - string → UUID of the Orchestration service stack.
- Updated
At string - string → The time at which cluster was created.
- User
Id string - string → The user of the cluster.
- all
Labels Map<String,String> - map of string → The read-only map of all cluster labels.New since v0.5.1.
- api
Address String - string → COE API address.
- created
At String - string → The time at which cluster was created.
- id String
- The provider-assigned unique ID for this managed resource.
- k8s
Config String - string → Contents of the kubeconfig file. Use it to authenticate to Kubernetes cluster.New since v0.8.1.
- master
Addresses List<String> - string → IP addresses of the master node of the cluster.
- project
Id String - string → The project of the cluster.
- stack
Id String - string → UUID of the Orchestration service stack.
- updated
At String - string → The time at which cluster was created.
- user
Id String - string → The user of the cluster.
- all
Labels {[key: string]: string} - map of string → The read-only map of all cluster labels.New since v0.5.1.
- api
Address string - string → COE API address.
- created
At string - string → The time at which cluster was created.
- id string
- The provider-assigned unique ID for this managed resource.
- k8s
Config string - string → Contents of the kubeconfig file. Use it to authenticate to Kubernetes cluster.New since v0.8.1.
- master
Addresses string[] - string → IP addresses of the master node of the cluster.
- project
Id string - string → The project of the cluster.
- stack
Id string - string → UUID of the Orchestration service stack.
- updated
At string - string → The time at which cluster was created.
- user
Id string - string → The user of the cluster.
- all_
labels Mapping[str, str] - map of string → The read-only map of all cluster labels.New since v0.5.1.
- api_
address str - string → COE API address.
- created_
at str - string → The time at which cluster was created.
- id str
- The provider-assigned unique ID for this managed resource.
- k8s_
config str - string → Contents of the kubeconfig file. Use it to authenticate to Kubernetes cluster.New since v0.8.1.
- master_
addresses Sequence[str] - string → IP addresses of the master node of the cluster.
- project_
id str - string → The project of the cluster.
- stack_
id str - string → UUID of the Orchestration service stack.
- updated_
at str - string → The time at which cluster was created.
- user_
id str - string → The user of the cluster.
- all
Labels Map<String> - map of string → The read-only map of all cluster labels.New since v0.5.1.
- api
Address String - string → COE API address.
- created
At String - string → The time at which cluster was created.
- id String
- The provider-assigned unique ID for this managed resource.
- k8s
Config String - string → Contents of the kubeconfig file. Use it to authenticate to Kubernetes cluster.New since v0.8.1.
- master
Addresses List<String> - string → IP addresses of the master node of the cluster.
- project
Id String - string → The project of the cluster.
- stack
Id String - string → UUID of the Orchestration service stack.
- updated
At String - string → The time at which cluster was created.
- user
Id String - string → The user of the cluster.
Look up Existing KubernetesCluster Resource
Get an existing KubernetesCluster 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?: KubernetesClusterState, opts?: CustomResourceOptions): KubernetesCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
all_labels: Optional[Mapping[str, str]] = None,
api_address: Optional[str] = None,
api_lb_fip: Optional[str] = None,
api_lb_vip: Optional[str] = None,
availability_zone: Optional[str] = None,
availability_zones: Optional[Sequence[str]] = None,
cluster_template_id: Optional[str] = None,
cluster_type: Optional[str] = None,
created_at: Optional[str] = None,
dns_domain: Optional[str] = None,
floating_ip_enabled: Optional[bool] = None,
ingress_floating_ip: Optional[str] = None,
insecure_registries: Optional[Sequence[str]] = None,
k8s_config: Optional[str] = None,
keypair: Optional[str] = None,
kubernetes_cluster_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
loadbalancer_subnet_id: Optional[str] = None,
master_addresses: Optional[Sequence[str]] = None,
master_count: Optional[float] = None,
master_flavor: Optional[str] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
pods_network_cidr: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
registry_auth_password: Optional[str] = None,
stack_id: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
sync_security_policy: Optional[bool] = None,
timeouts: Optional[KubernetesClusterTimeoutsArgs] = None,
updated_at: Optional[str] = None,
user_id: Optional[str] = None) -> KubernetesCluster
func GetKubernetesCluster(ctx *Context, name string, id IDInput, state *KubernetesClusterState, opts ...ResourceOption) (*KubernetesCluster, error)
public static KubernetesCluster Get(string name, Input<string> id, KubernetesClusterState? state, CustomResourceOptions? opts = null)
public static KubernetesCluster get(String name, Output<String> id, KubernetesClusterState state, CustomResourceOptions options)
resources: _: type: vkcs:KubernetesCluster 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.
- All
Labels Dictionary<string, string> - map of string → The read-only map of all cluster labels.New since v0.5.1.
- Api
Address string - string → COE API address.
- Api
Lb stringFip - optional string → API LoadBalancer fip. IP address field.
- Api
Lb stringVip - optional string → API LoadBalancer vip. IP address field. The field is read-only, the value set in this field will be ignored. The ability to set this field will be removed in future versions of the provider.
- Availability
Zone string - optional string → Availability zone of the cluster, set this argument only for cluster with type
standard
. - Availability
Zones List<string> - optional set of string → Availability zones of the regional cluster, set this argument only for cluster with type
regional
. If you do not set this argument, the availability zones will be selected automatically.New since v0.8.3. - Cluster
Template stringId - required string → The UUID of the Kubernetes cluster template. It can be obtained using the cluster_template data source.
- Cluster
Type string - optional string → Type of the kubernetes cluster, may be
standard
orregional
. Default type isstandard
.New since v0.8.3. - Created
At string - string → The time at which cluster was created.
- Dns
Domain string - optional string → Custom DNS cluster domain. Changing this creates a new cluster.
- Floating
Ip boolEnabled - required boolean → Floating ip is enabled.
- Ingress
Floating stringIp - optional deprecated string → Floating IP created for ingress service. Deprecated This argument is deprecated as Ingress controller is not currently installed by default.
- Insecure
Registries List<string> - optional string → Addresses of registries from which you can download images without checking certificates. Changing this creates a new cluster.
- K8s
Config string - string → Contents of the kubeconfig file. Use it to authenticate to Kubernetes cluster.New since v0.8.1.
- Keypair string
- optional deprecated string → The name of the Compute service SSH keypair. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- Kubernetes
Cluster stringId - string → ID of the resource.
- Labels Dictionary<string, string>
- optional map of string → The list of optional key value pairs representing additional properties of the cluster. Note: Updating this attribute will not immediately apply the changes; these options will be used when recreating or deleting cluster nodes, for example, during an upgrade operation.
- Loadbalancer
Subnet stringId - optional string → The UUID of the load balancer's subnet. Changing this creates new cluster.
- Master
Addresses List<string> - string → IP addresses of the master node of the cluster.
- Master
Count double - optional number → The number of master nodes for the cluster. Changing this creates a new cluster.
- Master
Flavor string - optional string → The UUID of a flavor for the master nodes. If master_flavor is not present, value from cluster_template will be used.
- Name string
- required string → The name of the cluster. Changing this creates a new cluster. Should match the pattern
^[a-zA-Z][a-zA-Z0-9_.-]*$
. - Network
Id string - required string → UUID of the cluster's network.
- Pods
Network stringCidr - optional string → Network cidr of k8s virtual network
- Project
Id string - string → The project of the cluster.
- Region string
- optional string → Region to use for the cluster. Default is a region configured for provider.
- Registry
Auth stringPassword - optional string → Docker registry access password.
- Stack
Id string - string → UUID of the Orchestration service stack.
- Status string
- optional string → Current state of a cluster. Changing this to
RUNNING
orSHUTOFF
will turn cluster on/off. - Subnet
Id string - required string → UUID of the cluster's subnet.
- Sync
Security boolPolicy - optional boolean → Enables syncing of security policies of cluster. Default value is false.New since v0.7.0.
- Timeouts
Kubernetes
Cluster Timeouts - Updated
At string - string → The time at which cluster was created.
- User
Id string - string → The user of the cluster.
- All
Labels map[string]string - map of string → The read-only map of all cluster labels.New since v0.5.1.
- Api
Address string - string → COE API address.
- Api
Lb stringFip - optional string → API LoadBalancer fip. IP address field.
- Api
Lb stringVip - optional string → API LoadBalancer vip. IP address field. The field is read-only, the value set in this field will be ignored. The ability to set this field will be removed in future versions of the provider.
- Availability
Zone string - optional string → Availability zone of the cluster, set this argument only for cluster with type
standard
. - Availability
Zones []string - optional set of string → Availability zones of the regional cluster, set this argument only for cluster with type
regional
. If you do not set this argument, the availability zones will be selected automatically.New since v0.8.3. - Cluster
Template stringId - required string → The UUID of the Kubernetes cluster template. It can be obtained using the cluster_template data source.
- Cluster
Type string - optional string → Type of the kubernetes cluster, may be
standard
orregional
. Default type isstandard
.New since v0.8.3. - Created
At string - string → The time at which cluster was created.
- Dns
Domain string - optional string → Custom DNS cluster domain. Changing this creates a new cluster.
- Floating
Ip boolEnabled - required boolean → Floating ip is enabled.
- Ingress
Floating stringIp - optional deprecated string → Floating IP created for ingress service. Deprecated This argument is deprecated as Ingress controller is not currently installed by default.
- Insecure
Registries []string - optional string → Addresses of registries from which you can download images without checking certificates. Changing this creates a new cluster.
- K8s
Config string - string → Contents of the kubeconfig file. Use it to authenticate to Kubernetes cluster.New since v0.8.1.
- Keypair string
- optional deprecated string → The name of the Compute service SSH keypair. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- Kubernetes
Cluster stringId - string → ID of the resource.
- Labels map[string]string
- optional map of string → The list of optional key value pairs representing additional properties of the cluster. Note: Updating this attribute will not immediately apply the changes; these options will be used when recreating or deleting cluster nodes, for example, during an upgrade operation.
- Loadbalancer
Subnet stringId - optional string → The UUID of the load balancer's subnet. Changing this creates new cluster.
- Master
Addresses []string - string → IP addresses of the master node of the cluster.
- Master
Count float64 - optional number → The number of master nodes for the cluster. Changing this creates a new cluster.
- Master
Flavor string - optional string → The UUID of a flavor for the master nodes. If master_flavor is not present, value from cluster_template will be used.
- Name string
- required string → The name of the cluster. Changing this creates a new cluster. Should match the pattern
^[a-zA-Z][a-zA-Z0-9_.-]*$
. - Network
Id string - required string → UUID of the cluster's network.
- Pods
Network stringCidr - optional string → Network cidr of k8s virtual network
- Project
Id string - string → The project of the cluster.
- Region string
- optional string → Region to use for the cluster. Default is a region configured for provider.
- Registry
Auth stringPassword - optional string → Docker registry access password.
- Stack
Id string - string → UUID of the Orchestration service stack.
- Status string
- optional string → Current state of a cluster. Changing this to
RUNNING
orSHUTOFF
will turn cluster on/off. - Subnet
Id string - required string → UUID of the cluster's subnet.
- Sync
Security boolPolicy - optional boolean → Enables syncing of security policies of cluster. Default value is false.New since v0.7.0.
- Timeouts
Kubernetes
Cluster Timeouts Args - Updated
At string - string → The time at which cluster was created.
- User
Id string - string → The user of the cluster.
- all
Labels Map<String,String> - map of string → The read-only map of all cluster labels.New since v0.5.1.
- api
Address String - string → COE API address.
- api
Lb StringFip - optional string → API LoadBalancer fip. IP address field.
- api
Lb StringVip - optional string → API LoadBalancer vip. IP address field. The field is read-only, the value set in this field will be ignored. The ability to set this field will be removed in future versions of the provider.
- availability
Zone String - optional string → Availability zone of the cluster, set this argument only for cluster with type
standard
. - availability
Zones List<String> - optional set of string → Availability zones of the regional cluster, set this argument only for cluster with type
regional
. If you do not set this argument, the availability zones will be selected automatically.New since v0.8.3. - cluster
Template StringId - required string → The UUID of the Kubernetes cluster template. It can be obtained using the cluster_template data source.
- cluster
Type String - optional string → Type of the kubernetes cluster, may be
standard
orregional
. Default type isstandard
.New since v0.8.3. - created
At String - string → The time at which cluster was created.
- dns
Domain String - optional string → Custom DNS cluster domain. Changing this creates a new cluster.
- floating
Ip BooleanEnabled - required boolean → Floating ip is enabled.
- ingress
Floating StringIp - optional deprecated string → Floating IP created for ingress service. Deprecated This argument is deprecated as Ingress controller is not currently installed by default.
- insecure
Registries List<String> - optional string → Addresses of registries from which you can download images without checking certificates. Changing this creates a new cluster.
- k8s
Config String - string → Contents of the kubeconfig file. Use it to authenticate to Kubernetes cluster.New since v0.8.1.
- keypair String
- optional deprecated string → The name of the Compute service SSH keypair. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- kubernetes
Cluster StringId - string → ID of the resource.
- labels Map<String,String>
- optional map of string → The list of optional key value pairs representing additional properties of the cluster. Note: Updating this attribute will not immediately apply the changes; these options will be used when recreating or deleting cluster nodes, for example, during an upgrade operation.
- loadbalancer
Subnet StringId - optional string → The UUID of the load balancer's subnet. Changing this creates new cluster.
- master
Addresses List<String> - string → IP addresses of the master node of the cluster.
- master
Count Double - optional number → The number of master nodes for the cluster. Changing this creates a new cluster.
- master
Flavor String - optional string → The UUID of a flavor for the master nodes. If master_flavor is not present, value from cluster_template will be used.
- name String
- required string → The name of the cluster. Changing this creates a new cluster. Should match the pattern
^[a-zA-Z][a-zA-Z0-9_.-]*$
. - network
Id String - required string → UUID of the cluster's network.
- pods
Network StringCidr - optional string → Network cidr of k8s virtual network
- project
Id String - string → The project of the cluster.
- region String
- optional string → Region to use for the cluster. Default is a region configured for provider.
- registry
Auth StringPassword - optional string → Docker registry access password.
- stack
Id String - string → UUID of the Orchestration service stack.
- status String
- optional string → Current state of a cluster. Changing this to
RUNNING
orSHUTOFF
will turn cluster on/off. - subnet
Id String - required string → UUID of the cluster's subnet.
- sync
Security BooleanPolicy - optional boolean → Enables syncing of security policies of cluster. Default value is false.New since v0.7.0.
- timeouts
Kubernetes
Cluster Timeouts - updated
At String - string → The time at which cluster was created.
- user
Id String - string → The user of the cluster.
- all
Labels {[key: string]: string} - map of string → The read-only map of all cluster labels.New since v0.5.1.
- api
Address string - string → COE API address.
- api
Lb stringFip - optional string → API LoadBalancer fip. IP address field.
- api
Lb stringVip - optional string → API LoadBalancer vip. IP address field. The field is read-only, the value set in this field will be ignored. The ability to set this field will be removed in future versions of the provider.
- availability
Zone string - optional string → Availability zone of the cluster, set this argument only for cluster with type
standard
. - availability
Zones string[] - optional set of string → Availability zones of the regional cluster, set this argument only for cluster with type
regional
. If you do not set this argument, the availability zones will be selected automatically.New since v0.8.3. - cluster
Template stringId - required string → The UUID of the Kubernetes cluster template. It can be obtained using the cluster_template data source.
- cluster
Type string - optional string → Type of the kubernetes cluster, may be
standard
orregional
. Default type isstandard
.New since v0.8.3. - created
At string - string → The time at which cluster was created.
- dns
Domain string - optional string → Custom DNS cluster domain. Changing this creates a new cluster.
- floating
Ip booleanEnabled - required boolean → Floating ip is enabled.
- ingress
Floating stringIp - optional deprecated string → Floating IP created for ingress service. Deprecated This argument is deprecated as Ingress controller is not currently installed by default.
- insecure
Registries string[] - optional string → Addresses of registries from which you can download images without checking certificates. Changing this creates a new cluster.
- k8s
Config string - string → Contents of the kubeconfig file. Use it to authenticate to Kubernetes cluster.New since v0.8.1.
- keypair string
- optional deprecated string → The name of the Compute service SSH keypair. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- kubernetes
Cluster stringId - string → ID of the resource.
- labels {[key: string]: string}
- optional map of string → The list of optional key value pairs representing additional properties of the cluster. Note: Updating this attribute will not immediately apply the changes; these options will be used when recreating or deleting cluster nodes, for example, during an upgrade operation.
- loadbalancer
Subnet stringId - optional string → The UUID of the load balancer's subnet. Changing this creates new cluster.
- master
Addresses string[] - string → IP addresses of the master node of the cluster.
- master
Count number - optional number → The number of master nodes for the cluster. Changing this creates a new cluster.
- master
Flavor string - optional string → The UUID of a flavor for the master nodes. If master_flavor is not present, value from cluster_template will be used.
- name string
- required string → The name of the cluster. Changing this creates a new cluster. Should match the pattern
^[a-zA-Z][a-zA-Z0-9_.-]*$
. - network
Id string - required string → UUID of the cluster's network.
- pods
Network stringCidr - optional string → Network cidr of k8s virtual network
- project
Id string - string → The project of the cluster.
- region string
- optional string → Region to use for the cluster. Default is a region configured for provider.
- registry
Auth stringPassword - optional string → Docker registry access password.
- stack
Id string - string → UUID of the Orchestration service stack.
- status string
- optional string → Current state of a cluster. Changing this to
RUNNING
orSHUTOFF
will turn cluster on/off. - subnet
Id string - required string → UUID of the cluster's subnet.
- sync
Security booleanPolicy - optional boolean → Enables syncing of security policies of cluster. Default value is false.New since v0.7.0.
- timeouts
Kubernetes
Cluster Timeouts - updated
At string - string → The time at which cluster was created.
- user
Id string - string → The user of the cluster.
- all_
labels Mapping[str, str] - map of string → The read-only map of all cluster labels.New since v0.5.1.
- api_
address str - string → COE API address.
- api_
lb_ strfip - optional string → API LoadBalancer fip. IP address field.
- api_
lb_ strvip - optional string → API LoadBalancer vip. IP address field. The field is read-only, the value set in this field will be ignored. The ability to set this field will be removed in future versions of the provider.
- availability_
zone str - optional string → Availability zone of the cluster, set this argument only for cluster with type
standard
. - availability_
zones Sequence[str] - optional set of string → Availability zones of the regional cluster, set this argument only for cluster with type
regional
. If you do not set this argument, the availability zones will be selected automatically.New since v0.8.3. - cluster_
template_ strid - required string → The UUID of the Kubernetes cluster template. It can be obtained using the cluster_template data source.
- cluster_
type str - optional string → Type of the kubernetes cluster, may be
standard
orregional
. Default type isstandard
.New since v0.8.3. - created_
at str - string → The time at which cluster was created.
- dns_
domain str - optional string → Custom DNS cluster domain. Changing this creates a new cluster.
- floating_
ip_ boolenabled - required boolean → Floating ip is enabled.
- ingress_
floating_ strip - optional deprecated string → Floating IP created for ingress service. Deprecated This argument is deprecated as Ingress controller is not currently installed by default.
- insecure_
registries Sequence[str] - optional string → Addresses of registries from which you can download images without checking certificates. Changing this creates a new cluster.
- k8s_
config str - string → Contents of the kubeconfig file. Use it to authenticate to Kubernetes cluster.New since v0.8.1.
- keypair str
- optional deprecated string → The name of the Compute service SSH keypair. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- kubernetes_
cluster_ strid - string → ID of the resource.
- labels Mapping[str, str]
- optional map of string → The list of optional key value pairs representing additional properties of the cluster. Note: Updating this attribute will not immediately apply the changes; these options will be used when recreating or deleting cluster nodes, for example, during an upgrade operation.
- loadbalancer_
subnet_ strid - optional string → The UUID of the load balancer's subnet. Changing this creates new cluster.
- master_
addresses Sequence[str] - string → IP addresses of the master node of the cluster.
- master_
count float - optional number → The number of master nodes for the cluster. Changing this creates a new cluster.
- master_
flavor str - optional string → The UUID of a flavor for the master nodes. If master_flavor is not present, value from cluster_template will be used.
- name str
- required string → The name of the cluster. Changing this creates a new cluster. Should match the pattern
^[a-zA-Z][a-zA-Z0-9_.-]*$
. - network_
id str - required string → UUID of the cluster's network.
- pods_
network_ strcidr - optional string → Network cidr of k8s virtual network
- project_
id str - string → The project of the cluster.
- region str
- optional string → Region to use for the cluster. Default is a region configured for provider.
- registry_
auth_ strpassword - optional string → Docker registry access password.
- stack_
id str - string → UUID of the Orchestration service stack.
- status str
- optional string → Current state of a cluster. Changing this to
RUNNING
orSHUTOFF
will turn cluster on/off. - subnet_
id str - required string → UUID of the cluster's subnet.
- sync_
security_ boolpolicy - optional boolean → Enables syncing of security policies of cluster. Default value is false.New since v0.7.0.
- timeouts
Kubernetes
Cluster Timeouts Args - updated_
at str - string → The time at which cluster was created.
- user_
id str - string → The user of the cluster.
- all
Labels Map<String> - map of string → The read-only map of all cluster labels.New since v0.5.1.
- api
Address String - string → COE API address.
- api
Lb StringFip - optional string → API LoadBalancer fip. IP address field.
- api
Lb StringVip - optional string → API LoadBalancer vip. IP address field. The field is read-only, the value set in this field will be ignored. The ability to set this field will be removed in future versions of the provider.
- availability
Zone String - optional string → Availability zone of the cluster, set this argument only for cluster with type
standard
. - availability
Zones List<String> - optional set of string → Availability zones of the regional cluster, set this argument only for cluster with type
regional
. If you do not set this argument, the availability zones will be selected automatically.New since v0.8.3. - cluster
Template StringId - required string → The UUID of the Kubernetes cluster template. It can be obtained using the cluster_template data source.
- cluster
Type String - optional string → Type of the kubernetes cluster, may be
standard
orregional
. Default type isstandard
.New since v0.8.3. - created
At String - string → The time at which cluster was created.
- dns
Domain String - optional string → Custom DNS cluster domain. Changing this creates a new cluster.
- floating
Ip BooleanEnabled - required boolean → Floating ip is enabled.
- ingress
Floating StringIp - optional deprecated string → Floating IP created for ingress service. Deprecated This argument is deprecated as Ingress controller is not currently installed by default.
- insecure
Registries List<String> - optional string → Addresses of registries from which you can download images without checking certificates. Changing this creates a new cluster.
- k8s
Config String - string → Contents of the kubeconfig file. Use it to authenticate to Kubernetes cluster.New since v0.8.1.
- keypair String
- optional deprecated string → The name of the Compute service SSH keypair. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- kubernetes
Cluster StringId - string → ID of the resource.
- labels Map<String>
- optional map of string → The list of optional key value pairs representing additional properties of the cluster. Note: Updating this attribute will not immediately apply the changes; these options will be used when recreating or deleting cluster nodes, for example, during an upgrade operation.
- loadbalancer
Subnet StringId - optional string → The UUID of the load balancer's subnet. Changing this creates new cluster.
- master
Addresses List<String> - string → IP addresses of the master node of the cluster.
- master
Count Number - optional number → The number of master nodes for the cluster. Changing this creates a new cluster.
- master
Flavor String - optional string → The UUID of a flavor for the master nodes. If master_flavor is not present, value from cluster_template will be used.
- name String
- required string → The name of the cluster. Changing this creates a new cluster. Should match the pattern
^[a-zA-Z][a-zA-Z0-9_.-]*$
. - network
Id String - required string → UUID of the cluster's network.
- pods
Network StringCidr - optional string → Network cidr of k8s virtual network
- project
Id String - string → The project of the cluster.
- region String
- optional string → Region to use for the cluster. Default is a region configured for provider.
- registry
Auth StringPassword - optional string → Docker registry access password.
- stack
Id String - string → UUID of the Orchestration service stack.
- status String
- optional string → Current state of a cluster. Changing this to
RUNNING
orSHUTOFF
will turn cluster on/off. - subnet
Id String - required string → UUID of the cluster's subnet.
- sync
Security BooleanPolicy - optional boolean → Enables syncing of security policies of cluster. Default value is false.New since v0.7.0.
- timeouts Property Map
- updated
At String - string → The time at which cluster was created.
- user
Id String - string → The user of the cluster.
Supporting Types
KubernetesClusterTimeouts, KubernetesClusterTimeoutsArgs
Import
Clusters can be imported using the id
, e.g.
$ pulumi import vkcs:index/kubernetesCluster:KubernetesCluster mycluster ce0f9463-dd25-474b-9fe8-94de63e5e42b
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.