vkcs.KubernetesNodeGroup
Explore with Pulumi AI
Provides a cluster node group resource. This can be used to create, modify and delete cluster’s node group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const defaultNg = new vkcs.KubernetesNodeGroup("defaultNg", {
clusterId: vkcs_kubernetes_cluster.k8s_cluster.id,
nodeCount: 1,
maxNodes: 5,
minNodes: 1,
labels: [
{
key: "env",
value: "test",
},
{
key: "disktype",
value: "ssd",
},
],
taints: [
{
key: "taintkey1",
value: "taintvalue1",
effect: "PreferNoSchedule",
},
{
key: "taintkey2",
value: "taintvalue2",
effect: "PreferNoSchedule",
},
],
});
import pulumi
import pulumi_vkcs as vkcs
default_ng = vkcs.KubernetesNodeGroup("defaultNg",
cluster_id=vkcs_kubernetes_cluster["k8s_cluster"]["id"],
node_count=1,
max_nodes=5,
min_nodes=1,
labels=[
{
"key": "env",
"value": "test",
},
{
"key": "disktype",
"value": "ssd",
},
],
taints=[
{
"key": "taintkey1",
"value": "taintvalue1",
"effect": "PreferNoSchedule",
},
{
"key": "taintkey2",
"value": "taintvalue2",
"effect": "PreferNoSchedule",
},
])
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.NewKubernetesNodeGroup(ctx, "defaultNg", &vkcs.KubernetesNodeGroupArgs{
ClusterId: pulumi.Any(vkcs_kubernetes_cluster.K8s_cluster.Id),
NodeCount: pulumi.Float64(1),
MaxNodes: pulumi.Float64(5),
MinNodes: pulumi.Float64(1),
Labels: vkcs.KubernetesNodeGroupLabelArray{
&vkcs.KubernetesNodeGroupLabelArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
&vkcs.KubernetesNodeGroupLabelArgs{
Key: pulumi.String("disktype"),
Value: pulumi.String("ssd"),
},
},
Taints: vkcs.KubernetesNodeGroupTaintArray{
&vkcs.KubernetesNodeGroupTaintArgs{
Key: pulumi.String("taintkey1"),
Value: pulumi.String("taintvalue1"),
Effect: pulumi.String("PreferNoSchedule"),
},
&vkcs.KubernetesNodeGroupTaintArgs{
Key: pulumi.String("taintkey2"),
Value: pulumi.String("taintvalue2"),
Effect: pulumi.String("PreferNoSchedule"),
},
},
})
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 defaultNg = new Vkcs.KubernetesNodeGroup("defaultNg", new()
{
ClusterId = vkcs_kubernetes_cluster.K8s_cluster.Id,
NodeCount = 1,
MaxNodes = 5,
MinNodes = 1,
Labels = new[]
{
new Vkcs.Inputs.KubernetesNodeGroupLabelArgs
{
Key = "env",
Value = "test",
},
new Vkcs.Inputs.KubernetesNodeGroupLabelArgs
{
Key = "disktype",
Value = "ssd",
},
},
Taints = new[]
{
new Vkcs.Inputs.KubernetesNodeGroupTaintArgs
{
Key = "taintkey1",
Value = "taintvalue1",
Effect = "PreferNoSchedule",
},
new Vkcs.Inputs.KubernetesNodeGroupTaintArgs
{
Key = "taintkey2",
Value = "taintvalue2",
Effect = "PreferNoSchedule",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.KubernetesNodeGroup;
import com.pulumi.vkcs.KubernetesNodeGroupArgs;
import com.pulumi.vkcs.inputs.KubernetesNodeGroupLabelArgs;
import com.pulumi.vkcs.inputs.KubernetesNodeGroupTaintArgs;
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 defaultNg = new KubernetesNodeGroup("defaultNg", KubernetesNodeGroupArgs.builder()
.clusterId(vkcs_kubernetes_cluster.k8s_cluster().id())
.nodeCount(1)
.maxNodes(5)
.minNodes(1)
.labels(
KubernetesNodeGroupLabelArgs.builder()
.key("env")
.value("test")
.build(),
KubernetesNodeGroupLabelArgs.builder()
.key("disktype")
.value("ssd")
.build())
.taints(
KubernetesNodeGroupTaintArgs.builder()
.key("taintkey1")
.value("taintvalue1")
.effect("PreferNoSchedule")
.build(),
KubernetesNodeGroupTaintArgs.builder()
.key("taintkey2")
.value("taintvalue2")
.effect("PreferNoSchedule")
.build())
.build());
}
}
resources:
defaultNg:
type: vkcs:KubernetesNodeGroup
properties:
clusterId: ${vkcs_kubernetes_cluster.k8s_cluster.id}
nodeCount: 1
maxNodes: 5
minNodes: 1
labels:
- key: env
value: test
- key: disktype
value: ssd
taints:
- key: taintkey1
value: taintvalue1
effect: PreferNoSchedule
- key: taintkey2
value: taintvalue2
effect: PreferNoSchedule
Create KubernetesNodeGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KubernetesNodeGroup(name: string, args: KubernetesNodeGroupArgs, opts?: CustomResourceOptions);
@overload
def KubernetesNodeGroup(resource_name: str,
args: KubernetesNodeGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KubernetesNodeGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
node_count: Optional[float] = None,
max_node_unavailable: Optional[float] = None,
flavor_id: Optional[str] = None,
kubernetes_node_group_id: Optional[str] = None,
labels: Optional[Sequence[KubernetesNodeGroupLabelArgs]] = None,
autoscaling_enabled: Optional[bool] = None,
max_nodes: Optional[float] = None,
min_nodes: Optional[float] = None,
name: Optional[str] = None,
availability_zones: Optional[Sequence[str]] = None,
taints: Optional[Sequence[KubernetesNodeGroupTaintArgs]] = None,
timeouts: Optional[KubernetesNodeGroupTimeoutsArgs] = None,
volume_size: Optional[float] = None,
volume_type: Optional[str] = None)
func NewKubernetesNodeGroup(ctx *Context, name string, args KubernetesNodeGroupArgs, opts ...ResourceOption) (*KubernetesNodeGroup, error)
public KubernetesNodeGroup(string name, KubernetesNodeGroupArgs args, CustomResourceOptions? opts = null)
public KubernetesNodeGroup(String name, KubernetesNodeGroupArgs args)
public KubernetesNodeGroup(String name, KubernetesNodeGroupArgs args, CustomResourceOptions options)
type: vkcs:KubernetesNodeGroup
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 KubernetesNodeGroupArgs
- 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 KubernetesNodeGroupArgs
- 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 KubernetesNodeGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubernetesNodeGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubernetesNodeGroupArgs
- 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 kubernetesNodeGroupResource = new Vkcs.KubernetesNodeGroup("kubernetesNodeGroupResource", new()
{
ClusterId = "string",
NodeCount = 0,
MaxNodeUnavailable = 0,
FlavorId = "string",
KubernetesNodeGroupId = "string",
Labels = new[]
{
new Vkcs.Inputs.KubernetesNodeGroupLabelArgs
{
Key = "string",
Value = "string",
},
},
AutoscalingEnabled = false,
MaxNodes = 0,
MinNodes = 0,
Name = "string",
AvailabilityZones = new[]
{
"string",
},
Taints = new[]
{
new Vkcs.Inputs.KubernetesNodeGroupTaintArgs
{
Effect = "string",
Key = "string",
Value = "string",
},
},
Timeouts = new Vkcs.Inputs.KubernetesNodeGroupTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
VolumeSize = 0,
VolumeType = "string",
});
example, err := vkcs.NewKubernetesNodeGroup(ctx, "kubernetesNodeGroupResource", &vkcs.KubernetesNodeGroupArgs{
ClusterId: pulumi.String("string"),
NodeCount: pulumi.Float64(0),
MaxNodeUnavailable: pulumi.Float64(0),
FlavorId: pulumi.String("string"),
KubernetesNodeGroupId: pulumi.String("string"),
Labels: vkcs.KubernetesNodeGroupLabelArray{
&vkcs.KubernetesNodeGroupLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
AutoscalingEnabled: pulumi.Bool(false),
MaxNodes: pulumi.Float64(0),
MinNodes: pulumi.Float64(0),
Name: pulumi.String("string"),
AvailabilityZones: pulumi.StringArray{
pulumi.String("string"),
},
Taints: vkcs.KubernetesNodeGroupTaintArray{
&vkcs.KubernetesNodeGroupTaintArgs{
Effect: pulumi.String("string"),
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Timeouts: &vkcs.KubernetesNodeGroupTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
VolumeSize: pulumi.Float64(0),
VolumeType: pulumi.String("string"),
})
var kubernetesNodeGroupResource = new KubernetesNodeGroup("kubernetesNodeGroupResource", KubernetesNodeGroupArgs.builder()
.clusterId("string")
.nodeCount(0)
.maxNodeUnavailable(0)
.flavorId("string")
.kubernetesNodeGroupId("string")
.labels(KubernetesNodeGroupLabelArgs.builder()
.key("string")
.value("string")
.build())
.autoscalingEnabled(false)
.maxNodes(0)
.minNodes(0)
.name("string")
.availabilityZones("string")
.taints(KubernetesNodeGroupTaintArgs.builder()
.effect("string")
.key("string")
.value("string")
.build())
.timeouts(KubernetesNodeGroupTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.volumeSize(0)
.volumeType("string")
.build());
kubernetes_node_group_resource = vkcs.KubernetesNodeGroup("kubernetesNodeGroupResource",
cluster_id="string",
node_count=0,
max_node_unavailable=0,
flavor_id="string",
kubernetes_node_group_id="string",
labels=[{
"key": "string",
"value": "string",
}],
autoscaling_enabled=False,
max_nodes=0,
min_nodes=0,
name="string",
availability_zones=["string"],
taints=[{
"effect": "string",
"key": "string",
"value": "string",
}],
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
volume_size=0,
volume_type="string")
const kubernetesNodeGroupResource = new vkcs.KubernetesNodeGroup("kubernetesNodeGroupResource", {
clusterId: "string",
nodeCount: 0,
maxNodeUnavailable: 0,
flavorId: "string",
kubernetesNodeGroupId: "string",
labels: [{
key: "string",
value: "string",
}],
autoscalingEnabled: false,
maxNodes: 0,
minNodes: 0,
name: "string",
availabilityZones: ["string"],
taints: [{
effect: "string",
key: "string",
value: "string",
}],
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
volumeSize: 0,
volumeType: "string",
});
type: vkcs:KubernetesNodeGroup
properties:
autoscalingEnabled: false
availabilityZones:
- string
clusterId: string
flavorId: string
kubernetesNodeGroupId: string
labels:
- key: string
value: string
maxNodeUnavailable: 0
maxNodes: 0
minNodes: 0
name: string
nodeCount: 0
taints:
- effect: string
key: string
value: string
timeouts:
create: string
delete: string
update: string
volumeSize: 0
volumeType: string
KubernetesNodeGroup 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 KubernetesNodeGroup resource accepts the following input properties:
- Cluster
Id string - required string → The UUID of the existing cluster.
- Node
Count double - required number → The node count for this node group. Should be greater than 0. If
autoscaling_enabled
parameter is set, this attribute will be ignored during update. - Autoscaling
Enabled bool - optional boolean → Determines whether the autoscaling is enabled.
- Availability
Zones List<string> - optional set of string → The list of availability zones of the node group. By default, a node group is created at cluster's zone.
- Flavor
Id string - optional string → The flavor UUID of this node group. Note: Starting with v0.5.1, changing this attribute does not force the resource to be recreated, which requires an in-place update and may not be provided in custom deployments. In this case, contact support for clarification.
- Kubernetes
Node stringGroup Id - string → ID of the resource.
- Labels
List<Kubernetes
Node Group Label> - optional → The list of objects representing representing additional properties of the node group. Each object should have attribute "key". Object may also have optional attribute "value".
- double
- optional number → The maximum number of nodes that can fail during an upgrade. The default value is 25 percent.
- Max
Nodes double - optional number → The maximum allowed nodes for this node group.
- Min
Nodes double - optional number → The minimum allowed nodes for this node group. Default to 0 if not set.
- Name string
- required string → The name of node group to create. Changing this will force to create a new node group.
- Taints
List<Kubernetes
Node Group Taint> - optional → The list of objects representing node group taints. Each object should have following attributes: key, value, effect.
- Timeouts
Kubernetes
Node Group Timeouts - Volume
Size double - optional number → The size in GB for volume to load nodes from. Changing this will force to create a new node group.
- Volume
Type string - optional string → The volume type to load nodes from. Changing this will force to create a new node group.
- Cluster
Id string - required string → The UUID of the existing cluster.
- Node
Count float64 - required number → The node count for this node group. Should be greater than 0. If
autoscaling_enabled
parameter is set, this attribute will be ignored during update. - Autoscaling
Enabled bool - optional boolean → Determines whether the autoscaling is enabled.
- Availability
Zones []string - optional set of string → The list of availability zones of the node group. By default, a node group is created at cluster's zone.
- Flavor
Id string - optional string → The flavor UUID of this node group. Note: Starting with v0.5.1, changing this attribute does not force the resource to be recreated, which requires an in-place update and may not be provided in custom deployments. In this case, contact support for clarification.
- Kubernetes
Node stringGroup Id - string → ID of the resource.
- Labels
[]Kubernetes
Node Group Label Args - optional → The list of objects representing representing additional properties of the node group. Each object should have attribute "key". Object may also have optional attribute "value".
- float64
- optional number → The maximum number of nodes that can fail during an upgrade. The default value is 25 percent.
- Max
Nodes float64 - optional number → The maximum allowed nodes for this node group.
- Min
Nodes float64 - optional number → The minimum allowed nodes for this node group. Default to 0 if not set.
- Name string
- required string → The name of node group to create. Changing this will force to create a new node group.
- Taints
[]Kubernetes
Node Group Taint Args - optional → The list of objects representing node group taints. Each object should have following attributes: key, value, effect.
- Timeouts
Kubernetes
Node Group Timeouts Args - Volume
Size float64 - optional number → The size in GB for volume to load nodes from. Changing this will force to create a new node group.
- Volume
Type string - optional string → The volume type to load nodes from. Changing this will force to create a new node group.
- cluster
Id String - required string → The UUID of the existing cluster.
- node
Count Double - required number → The node count for this node group. Should be greater than 0. If
autoscaling_enabled
parameter is set, this attribute will be ignored during update. - autoscaling
Enabled Boolean - optional boolean → Determines whether the autoscaling is enabled.
- availability
Zones List<String> - optional set of string → The list of availability zones of the node group. By default, a node group is created at cluster's zone.
- flavor
Id String - optional string → The flavor UUID of this node group. Note: Starting with v0.5.1, changing this attribute does not force the resource to be recreated, which requires an in-place update and may not be provided in custom deployments. In this case, contact support for clarification.
- kubernetes
Node StringGroup Id - string → ID of the resource.
- labels
List<Kubernetes
Node Group Label> - optional → The list of objects representing representing additional properties of the node group. Each object should have attribute "key". Object may also have optional attribute "value".
- Double
- optional number → The maximum number of nodes that can fail during an upgrade. The default value is 25 percent.
- max
Nodes Double - optional number → The maximum allowed nodes for this node group.
- min
Nodes Double - optional number → The minimum allowed nodes for this node group. Default to 0 if not set.
- name String
- required string → The name of node group to create. Changing this will force to create a new node group.
- taints
List<Kubernetes
Node Group Taint> - optional → The list of objects representing node group taints. Each object should have following attributes: key, value, effect.
- timeouts
Kubernetes
Node Group Timeouts - volume
Size Double - optional number → The size in GB for volume to load nodes from. Changing this will force to create a new node group.
- volume
Type String - optional string → The volume type to load nodes from. Changing this will force to create a new node group.
- cluster
Id string - required string → The UUID of the existing cluster.
- node
Count number - required number → The node count for this node group. Should be greater than 0. If
autoscaling_enabled
parameter is set, this attribute will be ignored during update. - autoscaling
Enabled boolean - optional boolean → Determines whether the autoscaling is enabled.
- availability
Zones string[] - optional set of string → The list of availability zones of the node group. By default, a node group is created at cluster's zone.
- flavor
Id string - optional string → The flavor UUID of this node group. Note: Starting with v0.5.1, changing this attribute does not force the resource to be recreated, which requires an in-place update and may not be provided in custom deployments. In this case, contact support for clarification.
- kubernetes
Node stringGroup Id - string → ID of the resource.
- labels
Kubernetes
Node Group Label[] - optional → The list of objects representing representing additional properties of the node group. Each object should have attribute "key". Object may also have optional attribute "value".
- number
- optional number → The maximum number of nodes that can fail during an upgrade. The default value is 25 percent.
- max
Nodes number - optional number → The maximum allowed nodes for this node group.
- min
Nodes number - optional number → The minimum allowed nodes for this node group. Default to 0 if not set.
- name string
- required string → The name of node group to create. Changing this will force to create a new node group.
- taints
Kubernetes
Node Group Taint[] - optional → The list of objects representing node group taints. Each object should have following attributes: key, value, effect.
- timeouts
Kubernetes
Node Group Timeouts - volume
Size number - optional number → The size in GB for volume to load nodes from. Changing this will force to create a new node group.
- volume
Type string - optional string → The volume type to load nodes from. Changing this will force to create a new node group.
- cluster_
id str - required string → The UUID of the existing cluster.
- node_
count float - required number → The node count for this node group. Should be greater than 0. If
autoscaling_enabled
parameter is set, this attribute will be ignored during update. - autoscaling_
enabled bool - optional boolean → Determines whether the autoscaling is enabled.
- availability_
zones Sequence[str] - optional set of string → The list of availability zones of the node group. By default, a node group is created at cluster's zone.
- flavor_
id str - optional string → The flavor UUID of this node group. Note: Starting with v0.5.1, changing this attribute does not force the resource to be recreated, which requires an in-place update and may not be provided in custom deployments. In this case, contact support for clarification.
- kubernetes_
node_ strgroup_ id - string → ID of the resource.
- labels
Sequence[Kubernetes
Node Group Label Args] - optional → The list of objects representing representing additional properties of the node group. Each object should have attribute "key". Object may also have optional attribute "value".
- float
- optional number → The maximum number of nodes that can fail during an upgrade. The default value is 25 percent.
- max_
nodes float - optional number → The maximum allowed nodes for this node group.
- min_
nodes float - optional number → The minimum allowed nodes for this node group. Default to 0 if not set.
- name str
- required string → The name of node group to create. Changing this will force to create a new node group.
- taints
Sequence[Kubernetes
Node Group Taint Args] - optional → The list of objects representing node group taints. Each object should have following attributes: key, value, effect.
- timeouts
Kubernetes
Node Group Timeouts Args - volume_
size float - optional number → The size in GB for volume to load nodes from. Changing this will force to create a new node group.
- volume_
type str - optional string → The volume type to load nodes from. Changing this will force to create a new node group.
- cluster
Id String - required string → The UUID of the existing cluster.
- node
Count Number - required number → The node count for this node group. Should be greater than 0. If
autoscaling_enabled
parameter is set, this attribute will be ignored during update. - autoscaling
Enabled Boolean - optional boolean → Determines whether the autoscaling is enabled.
- availability
Zones List<String> - optional set of string → The list of availability zones of the node group. By default, a node group is created at cluster's zone.
- flavor
Id String - optional string → The flavor UUID of this node group. Note: Starting with v0.5.1, changing this attribute does not force the resource to be recreated, which requires an in-place update and may not be provided in custom deployments. In this case, contact support for clarification.
- kubernetes
Node StringGroup Id - string → ID of the resource.
- labels List<Property Map>
- optional → The list of objects representing representing additional properties of the node group. Each object should have attribute "key". Object may also have optional attribute "value".
- Number
- optional number → The maximum number of nodes that can fail during an upgrade. The default value is 25 percent.
- max
Nodes Number - optional number → The maximum allowed nodes for this node group.
- min
Nodes Number - optional number → The minimum allowed nodes for this node group. Default to 0 if not set.
- name String
- required string → The name of node group to create. Changing this will force to create a new node group.
- taints List<Property Map>
- optional → The list of objects representing node group taints. Each object should have following attributes: key, value, effect.
- timeouts Property Map
- volume
Size Number - optional number → The size in GB for volume to load nodes from. Changing this will force to create a new node group.
- volume
Type String - optional string → The volume type to load nodes from. Changing this will force to create a new node group.
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesNodeGroup resource produces the following output properties:
- Created
At string - string → The time at which node group was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- Updated
At string - string → The time at which node group was created.
- Uuid string
- string → The UUID of the cluster's node group.
- Created
At string - string → The time at which node group was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- Updated
At string - string → The time at which node group was created.
- Uuid string
- string → The UUID of the cluster's node group.
- created
At String - string → The time at which node group was created.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- updated
At String - string → The time at which node group was created.
- uuid String
- string → The UUID of the cluster's node group.
- created
At string - string → The time at which node group was created.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- updated
At string - string → The time at which node group was created.
- uuid string
- string → The UUID of the cluster's node group.
- created_
at str - string → The time at which node group was created.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- updated_
at str - string → The time at which node group was created.
- uuid str
- string → The UUID of the cluster's node group.
- created
At String - string → The time at which node group was created.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- updated
At String - string → The time at which node group was created.
- uuid String
- string → The UUID of the cluster's node group.
Look up Existing KubernetesNodeGroup Resource
Get an existing KubernetesNodeGroup 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?: KubernetesNodeGroupState, opts?: CustomResourceOptions): KubernetesNodeGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
autoscaling_enabled: Optional[bool] = None,
availability_zones: Optional[Sequence[str]] = None,
cluster_id: Optional[str] = None,
created_at: Optional[str] = None,
flavor_id: Optional[str] = None,
kubernetes_node_group_id: Optional[str] = None,
labels: Optional[Sequence[KubernetesNodeGroupLabelArgs]] = None,
max_node_unavailable: Optional[float] = None,
max_nodes: Optional[float] = None,
min_nodes: Optional[float] = None,
name: Optional[str] = None,
node_count: Optional[float] = None,
state: Optional[str] = None,
taints: Optional[Sequence[KubernetesNodeGroupTaintArgs]] = None,
timeouts: Optional[KubernetesNodeGroupTimeoutsArgs] = None,
updated_at: Optional[str] = None,
uuid: Optional[str] = None,
volume_size: Optional[float] = None,
volume_type: Optional[str] = None) -> KubernetesNodeGroup
func GetKubernetesNodeGroup(ctx *Context, name string, id IDInput, state *KubernetesNodeGroupState, opts ...ResourceOption) (*KubernetesNodeGroup, error)
public static KubernetesNodeGroup Get(string name, Input<string> id, KubernetesNodeGroupState? state, CustomResourceOptions? opts = null)
public static KubernetesNodeGroup get(String name, Output<String> id, KubernetesNodeGroupState state, CustomResourceOptions options)
resources: _: type: vkcs:KubernetesNodeGroup 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.
- Autoscaling
Enabled bool - optional boolean → Determines whether the autoscaling is enabled.
- Availability
Zones List<string> - optional set of string → The list of availability zones of the node group. By default, a node group is created at cluster's zone.
- Cluster
Id string - required string → The UUID of the existing cluster.
- Created
At string - string → The time at which node group was created.
- Flavor
Id string - optional string → The flavor UUID of this node group. Note: Starting with v0.5.1, changing this attribute does not force the resource to be recreated, which requires an in-place update and may not be provided in custom deployments. In this case, contact support for clarification.
- Kubernetes
Node stringGroup Id - string → ID of the resource.
- Labels
List<Kubernetes
Node Group Label> - optional → The list of objects representing representing additional properties of the node group. Each object should have attribute "key". Object may also have optional attribute "value".
- double
- optional number → The maximum number of nodes that can fail during an upgrade. The default value is 25 percent.
- Max
Nodes double - optional number → The maximum allowed nodes for this node group.
- Min
Nodes double - optional number → The minimum allowed nodes for this node group. Default to 0 if not set.
- Name string
- required string → The name of node group to create. Changing this will force to create a new node group.
- Node
Count double - required number → The node count for this node group. Should be greater than 0. If
autoscaling_enabled
parameter is set, this attribute will be ignored during update. - State string
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- Taints
List<Kubernetes
Node Group Taint> - optional → The list of objects representing node group taints. Each object should have following attributes: key, value, effect.
- Timeouts
Kubernetes
Node Group Timeouts - Updated
At string - string → The time at which node group was created.
- Uuid string
- string → The UUID of the cluster's node group.
- Volume
Size double - optional number → The size in GB for volume to load nodes from. Changing this will force to create a new node group.
- Volume
Type string - optional string → The volume type to load nodes from. Changing this will force to create a new node group.
- Autoscaling
Enabled bool - optional boolean → Determines whether the autoscaling is enabled.
- Availability
Zones []string - optional set of string → The list of availability zones of the node group. By default, a node group is created at cluster's zone.
- Cluster
Id string - required string → The UUID of the existing cluster.
- Created
At string - string → The time at which node group was created.
- Flavor
Id string - optional string → The flavor UUID of this node group. Note: Starting with v0.5.1, changing this attribute does not force the resource to be recreated, which requires an in-place update and may not be provided in custom deployments. In this case, contact support for clarification.
- Kubernetes
Node stringGroup Id - string → ID of the resource.
- Labels
[]Kubernetes
Node Group Label Args - optional → The list of objects representing representing additional properties of the node group. Each object should have attribute "key". Object may also have optional attribute "value".
- float64
- optional number → The maximum number of nodes that can fail during an upgrade. The default value is 25 percent.
- Max
Nodes float64 - optional number → The maximum allowed nodes for this node group.
- Min
Nodes float64 - optional number → The minimum allowed nodes for this node group. Default to 0 if not set.
- Name string
- required string → The name of node group to create. Changing this will force to create a new node group.
- Node
Count float64 - required number → The node count for this node group. Should be greater than 0. If
autoscaling_enabled
parameter is set, this attribute will be ignored during update. - State string
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- Taints
[]Kubernetes
Node Group Taint Args - optional → The list of objects representing node group taints. Each object should have following attributes: key, value, effect.
- Timeouts
Kubernetes
Node Group Timeouts Args - Updated
At string - string → The time at which node group was created.
- Uuid string
- string → The UUID of the cluster's node group.
- Volume
Size float64 - optional number → The size in GB for volume to load nodes from. Changing this will force to create a new node group.
- Volume
Type string - optional string → The volume type to load nodes from. Changing this will force to create a new node group.
- autoscaling
Enabled Boolean - optional boolean → Determines whether the autoscaling is enabled.
- availability
Zones List<String> - optional set of string → The list of availability zones of the node group. By default, a node group is created at cluster's zone.
- cluster
Id String - required string → The UUID of the existing cluster.
- created
At String - string → The time at which node group was created.
- flavor
Id String - optional string → The flavor UUID of this node group. Note: Starting with v0.5.1, changing this attribute does not force the resource to be recreated, which requires an in-place update and may not be provided in custom deployments. In this case, contact support for clarification.
- kubernetes
Node StringGroup Id - string → ID of the resource.
- labels
List<Kubernetes
Node Group Label> - optional → The list of objects representing representing additional properties of the node group. Each object should have attribute "key". Object may also have optional attribute "value".
- Double
- optional number → The maximum number of nodes that can fail during an upgrade. The default value is 25 percent.
- max
Nodes Double - optional number → The maximum allowed nodes for this node group.
- min
Nodes Double - optional number → The minimum allowed nodes for this node group. Default to 0 if not set.
- name String
- required string → The name of node group to create. Changing this will force to create a new node group.
- node
Count Double - required number → The node count for this node group. Should be greater than 0. If
autoscaling_enabled
parameter is set, this attribute will be ignored during update. - state String
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- taints
List<Kubernetes
Node Group Taint> - optional → The list of objects representing node group taints. Each object should have following attributes: key, value, effect.
- timeouts
Kubernetes
Node Group Timeouts - updated
At String - string → The time at which node group was created.
- uuid String
- string → The UUID of the cluster's node group.
- volume
Size Double - optional number → The size in GB for volume to load nodes from. Changing this will force to create a new node group.
- volume
Type String - optional string → The volume type to load nodes from. Changing this will force to create a new node group.
- autoscaling
Enabled boolean - optional boolean → Determines whether the autoscaling is enabled.
- availability
Zones string[] - optional set of string → The list of availability zones of the node group. By default, a node group is created at cluster's zone.
- cluster
Id string - required string → The UUID of the existing cluster.
- created
At string - string → The time at which node group was created.
- flavor
Id string - optional string → The flavor UUID of this node group. Note: Starting with v0.5.1, changing this attribute does not force the resource to be recreated, which requires an in-place update and may not be provided in custom deployments. In this case, contact support for clarification.
- kubernetes
Node stringGroup Id - string → ID of the resource.
- labels
Kubernetes
Node Group Label[] - optional → The list of objects representing representing additional properties of the node group. Each object should have attribute "key". Object may also have optional attribute "value".
- number
- optional number → The maximum number of nodes that can fail during an upgrade. The default value is 25 percent.
- max
Nodes number - optional number → The maximum allowed nodes for this node group.
- min
Nodes number - optional number → The minimum allowed nodes for this node group. Default to 0 if not set.
- name string
- required string → The name of node group to create. Changing this will force to create a new node group.
- node
Count number - required number → The node count for this node group. Should be greater than 0. If
autoscaling_enabled
parameter is set, this attribute will be ignored during update. - state string
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- taints
Kubernetes
Node Group Taint[] - optional → The list of objects representing node group taints. Each object should have following attributes: key, value, effect.
- timeouts
Kubernetes
Node Group Timeouts - updated
At string - string → The time at which node group was created.
- uuid string
- string → The UUID of the cluster's node group.
- volume
Size number - optional number → The size in GB for volume to load nodes from. Changing this will force to create a new node group.
- volume
Type string - optional string → The volume type to load nodes from. Changing this will force to create a new node group.
- autoscaling_
enabled bool - optional boolean → Determines whether the autoscaling is enabled.
- availability_
zones Sequence[str] - optional set of string → The list of availability zones of the node group. By default, a node group is created at cluster's zone.
- cluster_
id str - required string → The UUID of the existing cluster.
- created_
at str - string → The time at which node group was created.
- flavor_
id str - optional string → The flavor UUID of this node group. Note: Starting with v0.5.1, changing this attribute does not force the resource to be recreated, which requires an in-place update and may not be provided in custom deployments. In this case, contact support for clarification.
- kubernetes_
node_ strgroup_ id - string → ID of the resource.
- labels
Sequence[Kubernetes
Node Group Label Args] - optional → The list of objects representing representing additional properties of the node group. Each object should have attribute "key". Object may also have optional attribute "value".
- float
- optional number → The maximum number of nodes that can fail during an upgrade. The default value is 25 percent.
- max_
nodes float - optional number → The maximum allowed nodes for this node group.
- min_
nodes float - optional number → The minimum allowed nodes for this node group. Default to 0 if not set.
- name str
- required string → The name of node group to create. Changing this will force to create a new node group.
- node_
count float - required number → The node count for this node group. Should be greater than 0. If
autoscaling_enabled
parameter is set, this attribute will be ignored during update. - state str
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- taints
Sequence[Kubernetes
Node Group Taint Args] - optional → The list of objects representing node group taints. Each object should have following attributes: key, value, effect.
- timeouts
Kubernetes
Node Group Timeouts Args - updated_
at str - string → The time at which node group was created.
- uuid str
- string → The UUID of the cluster's node group.
- volume_
size float - optional number → The size in GB for volume to load nodes from. Changing this will force to create a new node group.
- volume_
type str - optional string → The volume type to load nodes from. Changing this will force to create a new node group.
- autoscaling
Enabled Boolean - optional boolean → Determines whether the autoscaling is enabled.
- availability
Zones List<String> - optional set of string → The list of availability zones of the node group. By default, a node group is created at cluster's zone.
- cluster
Id String - required string → The UUID of the existing cluster.
- created
At String - string → The time at which node group was created.
- flavor
Id String - optional string → The flavor UUID of this node group. Note: Starting with v0.5.1, changing this attribute does not force the resource to be recreated, which requires an in-place update and may not be provided in custom deployments. In this case, contact support for clarification.
- kubernetes
Node StringGroup Id - string → ID of the resource.
- labels List<Property Map>
- optional → The list of objects representing representing additional properties of the node group. Each object should have attribute "key". Object may also have optional attribute "value".
- Number
- optional number → The maximum number of nodes that can fail during an upgrade. The default value is 25 percent.
- max
Nodes Number - optional number → The maximum allowed nodes for this node group.
- min
Nodes Number - optional number → The minimum allowed nodes for this node group. Default to 0 if not set.
- name String
- required string → The name of node group to create. Changing this will force to create a new node group.
- node
Count Number - required number → The node count for this node group. Should be greater than 0. If
autoscaling_enabled
parameter is set, this attribute will be ignored during update. - state String
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- taints List<Property Map>
- optional → The list of objects representing node group taints. Each object should have following attributes: key, value, effect.
- timeouts Property Map
- updated
At String - string → The time at which node group was created.
- uuid String
- string → The UUID of the cluster's node group.
- volume
Size Number - optional number → The size in GB for volume to load nodes from. Changing this will force to create a new node group.
- volume
Type String - optional string → The volume type to load nodes from. Changing this will force to create a new node group.
Supporting Types
KubernetesNodeGroupLabel, KubernetesNodeGroupLabelArgs
KubernetesNodeGroupTaint, KubernetesNodeGroupTaintArgs
KubernetesNodeGroupTimeouts, KubernetesNodeGroupTimeoutsArgs
Import
Node groups can be imported using the id
, e.g.
$ pulumi import vkcs:index/kubernetesNodeGroup:KubernetesNodeGroup ng aa14de9c-c5f5-4cc0-869c-ce655419df76
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.