selectel.MksNodegroupV1
Explore with Pulumi AI
Creates and manages a Managed Kubernetes node group using public API v1. For more information about node groups, see the official Selectel documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const nodegroup1 = new selectel.MksNodegroupV1("nodegroup1", {
clusterId: selectel_mks_cluster_v1.cluster_1.id,
projectId: selectel_mks_cluster_v1.cluster_1.project_id,
region: selectel_mks_cluster_v1.cluster_1.region,
availabilityZone: "ru-7a",
nodesCount: 3,
cpus: 2,
ramMb: 4096,
volumeGb: 20,
volumeType: "fast.ru-7a",
installNvidiaDevicePlugin: false,
preemptible: false,
labels: {
"label-key0": "label-value0",
"label-key1": "label-value1",
"label-key2": "label-value2",
},
taints: [
{
key: "test-key-0",
value: "test-value-0",
effect: "NoSchedule",
},
{
key: "test-key-1",
value: "test-value-1",
effect: "NoExecute",
},
{
key: "test-key-2",
value: "test-value-2",
effect: "PreferNoSchedule",
},
],
});
import pulumi
import pulumi_selectel as selectel
nodegroup1 = selectel.MksNodegroupV1("nodegroup1",
cluster_id=selectel_mks_cluster_v1["cluster_1"]["id"],
project_id=selectel_mks_cluster_v1["cluster_1"]["project_id"],
region=selectel_mks_cluster_v1["cluster_1"]["region"],
availability_zone="ru-7a",
nodes_count=3,
cpus=2,
ram_mb=4096,
volume_gb=20,
volume_type="fast.ru-7a",
install_nvidia_device_plugin=False,
preemptible=False,
labels={
"label-key0": "label-value0",
"label-key1": "label-value1",
"label-key2": "label-value2",
},
taints=[
{
"key": "test-key-0",
"value": "test-value-0",
"effect": "NoSchedule",
},
{
"key": "test-key-1",
"value": "test-value-1",
"effect": "NoExecute",
},
{
"key": "test-key-2",
"value": "test-value-2",
"effect": "PreferNoSchedule",
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewMksNodegroupV1(ctx, "nodegroup1", &selectel.MksNodegroupV1Args{
ClusterId: pulumi.Any(selectel_mks_cluster_v1.Cluster_1.Id),
ProjectId: pulumi.Any(selectel_mks_cluster_v1.Cluster_1.Project_id),
Region: pulumi.Any(selectel_mks_cluster_v1.Cluster_1.Region),
AvailabilityZone: pulumi.String("ru-7a"),
NodesCount: pulumi.Float64(3),
Cpus: pulumi.Float64(2),
RamMb: pulumi.Float64(4096),
VolumeGb: pulumi.Float64(20),
VolumeType: pulumi.String("fast.ru-7a"),
InstallNvidiaDevicePlugin: pulumi.Bool(false),
Preemptible: pulumi.Bool(false),
Labels: pulumi.StringMap{
"label-key0": pulumi.String("label-value0"),
"label-key1": pulumi.String("label-value1"),
"label-key2": pulumi.String("label-value2"),
},
Taints: selectel.MksNodegroupV1TaintArray{
&selectel.MksNodegroupV1TaintArgs{
Key: pulumi.String("test-key-0"),
Value: pulumi.String("test-value-0"),
Effect: pulumi.String("NoSchedule"),
},
&selectel.MksNodegroupV1TaintArgs{
Key: pulumi.String("test-key-1"),
Value: pulumi.String("test-value-1"),
Effect: pulumi.String("NoExecute"),
},
&selectel.MksNodegroupV1TaintArgs{
Key: pulumi.String("test-key-2"),
Value: pulumi.String("test-value-2"),
Effect: pulumi.String("PreferNoSchedule"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var nodegroup1 = new Selectel.MksNodegroupV1("nodegroup1", new()
{
ClusterId = selectel_mks_cluster_v1.Cluster_1.Id,
ProjectId = selectel_mks_cluster_v1.Cluster_1.Project_id,
Region = selectel_mks_cluster_v1.Cluster_1.Region,
AvailabilityZone = "ru-7a",
NodesCount = 3,
Cpus = 2,
RamMb = 4096,
VolumeGb = 20,
VolumeType = "fast.ru-7a",
InstallNvidiaDevicePlugin = false,
Preemptible = false,
Labels =
{
{ "label-key0", "label-value0" },
{ "label-key1", "label-value1" },
{ "label-key2", "label-value2" },
},
Taints = new[]
{
new Selectel.Inputs.MksNodegroupV1TaintArgs
{
Key = "test-key-0",
Value = "test-value-0",
Effect = "NoSchedule",
},
new Selectel.Inputs.MksNodegroupV1TaintArgs
{
Key = "test-key-1",
Value = "test-value-1",
Effect = "NoExecute",
},
new Selectel.Inputs.MksNodegroupV1TaintArgs
{
Key = "test-key-2",
Value = "test-value-2",
Effect = "PreferNoSchedule",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.MksNodegroupV1;
import com.pulumi.selectel.MksNodegroupV1Args;
import com.pulumi.selectel.inputs.MksNodegroupV1TaintArgs;
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 nodegroup1 = new MksNodegroupV1("nodegroup1", MksNodegroupV1Args.builder()
.clusterId(selectel_mks_cluster_v1.cluster_1().id())
.projectId(selectel_mks_cluster_v1.cluster_1().project_id())
.region(selectel_mks_cluster_v1.cluster_1().region())
.availabilityZone("ru-7a")
.nodesCount(3)
.cpus(2)
.ramMb(4096)
.volumeGb(20)
.volumeType("fast.ru-7a")
.installNvidiaDevicePlugin(false)
.preemptible(false)
.labels(Map.ofEntries(
Map.entry("label-key0", "label-value0"),
Map.entry("label-key1", "label-value1"),
Map.entry("label-key2", "label-value2")
))
.taints(
MksNodegroupV1TaintArgs.builder()
.key("test-key-0")
.value("test-value-0")
.effect("NoSchedule")
.build(),
MksNodegroupV1TaintArgs.builder()
.key("test-key-1")
.value("test-value-1")
.effect("NoExecute")
.build(),
MksNodegroupV1TaintArgs.builder()
.key("test-key-2")
.value("test-value-2")
.effect("PreferNoSchedule")
.build())
.build());
}
}
resources:
nodegroup1:
type: selectel:MksNodegroupV1
properties:
clusterId: ${selectel_mks_cluster_v1.cluster_1.id}
projectId: ${selectel_mks_cluster_v1.cluster_1.project_id}
region: ${selectel_mks_cluster_v1.cluster_1.region}
availabilityZone: ru-7a
nodesCount: 3
cpus: 2
ramMb: 4096
volumeGb: 20
volumeType: fast.ru-7a
installNvidiaDevicePlugin: false
preemptible: false
labels:
label-key0: label-value0
label-key1: label-value1
label-key2: label-value2
taints:
- key: test-key-0
value: test-value-0
effect: NoSchedule
- key: test-key-1
value: test-value-1
effect: NoExecute
- key: test-key-2
value: test-value-2
effect: PreferNoSchedule
Create MksNodegroupV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MksNodegroupV1(name: string, args: MksNodegroupV1Args, opts?: CustomResourceOptions);
@overload
def MksNodegroupV1(resource_name: str,
args: MksNodegroupV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def MksNodegroupV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
install_nvidia_device_plugin: Optional[bool] = None,
region: Optional[str] = None,
project_id: Optional[str] = None,
availability_zone: Optional[str] = None,
cluster_id: Optional[str] = None,
nodes_count: Optional[float] = None,
cpus: Optional[float] = None,
autoscale_min_nodes: Optional[float] = None,
enable_autoscale: Optional[bool] = None,
keypair_name: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
local_volume: Optional[bool] = None,
mks_nodegroup_v1_id: Optional[str] = None,
affinity_policy: Optional[str] = None,
preemptible: Optional[bool] = None,
flavor_id: Optional[str] = None,
ram_mb: Optional[float] = None,
autoscale_max_nodes: Optional[float] = None,
taints: Optional[Sequence[MksNodegroupV1TaintArgs]] = None,
timeouts: Optional[MksNodegroupV1TimeoutsArgs] = None,
user_data: Optional[str] = None,
volume_gb: Optional[float] = None,
volume_type: Optional[str] = None)
func NewMksNodegroupV1(ctx *Context, name string, args MksNodegroupV1Args, opts ...ResourceOption) (*MksNodegroupV1, error)
public MksNodegroupV1(string name, MksNodegroupV1Args args, CustomResourceOptions? opts = null)
public MksNodegroupV1(String name, MksNodegroupV1Args args)
public MksNodegroupV1(String name, MksNodegroupV1Args args, CustomResourceOptions options)
type: selectel:MksNodegroupV1
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 MksNodegroupV1Args
- 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 MksNodegroupV1Args
- 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 MksNodegroupV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MksNodegroupV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MksNodegroupV1Args
- 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 mksNodegroupV1Resource = new Selectel.MksNodegroupV1("mksNodegroupV1Resource", new()
{
InstallNvidiaDevicePlugin = false,
Region = "string",
ProjectId = "string",
AvailabilityZone = "string",
ClusterId = "string",
NodesCount = 0,
Cpus = 0,
AutoscaleMinNodes = 0,
EnableAutoscale = false,
KeypairName = "string",
Labels =
{
{ "string", "string" },
},
LocalVolume = false,
MksNodegroupV1Id = "string",
AffinityPolicy = "string",
Preemptible = false,
FlavorId = "string",
RamMb = 0,
AutoscaleMaxNodes = 0,
Taints = new[]
{
new Selectel.Inputs.MksNodegroupV1TaintArgs
{
Effect = "string",
Key = "string",
Value = "string",
},
},
Timeouts = new Selectel.Inputs.MksNodegroupV1TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
UserData = "string",
VolumeGb = 0,
VolumeType = "string",
});
example, err := selectel.NewMksNodegroupV1(ctx, "mksNodegroupV1Resource", &selectel.MksNodegroupV1Args{
InstallNvidiaDevicePlugin: pulumi.Bool(false),
Region: pulumi.String("string"),
ProjectId: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
ClusterId: pulumi.String("string"),
NodesCount: pulumi.Float64(0),
Cpus: pulumi.Float64(0),
AutoscaleMinNodes: pulumi.Float64(0),
EnableAutoscale: pulumi.Bool(false),
KeypairName: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
LocalVolume: pulumi.Bool(false),
MksNodegroupV1Id: pulumi.String("string"),
AffinityPolicy: pulumi.String("string"),
Preemptible: pulumi.Bool(false),
FlavorId: pulumi.String("string"),
RamMb: pulumi.Float64(0),
AutoscaleMaxNodes: pulumi.Float64(0),
Taints: selectel.MksNodegroupV1TaintArray{
&selectel.MksNodegroupV1TaintArgs{
Effect: pulumi.String("string"),
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Timeouts: &selectel.MksNodegroupV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
UserData: pulumi.String("string"),
VolumeGb: pulumi.Float64(0),
VolumeType: pulumi.String("string"),
})
var mksNodegroupV1Resource = new MksNodegroupV1("mksNodegroupV1Resource", MksNodegroupV1Args.builder()
.installNvidiaDevicePlugin(false)
.region("string")
.projectId("string")
.availabilityZone("string")
.clusterId("string")
.nodesCount(0)
.cpus(0)
.autoscaleMinNodes(0)
.enableAutoscale(false)
.keypairName("string")
.labels(Map.of("string", "string"))
.localVolume(false)
.mksNodegroupV1Id("string")
.affinityPolicy("string")
.preemptible(false)
.flavorId("string")
.ramMb(0)
.autoscaleMaxNodes(0)
.taints(MksNodegroupV1TaintArgs.builder()
.effect("string")
.key("string")
.value("string")
.build())
.timeouts(MksNodegroupV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.userData("string")
.volumeGb(0)
.volumeType("string")
.build());
mks_nodegroup_v1_resource = selectel.MksNodegroupV1("mksNodegroupV1Resource",
install_nvidia_device_plugin=False,
region="string",
project_id="string",
availability_zone="string",
cluster_id="string",
nodes_count=0,
cpus=0,
autoscale_min_nodes=0,
enable_autoscale=False,
keypair_name="string",
labels={
"string": "string",
},
local_volume=False,
mks_nodegroup_v1_id="string",
affinity_policy="string",
preemptible=False,
flavor_id="string",
ram_mb=0,
autoscale_max_nodes=0,
taints=[{
"effect": "string",
"key": "string",
"value": "string",
}],
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
user_data="string",
volume_gb=0,
volume_type="string")
const mksNodegroupV1Resource = new selectel.MksNodegroupV1("mksNodegroupV1Resource", {
installNvidiaDevicePlugin: false,
region: "string",
projectId: "string",
availabilityZone: "string",
clusterId: "string",
nodesCount: 0,
cpus: 0,
autoscaleMinNodes: 0,
enableAutoscale: false,
keypairName: "string",
labels: {
string: "string",
},
localVolume: false,
mksNodegroupV1Id: "string",
affinityPolicy: "string",
preemptible: false,
flavorId: "string",
ramMb: 0,
autoscaleMaxNodes: 0,
taints: [{
effect: "string",
key: "string",
value: "string",
}],
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
userData: "string",
volumeGb: 0,
volumeType: "string",
});
type: selectel:MksNodegroupV1
properties:
affinityPolicy: string
autoscaleMaxNodes: 0
autoscaleMinNodes: 0
availabilityZone: string
clusterId: string
cpus: 0
enableAutoscale: false
flavorId: string
installNvidiaDevicePlugin: false
keypairName: string
labels:
string: string
localVolume: false
mksNodegroupV1Id: string
nodesCount: 0
preemptible: false
projectId: string
ramMb: 0
region: string
taints:
- effect: string
key: string
value: string
timeouts:
create: string
delete: string
update: string
userData: string
volumeGb: 0
volumeType: string
MksNodegroupV1 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 MksNodegroupV1 resource accepts the following input properties:
- Availability
Zone string - Pool segment where all nodes of the node group are located. Changing this creates a new node group. Learn more about available pool segments in the Availability matrix.
- Cluster
Id string - Unique identifier of the associated Managed Kubernetes cluster. Changing this creates a new node group. Retrieved from the selectel.MksClusterV1 resource.
- Install
Nvidia boolDevice Plugin - Enables or disables installation of the NVIDIA Device Plugin and GPU drivers.
Boolean flag: - Nodes
Count double - Number of worker nodes in the node group. Changing this resizes the node group if
enable_autoscale
is false. - Project
Id string - Unique identifier of the associated project. Changing this creates a new node group. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Region string
- Pool where the cluster is located, for example,
ru-7
. Changing this creates a new node group. Learn more about available pools in the Availability matrix. - Affinity
Policy string - Specifies affinity policy of the nodes. Changing this creates a new node group. Available values are
soft-anti-affinity
andsoft-affinity
. The default value issoft-anti-affinity
. For more information about affinity and anti-affinity, see the official Kubernetes documentation. - Autoscale
Max doubleNodes - Autoscale
Min doubleNodes - Cpus double
- Number of vCPUs for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - Enable
Autoscale bool - Enables or disables autoscaling of the node group. Boolean flag, the default value is false.
autoscale_min_nodes
andautoscale_max_nodes
must be specified. Learn more about Autoscaling. - Flavor
Id string - Unique identifier of an OpenStack flavor for all nodes in the node group. Changing this creates a new node group. Learn more about Flavors.
- Keypair
Name string - Name of the SSH key added to all nodes. Changing this creates a new node group.
- Labels Dictionary<string, string>
- List of Kubernetes labels applied to each node in the node group.
- Local
Volume bool - Specifies if nodes use a local volume. Cannot be used with the flavors that have specifications for a local volume. Changing this creates a new node group. Boolean flag, the default value is false.
- Mks
Nodegroup stringV1Id - Preemptible bool
- Enables or disables the use of preemptible nodes for the node group. Boolean flag, the default value is false. Learn more about Preemptible node groups.
- Ram
Mb double - Amount of RAM in MB for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - Taints
List<Mks
Nodegroup V1Taint> - List of Kubernetes taints applied to each node in the node group. Contains a key-value pair and an effect applied for the taint. Available effects are
NoSchedule
,PreferNoSchedule
, andNoExecute
. Learn more about Taints. - Timeouts
Mks
Nodegroup V1Timeouts - User
Data string - Base64-encoded script that worker nodes run on the first boot. Changing this creates a new node group. Learn more about User data.
- Volume
Gb double - Volume size in GB for each node. Can be skipped only when flavor_id is set and local_volume is
true
. Changing this creates a new node group. Learn more about Configurations. - Volume
Type string - Type of an OpenStack Block Storage volume for each node. Can be skipped only when
flavor_id
is set and the flavor properties contain additional specifications for a local volume. Changing this creates a new node group. Available volume types arefast
,basic
, anduniversal
. The format is<volume_type>.<availability_zone>
. Learn more about Network volumes.
- Availability
Zone string - Pool segment where all nodes of the node group are located. Changing this creates a new node group. Learn more about available pool segments in the Availability matrix.
- Cluster
Id string - Unique identifier of the associated Managed Kubernetes cluster. Changing this creates a new node group. Retrieved from the selectel.MksClusterV1 resource.
- Install
Nvidia boolDevice Plugin - Enables or disables installation of the NVIDIA Device Plugin and GPU drivers.
Boolean flag: - Nodes
Count float64 - Number of worker nodes in the node group. Changing this resizes the node group if
enable_autoscale
is false. - Project
Id string - Unique identifier of the associated project. Changing this creates a new node group. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Region string
- Pool where the cluster is located, for example,
ru-7
. Changing this creates a new node group. Learn more about available pools in the Availability matrix. - Affinity
Policy string - Specifies affinity policy of the nodes. Changing this creates a new node group. Available values are
soft-anti-affinity
andsoft-affinity
. The default value issoft-anti-affinity
. For more information about affinity and anti-affinity, see the official Kubernetes documentation. - Autoscale
Max float64Nodes - Autoscale
Min float64Nodes - Cpus float64
- Number of vCPUs for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - Enable
Autoscale bool - Enables or disables autoscaling of the node group. Boolean flag, the default value is false.
autoscale_min_nodes
andautoscale_max_nodes
must be specified. Learn more about Autoscaling. - Flavor
Id string - Unique identifier of an OpenStack flavor for all nodes in the node group. Changing this creates a new node group. Learn more about Flavors.
- Keypair
Name string - Name of the SSH key added to all nodes. Changing this creates a new node group.
- Labels map[string]string
- List of Kubernetes labels applied to each node in the node group.
- Local
Volume bool - Specifies if nodes use a local volume. Cannot be used with the flavors that have specifications for a local volume. Changing this creates a new node group. Boolean flag, the default value is false.
- Mks
Nodegroup stringV1Id - Preemptible bool
- Enables or disables the use of preemptible nodes for the node group. Boolean flag, the default value is false. Learn more about Preemptible node groups.
- Ram
Mb float64 - Amount of RAM in MB for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - Taints
[]Mks
Nodegroup V1Taint Args - List of Kubernetes taints applied to each node in the node group. Contains a key-value pair and an effect applied for the taint. Available effects are
NoSchedule
,PreferNoSchedule
, andNoExecute
. Learn more about Taints. - Timeouts
Mks
Nodegroup V1Timeouts Args - User
Data string - Base64-encoded script that worker nodes run on the first boot. Changing this creates a new node group. Learn more about User data.
- Volume
Gb float64 - Volume size in GB for each node. Can be skipped only when flavor_id is set and local_volume is
true
. Changing this creates a new node group. Learn more about Configurations. - Volume
Type string - Type of an OpenStack Block Storage volume for each node. Can be skipped only when
flavor_id
is set and the flavor properties contain additional specifications for a local volume. Changing this creates a new node group. Available volume types arefast
,basic
, anduniversal
. The format is<volume_type>.<availability_zone>
. Learn more about Network volumes.
- availability
Zone String - Pool segment where all nodes of the node group are located. Changing this creates a new node group. Learn more about available pool segments in the Availability matrix.
- cluster
Id String - Unique identifier of the associated Managed Kubernetes cluster. Changing this creates a new node group. Retrieved from the selectel.MksClusterV1 resource.
- install
Nvidia BooleanDevice Plugin - Enables or disables installation of the NVIDIA Device Plugin and GPU drivers.
Boolean flag: - nodes
Count Double - Number of worker nodes in the node group. Changing this resizes the node group if
enable_autoscale
is false. - project
Id String - Unique identifier of the associated project. Changing this creates a new node group. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region String
- Pool where the cluster is located, for example,
ru-7
. Changing this creates a new node group. Learn more about available pools in the Availability matrix. - affinity
Policy String - Specifies affinity policy of the nodes. Changing this creates a new node group. Available values are
soft-anti-affinity
andsoft-affinity
. The default value issoft-anti-affinity
. For more information about affinity and anti-affinity, see the official Kubernetes documentation. - autoscale
Max DoubleNodes - autoscale
Min DoubleNodes - cpus Double
- Number of vCPUs for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - enable
Autoscale Boolean - Enables or disables autoscaling of the node group. Boolean flag, the default value is false.
autoscale_min_nodes
andautoscale_max_nodes
must be specified. Learn more about Autoscaling. - flavor
Id String - Unique identifier of an OpenStack flavor for all nodes in the node group. Changing this creates a new node group. Learn more about Flavors.
- keypair
Name String - Name of the SSH key added to all nodes. Changing this creates a new node group.
- labels Map<String,String>
- List of Kubernetes labels applied to each node in the node group.
- local
Volume Boolean - Specifies if nodes use a local volume. Cannot be used with the flavors that have specifications for a local volume. Changing this creates a new node group. Boolean flag, the default value is false.
- mks
Nodegroup StringV1Id - preemptible Boolean
- Enables or disables the use of preemptible nodes for the node group. Boolean flag, the default value is false. Learn more about Preemptible node groups.
- ram
Mb Double - Amount of RAM in MB for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - taints
List<Mks
Nodegroup V1Taint> - List of Kubernetes taints applied to each node in the node group. Contains a key-value pair and an effect applied for the taint. Available effects are
NoSchedule
,PreferNoSchedule
, andNoExecute
. Learn more about Taints. - timeouts
Mks
Nodegroup V1Timeouts - user
Data String - Base64-encoded script that worker nodes run on the first boot. Changing this creates a new node group. Learn more about User data.
- volume
Gb Double - Volume size in GB for each node. Can be skipped only when flavor_id is set and local_volume is
true
. Changing this creates a new node group. Learn more about Configurations. - volume
Type String - Type of an OpenStack Block Storage volume for each node. Can be skipped only when
flavor_id
is set and the flavor properties contain additional specifications for a local volume. Changing this creates a new node group. Available volume types arefast
,basic
, anduniversal
. The format is<volume_type>.<availability_zone>
. Learn more about Network volumes.
- availability
Zone string - Pool segment where all nodes of the node group are located. Changing this creates a new node group. Learn more about available pool segments in the Availability matrix.
- cluster
Id string - Unique identifier of the associated Managed Kubernetes cluster. Changing this creates a new node group. Retrieved from the selectel.MksClusterV1 resource.
- install
Nvidia booleanDevice Plugin - Enables or disables installation of the NVIDIA Device Plugin and GPU drivers.
Boolean flag: - nodes
Count number - Number of worker nodes in the node group. Changing this resizes the node group if
enable_autoscale
is false. - project
Id string - Unique identifier of the associated project. Changing this creates a new node group. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region string
- Pool where the cluster is located, for example,
ru-7
. Changing this creates a new node group. Learn more about available pools in the Availability matrix. - affinity
Policy string - Specifies affinity policy of the nodes. Changing this creates a new node group. Available values are
soft-anti-affinity
andsoft-affinity
. The default value issoft-anti-affinity
. For more information about affinity and anti-affinity, see the official Kubernetes documentation. - autoscale
Max numberNodes - autoscale
Min numberNodes - cpus number
- Number of vCPUs for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - enable
Autoscale boolean - Enables or disables autoscaling of the node group. Boolean flag, the default value is false.
autoscale_min_nodes
andautoscale_max_nodes
must be specified. Learn more about Autoscaling. - flavor
Id string - Unique identifier of an OpenStack flavor for all nodes in the node group. Changing this creates a new node group. Learn more about Flavors.
- keypair
Name string - Name of the SSH key added to all nodes. Changing this creates a new node group.
- labels {[key: string]: string}
- List of Kubernetes labels applied to each node in the node group.
- local
Volume boolean - Specifies if nodes use a local volume. Cannot be used with the flavors that have specifications for a local volume. Changing this creates a new node group. Boolean flag, the default value is false.
- mks
Nodegroup stringV1Id - preemptible boolean
- Enables or disables the use of preemptible nodes for the node group. Boolean flag, the default value is false. Learn more about Preemptible node groups.
- ram
Mb number - Amount of RAM in MB for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - taints
Mks
Nodegroup V1Taint[] - List of Kubernetes taints applied to each node in the node group. Contains a key-value pair and an effect applied for the taint. Available effects are
NoSchedule
,PreferNoSchedule
, andNoExecute
. Learn more about Taints. - timeouts
Mks
Nodegroup V1Timeouts - user
Data string - Base64-encoded script that worker nodes run on the first boot. Changing this creates a new node group. Learn more about User data.
- volume
Gb number - Volume size in GB for each node. Can be skipped only when flavor_id is set and local_volume is
true
. Changing this creates a new node group. Learn more about Configurations. - volume
Type string - Type of an OpenStack Block Storage volume for each node. Can be skipped only when
flavor_id
is set and the flavor properties contain additional specifications for a local volume. Changing this creates a new node group. Available volume types arefast
,basic
, anduniversal
. The format is<volume_type>.<availability_zone>
. Learn more about Network volumes.
- availability_
zone str - Pool segment where all nodes of the node group are located. Changing this creates a new node group. Learn more about available pool segments in the Availability matrix.
- cluster_
id str - Unique identifier of the associated Managed Kubernetes cluster. Changing this creates a new node group. Retrieved from the selectel.MksClusterV1 resource.
- install_
nvidia_ booldevice_ plugin - Enables or disables installation of the NVIDIA Device Plugin and GPU drivers.
Boolean flag: - nodes_
count float - Number of worker nodes in the node group. Changing this resizes the node group if
enable_autoscale
is false. - project_
id str - Unique identifier of the associated project. Changing this creates a new node group. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region str
- Pool where the cluster is located, for example,
ru-7
. Changing this creates a new node group. Learn more about available pools in the Availability matrix. - affinity_
policy str - Specifies affinity policy of the nodes. Changing this creates a new node group. Available values are
soft-anti-affinity
andsoft-affinity
. The default value issoft-anti-affinity
. For more information about affinity and anti-affinity, see the official Kubernetes documentation. - autoscale_
max_ floatnodes - autoscale_
min_ floatnodes - cpus float
- Number of vCPUs for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - enable_
autoscale bool - Enables or disables autoscaling of the node group. Boolean flag, the default value is false.
autoscale_min_nodes
andautoscale_max_nodes
must be specified. Learn more about Autoscaling. - flavor_
id str - Unique identifier of an OpenStack flavor for all nodes in the node group. Changing this creates a new node group. Learn more about Flavors.
- keypair_
name str - Name of the SSH key added to all nodes. Changing this creates a new node group.
- labels Mapping[str, str]
- List of Kubernetes labels applied to each node in the node group.
- local_
volume bool - Specifies if nodes use a local volume. Cannot be used with the flavors that have specifications for a local volume. Changing this creates a new node group. Boolean flag, the default value is false.
- mks_
nodegroup_ strv1_ id - preemptible bool
- Enables or disables the use of preemptible nodes for the node group. Boolean flag, the default value is false. Learn more about Preemptible node groups.
- ram_
mb float - Amount of RAM in MB for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - taints
Sequence[Mks
Nodegroup V1Taint Args] - List of Kubernetes taints applied to each node in the node group. Contains a key-value pair and an effect applied for the taint. Available effects are
NoSchedule
,PreferNoSchedule
, andNoExecute
. Learn more about Taints. - timeouts
Mks
Nodegroup V1Timeouts Args - user_
data str - Base64-encoded script that worker nodes run on the first boot. Changing this creates a new node group. Learn more about User data.
- volume_
gb float - Volume size in GB for each node. Can be skipped only when flavor_id is set and local_volume is
true
. Changing this creates a new node group. Learn more about Configurations. - volume_
type str - Type of an OpenStack Block Storage volume for each node. Can be skipped only when
flavor_id
is set and the flavor properties contain additional specifications for a local volume. Changing this creates a new node group. Available volume types arefast
,basic
, anduniversal
. The format is<volume_type>.<availability_zone>
. Learn more about Network volumes.
- availability
Zone String - Pool segment where all nodes of the node group are located. Changing this creates a new node group. Learn more about available pool segments in the Availability matrix.
- cluster
Id String - Unique identifier of the associated Managed Kubernetes cluster. Changing this creates a new node group. Retrieved from the selectel.MksClusterV1 resource.
- install
Nvidia BooleanDevice Plugin - Enables or disables installation of the NVIDIA Device Plugin and GPU drivers.
Boolean flag: - nodes
Count Number - Number of worker nodes in the node group. Changing this resizes the node group if
enable_autoscale
is false. - project
Id String - Unique identifier of the associated project. Changing this creates a new node group. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- region String
- Pool where the cluster is located, for example,
ru-7
. Changing this creates a new node group. Learn more about available pools in the Availability matrix. - affinity
Policy String - Specifies affinity policy of the nodes. Changing this creates a new node group. Available values are
soft-anti-affinity
andsoft-affinity
. The default value issoft-anti-affinity
. For more information about affinity and anti-affinity, see the official Kubernetes documentation. - autoscale
Max NumberNodes - autoscale
Min NumberNodes - cpus Number
- Number of vCPUs for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - enable
Autoscale Boolean - Enables or disables autoscaling of the node group. Boolean flag, the default value is false.
autoscale_min_nodes
andautoscale_max_nodes
must be specified. Learn more about Autoscaling. - flavor
Id String - Unique identifier of an OpenStack flavor for all nodes in the node group. Changing this creates a new node group. Learn more about Flavors.
- keypair
Name String - Name of the SSH key added to all nodes. Changing this creates a new node group.
- labels Map<String>
- List of Kubernetes labels applied to each node in the node group.
- local
Volume Boolean - Specifies if nodes use a local volume. Cannot be used with the flavors that have specifications for a local volume. Changing this creates a new node group. Boolean flag, the default value is false.
- mks
Nodegroup StringV1Id - preemptible Boolean
- Enables or disables the use of preemptible nodes for the node group. Boolean flag, the default value is false. Learn more about Preemptible node groups.
- ram
Mb Number - Amount of RAM in MB for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - taints List<Property Map>
- List of Kubernetes taints applied to each node in the node group. Contains a key-value pair and an effect applied for the taint. Available effects are
NoSchedule
,PreferNoSchedule
, andNoExecute
. Learn more about Taints. - timeouts Property Map
- user
Data String - Base64-encoded script that worker nodes run on the first boot. Changing this creates a new node group. Learn more about User data.
- volume
Gb Number - Volume size in GB for each node. Can be skipped only when flavor_id is set and local_volume is
true
. Changing this creates a new node group. Learn more about Configurations. - volume
Type String - Type of an OpenStack Block Storage volume for each node. Can be skipped only when
flavor_id
is set and the flavor properties contain additional specifications for a local volume. Changing this creates a new node group. Available volume types arefast
,basic
, anduniversal
. The format is<volume_type>.<availability_zone>
. Learn more about Network volumes.
Outputs
All input properties are implicitly available as output properties. Additionally, the MksNodegroupV1 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodegroup
Type string - Type of the node group. Available values are
STANDARD
andGPU
. - Nodes
List<Mks
Nodegroup V1Node> - List of nodes in the node group.
- Status string
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodegroup
Type string - Type of the node group. Available values are
STANDARD
andGPU
. - Nodes
[]Mks
Nodegroup V1Node - List of nodes in the node group.
- Status string
- id String
- The provider-assigned unique ID for this managed resource.
- nodegroup
Type String - Type of the node group. Available values are
STANDARD
andGPU
. - nodes
List<Mks
Nodegroup V1Node> - List of nodes in the node group.
- status String
- id string
- The provider-assigned unique ID for this managed resource.
- nodegroup
Type string - Type of the node group. Available values are
STANDARD
andGPU
. - nodes
Mks
Nodegroup V1Node[] - List of nodes in the node group.
- status string
- id str
- The provider-assigned unique ID for this managed resource.
- nodegroup_
type str - Type of the node group. Available values are
STANDARD
andGPU
. - nodes
Sequence[Mks
Nodegroup V1Node] - List of nodes in the node group.
- status str
- id String
- The provider-assigned unique ID for this managed resource.
- nodegroup
Type String - Type of the node group. Available values are
STANDARD
andGPU
. - nodes List<Property Map>
- List of nodes in the node group.
- status String
Look up Existing MksNodegroupV1 Resource
Get an existing MksNodegroupV1 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?: MksNodegroupV1State, opts?: CustomResourceOptions): MksNodegroupV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
affinity_policy: Optional[str] = None,
autoscale_max_nodes: Optional[float] = None,
autoscale_min_nodes: Optional[float] = None,
availability_zone: Optional[str] = None,
cluster_id: Optional[str] = None,
cpus: Optional[float] = None,
enable_autoscale: Optional[bool] = None,
flavor_id: Optional[str] = None,
install_nvidia_device_plugin: Optional[bool] = None,
keypair_name: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
local_volume: Optional[bool] = None,
mks_nodegroup_v1_id: Optional[str] = None,
nodegroup_type: Optional[str] = None,
nodes: Optional[Sequence[MksNodegroupV1NodeArgs]] = None,
nodes_count: Optional[float] = None,
preemptible: Optional[bool] = None,
project_id: Optional[str] = None,
ram_mb: Optional[float] = None,
region: Optional[str] = None,
status: Optional[str] = None,
taints: Optional[Sequence[MksNodegroupV1TaintArgs]] = None,
timeouts: Optional[MksNodegroupV1TimeoutsArgs] = None,
user_data: Optional[str] = None,
volume_gb: Optional[float] = None,
volume_type: Optional[str] = None) -> MksNodegroupV1
func GetMksNodegroupV1(ctx *Context, name string, id IDInput, state *MksNodegroupV1State, opts ...ResourceOption) (*MksNodegroupV1, error)
public static MksNodegroupV1 Get(string name, Input<string> id, MksNodegroupV1State? state, CustomResourceOptions? opts = null)
public static MksNodegroupV1 get(String name, Output<String> id, MksNodegroupV1State state, CustomResourceOptions options)
resources: _: type: selectel:MksNodegroupV1 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.
- Affinity
Policy string - Specifies affinity policy of the nodes. Changing this creates a new node group. Available values are
soft-anti-affinity
andsoft-affinity
. The default value issoft-anti-affinity
. For more information about affinity and anti-affinity, see the official Kubernetes documentation. - Autoscale
Max doubleNodes - Autoscale
Min doubleNodes - Availability
Zone string - Pool segment where all nodes of the node group are located. Changing this creates a new node group. Learn more about available pool segments in the Availability matrix.
- Cluster
Id string - Unique identifier of the associated Managed Kubernetes cluster. Changing this creates a new node group. Retrieved from the selectel.MksClusterV1 resource.
- Cpus double
- Number of vCPUs for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - Enable
Autoscale bool - Enables or disables autoscaling of the node group. Boolean flag, the default value is false.
autoscale_min_nodes
andautoscale_max_nodes
must be specified. Learn more about Autoscaling. - Flavor
Id string - Unique identifier of an OpenStack flavor for all nodes in the node group. Changing this creates a new node group. Learn more about Flavors.
- Install
Nvidia boolDevice Plugin - Enables or disables installation of the NVIDIA Device Plugin and GPU drivers.
Boolean flag: - Keypair
Name string - Name of the SSH key added to all nodes. Changing this creates a new node group.
- Labels Dictionary<string, string>
- List of Kubernetes labels applied to each node in the node group.
- Local
Volume bool - Specifies if nodes use a local volume. Cannot be used with the flavors that have specifications for a local volume. Changing this creates a new node group. Boolean flag, the default value is false.
- Mks
Nodegroup stringV1Id - Nodegroup
Type string - Type of the node group. Available values are
STANDARD
andGPU
. - Nodes
List<Mks
Nodegroup V1Node> - List of nodes in the node group.
- Nodes
Count double - Number of worker nodes in the node group. Changing this resizes the node group if
enable_autoscale
is false. - Preemptible bool
- Enables or disables the use of preemptible nodes for the node group. Boolean flag, the default value is false. Learn more about Preemptible node groups.
- Project
Id string - Unique identifier of the associated project. Changing this creates a new node group. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Ram
Mb double - Amount of RAM in MB for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - Region string
- Pool where the cluster is located, for example,
ru-7
. Changing this creates a new node group. Learn more about available pools in the Availability matrix. - Status string
- Taints
List<Mks
Nodegroup V1Taint> - List of Kubernetes taints applied to each node in the node group. Contains a key-value pair and an effect applied for the taint. Available effects are
NoSchedule
,PreferNoSchedule
, andNoExecute
. Learn more about Taints. - Timeouts
Mks
Nodegroup V1Timeouts - User
Data string - Base64-encoded script that worker nodes run on the first boot. Changing this creates a new node group. Learn more about User data.
- Volume
Gb double - Volume size in GB for each node. Can be skipped only when flavor_id is set and local_volume is
true
. Changing this creates a new node group. Learn more about Configurations. - Volume
Type string - Type of an OpenStack Block Storage volume for each node. Can be skipped only when
flavor_id
is set and the flavor properties contain additional specifications for a local volume. Changing this creates a new node group. Available volume types arefast
,basic
, anduniversal
. The format is<volume_type>.<availability_zone>
. Learn more about Network volumes.
- Affinity
Policy string - Specifies affinity policy of the nodes. Changing this creates a new node group. Available values are
soft-anti-affinity
andsoft-affinity
. The default value issoft-anti-affinity
. For more information about affinity and anti-affinity, see the official Kubernetes documentation. - Autoscale
Max float64Nodes - Autoscale
Min float64Nodes - Availability
Zone string - Pool segment where all nodes of the node group are located. Changing this creates a new node group. Learn more about available pool segments in the Availability matrix.
- Cluster
Id string - Unique identifier of the associated Managed Kubernetes cluster. Changing this creates a new node group. Retrieved from the selectel.MksClusterV1 resource.
- Cpus float64
- Number of vCPUs for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - Enable
Autoscale bool - Enables or disables autoscaling of the node group. Boolean flag, the default value is false.
autoscale_min_nodes
andautoscale_max_nodes
must be specified. Learn more about Autoscaling. - Flavor
Id string - Unique identifier of an OpenStack flavor for all nodes in the node group. Changing this creates a new node group. Learn more about Flavors.
- Install
Nvidia boolDevice Plugin - Enables or disables installation of the NVIDIA Device Plugin and GPU drivers.
Boolean flag: - Keypair
Name string - Name of the SSH key added to all nodes. Changing this creates a new node group.
- Labels map[string]string
- List of Kubernetes labels applied to each node in the node group.
- Local
Volume bool - Specifies if nodes use a local volume. Cannot be used with the flavors that have specifications for a local volume. Changing this creates a new node group. Boolean flag, the default value is false.
- Mks
Nodegroup stringV1Id - Nodegroup
Type string - Type of the node group. Available values are
STANDARD
andGPU
. - Nodes
[]Mks
Nodegroup V1Node Args - List of nodes in the node group.
- Nodes
Count float64 - Number of worker nodes in the node group. Changing this resizes the node group if
enable_autoscale
is false. - Preemptible bool
- Enables or disables the use of preemptible nodes for the node group. Boolean flag, the default value is false. Learn more about Preemptible node groups.
- Project
Id string - Unique identifier of the associated project. Changing this creates a new node group. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Ram
Mb float64 - Amount of RAM in MB for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - Region string
- Pool where the cluster is located, for example,
ru-7
. Changing this creates a new node group. Learn more about available pools in the Availability matrix. - Status string
- Taints
[]Mks
Nodegroup V1Taint Args - List of Kubernetes taints applied to each node in the node group. Contains a key-value pair and an effect applied for the taint. Available effects are
NoSchedule
,PreferNoSchedule
, andNoExecute
. Learn more about Taints. - Timeouts
Mks
Nodegroup V1Timeouts Args - User
Data string - Base64-encoded script that worker nodes run on the first boot. Changing this creates a new node group. Learn more about User data.
- Volume
Gb float64 - Volume size in GB for each node. Can be skipped only when flavor_id is set and local_volume is
true
. Changing this creates a new node group. Learn more about Configurations. - Volume
Type string - Type of an OpenStack Block Storage volume for each node. Can be skipped only when
flavor_id
is set and the flavor properties contain additional specifications for a local volume. Changing this creates a new node group. Available volume types arefast
,basic
, anduniversal
. The format is<volume_type>.<availability_zone>
. Learn more about Network volumes.
- affinity
Policy String - Specifies affinity policy of the nodes. Changing this creates a new node group. Available values are
soft-anti-affinity
andsoft-affinity
. The default value issoft-anti-affinity
. For more information about affinity and anti-affinity, see the official Kubernetes documentation. - autoscale
Max DoubleNodes - autoscale
Min DoubleNodes - availability
Zone String - Pool segment where all nodes of the node group are located. Changing this creates a new node group. Learn more about available pool segments in the Availability matrix.
- cluster
Id String - Unique identifier of the associated Managed Kubernetes cluster. Changing this creates a new node group. Retrieved from the selectel.MksClusterV1 resource.
- cpus Double
- Number of vCPUs for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - enable
Autoscale Boolean - Enables or disables autoscaling of the node group. Boolean flag, the default value is false.
autoscale_min_nodes
andautoscale_max_nodes
must be specified. Learn more about Autoscaling. - flavor
Id String - Unique identifier of an OpenStack flavor for all nodes in the node group. Changing this creates a new node group. Learn more about Flavors.
- install
Nvidia BooleanDevice Plugin - Enables or disables installation of the NVIDIA Device Plugin and GPU drivers.
Boolean flag: - keypair
Name String - Name of the SSH key added to all nodes. Changing this creates a new node group.
- labels Map<String,String>
- List of Kubernetes labels applied to each node in the node group.
- local
Volume Boolean - Specifies if nodes use a local volume. Cannot be used with the flavors that have specifications for a local volume. Changing this creates a new node group. Boolean flag, the default value is false.
- mks
Nodegroup StringV1Id - nodegroup
Type String - Type of the node group. Available values are
STANDARD
andGPU
. - nodes
List<Mks
Nodegroup V1Node> - List of nodes in the node group.
- nodes
Count Double - Number of worker nodes in the node group. Changing this resizes the node group if
enable_autoscale
is false. - preemptible Boolean
- Enables or disables the use of preemptible nodes for the node group. Boolean flag, the default value is false. Learn more about Preemptible node groups.
- project
Id String - Unique identifier of the associated project. Changing this creates a new node group. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- ram
Mb Double - Amount of RAM in MB for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - region String
- Pool where the cluster is located, for example,
ru-7
. Changing this creates a new node group. Learn more about available pools in the Availability matrix. - status String
- taints
List<Mks
Nodegroup V1Taint> - List of Kubernetes taints applied to each node in the node group. Contains a key-value pair and an effect applied for the taint. Available effects are
NoSchedule
,PreferNoSchedule
, andNoExecute
. Learn more about Taints. - timeouts
Mks
Nodegroup V1Timeouts - user
Data String - Base64-encoded script that worker nodes run on the first boot. Changing this creates a new node group. Learn more about User data.
- volume
Gb Double - Volume size in GB for each node. Can be skipped only when flavor_id is set and local_volume is
true
. Changing this creates a new node group. Learn more about Configurations. - volume
Type String - Type of an OpenStack Block Storage volume for each node. Can be skipped only when
flavor_id
is set and the flavor properties contain additional specifications for a local volume. Changing this creates a new node group. Available volume types arefast
,basic
, anduniversal
. The format is<volume_type>.<availability_zone>
. Learn more about Network volumes.
- affinity
Policy string - Specifies affinity policy of the nodes. Changing this creates a new node group. Available values are
soft-anti-affinity
andsoft-affinity
. The default value issoft-anti-affinity
. For more information about affinity and anti-affinity, see the official Kubernetes documentation. - autoscale
Max numberNodes - autoscale
Min numberNodes - availability
Zone string - Pool segment where all nodes of the node group are located. Changing this creates a new node group. Learn more about available pool segments in the Availability matrix.
- cluster
Id string - Unique identifier of the associated Managed Kubernetes cluster. Changing this creates a new node group. Retrieved from the selectel.MksClusterV1 resource.
- cpus number
- Number of vCPUs for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - enable
Autoscale boolean - Enables or disables autoscaling of the node group. Boolean flag, the default value is false.
autoscale_min_nodes
andautoscale_max_nodes
must be specified. Learn more about Autoscaling. - flavor
Id string - Unique identifier of an OpenStack flavor for all nodes in the node group. Changing this creates a new node group. Learn more about Flavors.
- install
Nvidia booleanDevice Plugin - Enables or disables installation of the NVIDIA Device Plugin and GPU drivers.
Boolean flag: - keypair
Name string - Name of the SSH key added to all nodes. Changing this creates a new node group.
- labels {[key: string]: string}
- List of Kubernetes labels applied to each node in the node group.
- local
Volume boolean - Specifies if nodes use a local volume. Cannot be used with the flavors that have specifications for a local volume. Changing this creates a new node group. Boolean flag, the default value is false.
- mks
Nodegroup stringV1Id - nodegroup
Type string - Type of the node group. Available values are
STANDARD
andGPU
. - nodes
Mks
Nodegroup V1Node[] - List of nodes in the node group.
- nodes
Count number - Number of worker nodes in the node group. Changing this resizes the node group if
enable_autoscale
is false. - preemptible boolean
- Enables or disables the use of preemptible nodes for the node group. Boolean flag, the default value is false. Learn more about Preemptible node groups.
- project
Id string - Unique identifier of the associated project. Changing this creates a new node group. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- ram
Mb number - Amount of RAM in MB for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - region string
- Pool where the cluster is located, for example,
ru-7
. Changing this creates a new node group. Learn more about available pools in the Availability matrix. - status string
- taints
Mks
Nodegroup V1Taint[] - List of Kubernetes taints applied to each node in the node group. Contains a key-value pair and an effect applied for the taint. Available effects are
NoSchedule
,PreferNoSchedule
, andNoExecute
. Learn more about Taints. - timeouts
Mks
Nodegroup V1Timeouts - user
Data string - Base64-encoded script that worker nodes run on the first boot. Changing this creates a new node group. Learn more about User data.
- volume
Gb number - Volume size in GB for each node. Can be skipped only when flavor_id is set and local_volume is
true
. Changing this creates a new node group. Learn more about Configurations. - volume
Type string - Type of an OpenStack Block Storage volume for each node. Can be skipped only when
flavor_id
is set and the flavor properties contain additional specifications for a local volume. Changing this creates a new node group. Available volume types arefast
,basic
, anduniversal
. The format is<volume_type>.<availability_zone>
. Learn more about Network volumes.
- affinity_
policy str - Specifies affinity policy of the nodes. Changing this creates a new node group. Available values are
soft-anti-affinity
andsoft-affinity
. The default value issoft-anti-affinity
. For more information about affinity and anti-affinity, see the official Kubernetes documentation. - autoscale_
max_ floatnodes - autoscale_
min_ floatnodes - availability_
zone str - Pool segment where all nodes of the node group are located. Changing this creates a new node group. Learn more about available pool segments in the Availability matrix.
- cluster_
id str - Unique identifier of the associated Managed Kubernetes cluster. Changing this creates a new node group. Retrieved from the selectel.MksClusterV1 resource.
- cpus float
- Number of vCPUs for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - enable_
autoscale bool - Enables or disables autoscaling of the node group. Boolean flag, the default value is false.
autoscale_min_nodes
andautoscale_max_nodes
must be specified. Learn more about Autoscaling. - flavor_
id str - Unique identifier of an OpenStack flavor for all nodes in the node group. Changing this creates a new node group. Learn more about Flavors.
- install_
nvidia_ booldevice_ plugin - Enables or disables installation of the NVIDIA Device Plugin and GPU drivers.
Boolean flag: - keypair_
name str - Name of the SSH key added to all nodes. Changing this creates a new node group.
- labels Mapping[str, str]
- List of Kubernetes labels applied to each node in the node group.
- local_
volume bool - Specifies if nodes use a local volume. Cannot be used with the flavors that have specifications for a local volume. Changing this creates a new node group. Boolean flag, the default value is false.
- mks_
nodegroup_ strv1_ id - nodegroup_
type str - Type of the node group. Available values are
STANDARD
andGPU
. - nodes
Sequence[Mks
Nodegroup V1Node Args] - List of nodes in the node group.
- nodes_
count float - Number of worker nodes in the node group. Changing this resizes the node group if
enable_autoscale
is false. - preemptible bool
- Enables or disables the use of preemptible nodes for the node group. Boolean flag, the default value is false. Learn more about Preemptible node groups.
- project_
id str - Unique identifier of the associated project. Changing this creates a new node group. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- ram_
mb float - Amount of RAM in MB for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - region str
- Pool where the cluster is located, for example,
ru-7
. Changing this creates a new node group. Learn more about available pools in the Availability matrix. - status str
- taints
Sequence[Mks
Nodegroup V1Taint Args] - List of Kubernetes taints applied to each node in the node group. Contains a key-value pair and an effect applied for the taint. Available effects are
NoSchedule
,PreferNoSchedule
, andNoExecute
. Learn more about Taints. - timeouts
Mks
Nodegroup V1Timeouts Args - user_
data str - Base64-encoded script that worker nodes run on the first boot. Changing this creates a new node group. Learn more about User data.
- volume_
gb float - Volume size in GB for each node. Can be skipped only when flavor_id is set and local_volume is
true
. Changing this creates a new node group. Learn more about Configurations. - volume_
type str - Type of an OpenStack Block Storage volume for each node. Can be skipped only when
flavor_id
is set and the flavor properties contain additional specifications for a local volume. Changing this creates a new node group. Available volume types arefast
,basic
, anduniversal
. The format is<volume_type>.<availability_zone>
. Learn more about Network volumes.
- affinity
Policy String - Specifies affinity policy of the nodes. Changing this creates a new node group. Available values are
soft-anti-affinity
andsoft-affinity
. The default value issoft-anti-affinity
. For more information about affinity and anti-affinity, see the official Kubernetes documentation. - autoscale
Max NumberNodes - autoscale
Min NumberNodes - availability
Zone String - Pool segment where all nodes of the node group are located. Changing this creates a new node group. Learn more about available pool segments in the Availability matrix.
- cluster
Id String - Unique identifier of the associated Managed Kubernetes cluster. Changing this creates a new node group. Retrieved from the selectel.MksClusterV1 resource.
- cpus Number
- Number of vCPUs for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - enable
Autoscale Boolean - Enables or disables autoscaling of the node group. Boolean flag, the default value is false.
autoscale_min_nodes
andautoscale_max_nodes
must be specified. Learn more about Autoscaling. - flavor
Id String - Unique identifier of an OpenStack flavor for all nodes in the node group. Changing this creates a new node group. Learn more about Flavors.
- install
Nvidia BooleanDevice Plugin - Enables or disables installation of the NVIDIA Device Plugin and GPU drivers.
Boolean flag: - keypair
Name String - Name of the SSH key added to all nodes. Changing this creates a new node group.
- labels Map<String>
- List of Kubernetes labels applied to each node in the node group.
- local
Volume Boolean - Specifies if nodes use a local volume. Cannot be used with the flavors that have specifications for a local volume. Changing this creates a new node group. Boolean flag, the default value is false.
- mks
Nodegroup StringV1Id - nodegroup
Type String - Type of the node group. Available values are
STANDARD
andGPU
. - nodes List<Property Map>
- List of nodes in the node group.
- nodes
Count Number - Number of worker nodes in the node group. Changing this resizes the node group if
enable_autoscale
is false. - preemptible Boolean
- Enables or disables the use of preemptible nodes for the node group. Boolean flag, the default value is false. Learn more about Preemptible node groups.
- project
Id String - Unique identifier of the associated project. Changing this creates a new node group. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- ram
Mb Number - Amount of RAM in MB for each node. Can be skipped only when
flavor_id
is set. Changing this creates a new node group. Learn more about Configurations. - region String
- Pool where the cluster is located, for example,
ru-7
. Changing this creates a new node group. Learn more about available pools in the Availability matrix. - status String
- taints List<Property Map>
- List of Kubernetes taints applied to each node in the node group. Contains a key-value pair and an effect applied for the taint. Available effects are
NoSchedule
,PreferNoSchedule
, andNoExecute
. Learn more about Taints. - timeouts Property Map
- user
Data String - Base64-encoded script that worker nodes run on the first boot. Changing this creates a new node group. Learn more about User data.
- volume
Gb Number - Volume size in GB for each node. Can be skipped only when flavor_id is set and local_volume is
true
. Changing this creates a new node group. Learn more about Configurations. - volume
Type String - Type of an OpenStack Block Storage volume for each node. Can be skipped only when
flavor_id
is set and the flavor properties contain additional specifications for a local volume. Changing this creates a new node group. Available volume types arefast
,basic
, anduniversal
. The format is<volume_type>.<availability_zone>
. Learn more about Network volumes.
Supporting Types
MksNodegroupV1Node, MksNodegroupV1NodeArgs
MksNodegroupV1Taint, MksNodegroupV1TaintArgs
MksNodegroupV1Timeouts, MksNodegroupV1TimeoutsArgs
Import
You can import a node group:
export OS_DOMAIN_NAME=<account_id>
export OS_USERNAME=
export OS_PASSWORD=
export INFRA_PROJECT_ID=<selectel_project_id>
export INFRA_REGION=<selectel_pool>
$ pulumi import selectel:index/mksNodegroupV1:MksNodegroupV1 nodegroup_1 <cluster_id>/<nodegroup_id>
where:
<account_id>
— Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.<username>
— Name of the service user. To get the name, in the Control panel, go to Identity & Access Management ⟶ User management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service users.<password>
— Password of the service user.<selectel_project_id>
— Unique identifier of the associated project. To get the ID, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project. Learn more about Projects.<selectel_pool>
— Pool where the cluster is located, for example,ru-7
. To get information about the pool, in the Control panel, go to Cloud Platform ⟶ Kubernetes. The pool is in the Pool column.<cluster_id>
— Unique identifier of the cluster, for example,b311ce58-2658-46b5-b733-7a0f418703f2
. To get the cluster ID, in the Control panel, go to Cloud Platform ⟶ Kubernetes ⟶ the cluster page ⟶ copy the ID at the top of the page under the cluster name, near the region and pool.<nodegroup_id>
— Unique identifier of the node group, for example,63ed5342-b22c-4c7a-9d41-c1fe4a142c13
. To get the node group ID, in the Control panel, go to Cloud Platform ⟶ Kubernetes. Click the required cluster. The node group ID is at the top of the node group card, near the pool.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectel
Terraform Provider.