yandex.KubernetesNodeGroup
Explore with Pulumi AI
Creates a Yandex Kubernetes Node Group.
Example Usage
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var myNodeGroup = new Yandex.KubernetesNodeGroup("myNodeGroup", new Yandex.KubernetesNodeGroupArgs
{
AllocationPolicy = new Yandex.Inputs.KubernetesNodeGroupAllocationPolicyArgs
{
Locations =
{
new Yandex.Inputs.KubernetesNodeGroupAllocationPolicyLocationArgs
{
Zone = "ru-central1-a",
},
},
},
ClusterId = yandex_kubernetes_cluster.My_cluster.Id,
Description = "description",
InstanceTemplate = new Yandex.Inputs.KubernetesNodeGroupInstanceTemplateArgs
{
BootDisk = new Yandex.Inputs.KubernetesNodeGroupInstanceTemplateBootDiskArgs
{
Size = 64,
Type = "network-hdd",
},
ContainerRuntime = new Yandex.Inputs.KubernetesNodeGroupInstanceTemplateContainerRuntimeArgs
{
Type = "containerd",
},
NetworkInterfaces =
{
new Yandex.Inputs.KubernetesNodeGroupInstanceTemplateNetworkInterfaceArgs
{
Nat = true,
SubnetIds =
{
yandex_vpc_subnet.My_subnet.Id,
},
},
},
PlatformId = "standard-v2",
Resources = new Yandex.Inputs.KubernetesNodeGroupInstanceTemplateResourcesArgs
{
Cores = 2,
Memory = 2,
},
SchedulingPolicy = new Yandex.Inputs.KubernetesNodeGroupInstanceTemplateSchedulingPolicyArgs
{
Preemptible = false,
},
},
Labels =
{
{ "key", "value" },
},
MaintenancePolicy = new Yandex.Inputs.KubernetesNodeGroupMaintenancePolicyArgs
{
AutoRepair = true,
AutoUpgrade = true,
MaintenanceWindows =
{
new Yandex.Inputs.KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs
{
Day = "monday",
Duration = "3h",
StartTime = "15:00",
},
new Yandex.Inputs.KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs
{
Day = "friday",
Duration = "4h30m",
StartTime = "10:00",
},
},
},
ScalePolicy = new Yandex.Inputs.KubernetesNodeGroupScalePolicyArgs
{
FixedScale = new Yandex.Inputs.KubernetesNodeGroupScalePolicyFixedScaleArgs
{
Size = 1,
},
},
Version = "1.17",
});
}
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := yandex.NewKubernetesNodeGroup(ctx, "myNodeGroup", &yandex.KubernetesNodeGroupArgs{
AllocationPolicy: &KubernetesNodeGroupAllocationPolicyArgs{
Locations: KubernetesNodeGroupAllocationPolicyLocationArray{
&KubernetesNodeGroupAllocationPolicyLocationArgs{
Zone: pulumi.String("ru-central1-a"),
},
},
},
ClusterId: pulumi.Any(yandex_kubernetes_cluster.My_cluster.Id),
Description: pulumi.String("description"),
InstanceTemplate: &KubernetesNodeGroupInstanceTemplateArgs{
BootDisk: &KubernetesNodeGroupInstanceTemplateBootDiskArgs{
Size: pulumi.Int(64),
Type: pulumi.String("network-hdd"),
},
ContainerRuntime: &KubernetesNodeGroupInstanceTemplateContainerRuntimeArgs{
Type: pulumi.String("containerd"),
},
NetworkInterfaces: KubernetesNodeGroupInstanceTemplateNetworkInterfaceArray{
&KubernetesNodeGroupInstanceTemplateNetworkInterfaceArgs{
Nat: pulumi.Bool(true),
SubnetIds: pulumi.StringArray{
pulumi.Any(yandex_vpc_subnet.My_subnet.Id),
},
},
},
PlatformId: pulumi.String("standard-v2"),
Resources: &KubernetesNodeGroupInstanceTemplateResourcesArgs{
Cores: pulumi.Int(2),
Memory: pulumi.Float64(2),
},
SchedulingPolicy: &KubernetesNodeGroupInstanceTemplateSchedulingPolicyArgs{
Preemptible: pulumi.Bool(false),
},
},
Labels: pulumi.StringMap{
"key": pulumi.String("value"),
},
MaintenancePolicy: &KubernetesNodeGroupMaintenancePolicyArgs{
AutoRepair: pulumi.Bool(true),
AutoUpgrade: pulumi.Bool(true),
MaintenanceWindows: KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArray{
&KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs{
Day: pulumi.String("monday"),
Duration: pulumi.String("3h"),
StartTime: pulumi.String("15:00"),
},
&KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs{
Day: pulumi.String("friday"),
Duration: pulumi.String("4h30m"),
StartTime: pulumi.String("10:00"),
},
},
},
ScalePolicy: &KubernetesNodeGroupScalePolicyArgs{
FixedScale: &KubernetesNodeGroupScalePolicyFixedScaleArgs{
Size: pulumi.Int(1),
},
},
Version: pulumi.String("1.17"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
my_node_group = yandex.KubernetesNodeGroup("myNodeGroup",
allocation_policy=yandex.KubernetesNodeGroupAllocationPolicyArgs(
locations=[yandex.KubernetesNodeGroupAllocationPolicyLocationArgs(
zone="ru-central1-a",
)],
),
cluster_id=yandex_kubernetes_cluster["my_cluster"]["id"],
description="description",
instance_template=yandex.KubernetesNodeGroupInstanceTemplateArgs(
boot_disk=yandex.KubernetesNodeGroupInstanceTemplateBootDiskArgs(
size=64,
type="network-hdd",
),
container_runtime=yandex.KubernetesNodeGroupInstanceTemplateContainerRuntimeArgs(
type="containerd",
),
network_interfaces=[yandex.KubernetesNodeGroupInstanceTemplateNetworkInterfaceArgs(
nat=True,
subnet_ids=[yandex_vpc_subnet["my_subnet"]["id"]],
)],
platform_id="standard-v2",
resources=yandex.KubernetesNodeGroupInstanceTemplateResourcesArgs(
cores=2,
memory=2,
),
scheduling_policy=yandex.KubernetesNodeGroupInstanceTemplateSchedulingPolicyArgs(
preemptible=False,
),
),
labels={
"key": "value",
},
maintenance_policy=yandex.KubernetesNodeGroupMaintenancePolicyArgs(
auto_repair=True,
auto_upgrade=True,
maintenance_windows=[
yandex.KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs(
day="monday",
duration="3h",
start_time="15:00",
),
yandex.KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs(
day="friday",
duration="4h30m",
start_time="10:00",
),
],
),
scale_policy=yandex.KubernetesNodeGroupScalePolicyArgs(
fixed_scale=yandex.KubernetesNodeGroupScalePolicyFixedScaleArgs(
size=1,
),
),
version="1.17")
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const myNodeGroup = new yandex.KubernetesNodeGroup("my_node_group", {
allocationPolicy: {
locations: [{
zone: "ru-central1-a",
}],
},
clusterId: yandex_kubernetes_cluster_my_cluster.id,
description: "description",
instanceTemplate: {
bootDisk: {
size: 64,
type: "network-hdd",
},
containerRuntime: {
type: "containerd",
},
networkInterfaces: [{
nat: true,
subnetIds: [yandex_vpc_subnet_my_subnet.id],
}],
platformId: "standard-v2",
resources: {
cores: 2,
memory: 2,
},
schedulingPolicy: {
preemptible: false,
},
},
labels: {
key: "value",
},
maintenancePolicy: {
autoRepair: true,
autoUpgrade: true,
maintenanceWindows: [
{
day: "monday",
duration: "3h",
startTime: "15:00",
},
{
day: "friday",
duration: "4h30m",
startTime: "10:00",
},
],
},
scalePolicy: {
fixedScale: {
size: 1,
},
},
version: "1.17",
});
Coming soon!
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,
instance_template: Optional[KubernetesNodeGroupInstanceTemplateArgs] = None,
scale_policy: Optional[KubernetesNodeGroupScalePolicyArgs] = None,
cluster_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
deploy_policy: Optional[KubernetesNodeGroupDeployPolicyArgs] = None,
allocation_policy: Optional[KubernetesNodeGroupAllocationPolicyArgs] = None,
maintenance_policy: Optional[KubernetesNodeGroupMaintenancePolicyArgs] = None,
name: Optional[str] = None,
node_labels: Optional[Mapping[str, str]] = None,
node_taints: Optional[Sequence[str]] = None,
allowed_unsafe_sysctls: Optional[Sequence[str]] = None,
version: 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: yandex: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 Yandex.KubernetesNodeGroup("kubernetesNodeGroupResource", new()
{
InstanceTemplate = new Yandex.Inputs.KubernetesNodeGroupInstanceTemplateArgs
{
BootDisk = new Yandex.Inputs.KubernetesNodeGroupInstanceTemplateBootDiskArgs
{
Size = 0,
Type = "string",
},
ContainerRuntime = new Yandex.Inputs.KubernetesNodeGroupInstanceTemplateContainerRuntimeArgs
{
Type = "string",
},
Metadata =
{
{ "string", "string" },
},
NetworkAccelerationType = "string",
NetworkInterfaces = new[]
{
new Yandex.Inputs.KubernetesNodeGroupInstanceTemplateNetworkInterfaceArgs
{
SubnetIds = new[]
{
"string",
},
Ipv4 = false,
Ipv6 = false,
Nat = false,
SecurityGroupIds = new[]
{
"string",
},
},
},
PlacementPolicy = new Yandex.Inputs.KubernetesNodeGroupInstanceTemplatePlacementPolicyArgs
{
PlacementGroupId = "string",
},
PlatformId = "string",
Resources = new Yandex.Inputs.KubernetesNodeGroupInstanceTemplateResourcesArgs
{
CoreFraction = 0,
Cores = 0,
Gpus = 0,
Memory = 0,
},
SchedulingPolicy = new Yandex.Inputs.KubernetesNodeGroupInstanceTemplateSchedulingPolicyArgs
{
Preemptible = false,
},
},
ScalePolicy = new Yandex.Inputs.KubernetesNodeGroupScalePolicyArgs
{
AutoScale = new Yandex.Inputs.KubernetesNodeGroupScalePolicyAutoScaleArgs
{
Initial = 0,
Max = 0,
Min = 0,
},
FixedScale = new Yandex.Inputs.KubernetesNodeGroupScalePolicyFixedScaleArgs
{
Size = 0,
},
},
ClusterId = "string",
Labels =
{
{ "string", "string" },
},
Description = "string",
DeployPolicy = new Yandex.Inputs.KubernetesNodeGroupDeployPolicyArgs
{
MaxExpansion = 0,
MaxUnavailable = 0,
},
AllocationPolicy = new Yandex.Inputs.KubernetesNodeGroupAllocationPolicyArgs
{
Locations = new[]
{
new Yandex.Inputs.KubernetesNodeGroupAllocationPolicyLocationArgs
{
Zone = "string",
},
},
},
MaintenancePolicy = new Yandex.Inputs.KubernetesNodeGroupMaintenancePolicyArgs
{
AutoRepair = false,
AutoUpgrade = false,
MaintenanceWindows = new[]
{
new Yandex.Inputs.KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs
{
Duration = "string",
StartTime = "string",
Day = "string",
},
},
},
Name = "string",
NodeLabels =
{
{ "string", "string" },
},
NodeTaints = new[]
{
"string",
},
AllowedUnsafeSysctls = new[]
{
"string",
},
Version = "string",
});
example, err := yandex.NewKubernetesNodeGroup(ctx, "kubernetesNodeGroupResource", &yandex.KubernetesNodeGroupArgs{
InstanceTemplate: &yandex.KubernetesNodeGroupInstanceTemplateArgs{
BootDisk: &yandex.KubernetesNodeGroupInstanceTemplateBootDiskArgs{
Size: pulumi.Int(0),
Type: pulumi.String("string"),
},
ContainerRuntime: &yandex.KubernetesNodeGroupInstanceTemplateContainerRuntimeArgs{
Type: pulumi.String("string"),
},
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
NetworkAccelerationType: pulumi.String("string"),
NetworkInterfaces: yandex.KubernetesNodeGroupInstanceTemplateNetworkInterfaceArray{
&yandex.KubernetesNodeGroupInstanceTemplateNetworkInterfaceArgs{
SubnetIds: pulumi.StringArray{
pulumi.String("string"),
},
Ipv4: pulumi.Bool(false),
Ipv6: pulumi.Bool(false),
Nat: pulumi.Bool(false),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
},
},
PlacementPolicy: &yandex.KubernetesNodeGroupInstanceTemplatePlacementPolicyArgs{
PlacementGroupId: pulumi.String("string"),
},
PlatformId: pulumi.String("string"),
Resources: &yandex.KubernetesNodeGroupInstanceTemplateResourcesArgs{
CoreFraction: pulumi.Int(0),
Cores: pulumi.Int(0),
Gpus: pulumi.Int(0),
Memory: pulumi.Float64(0),
},
SchedulingPolicy: &yandex.KubernetesNodeGroupInstanceTemplateSchedulingPolicyArgs{
Preemptible: pulumi.Bool(false),
},
},
ScalePolicy: &yandex.KubernetesNodeGroupScalePolicyArgs{
AutoScale: &yandex.KubernetesNodeGroupScalePolicyAutoScaleArgs{
Initial: pulumi.Int(0),
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
FixedScale: &yandex.KubernetesNodeGroupScalePolicyFixedScaleArgs{
Size: pulumi.Int(0),
},
},
ClusterId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DeployPolicy: &yandex.KubernetesNodeGroupDeployPolicyArgs{
MaxExpansion: pulumi.Int(0),
MaxUnavailable: pulumi.Int(0),
},
AllocationPolicy: &yandex.KubernetesNodeGroupAllocationPolicyArgs{
Locations: yandex.KubernetesNodeGroupAllocationPolicyLocationArray{
&yandex.KubernetesNodeGroupAllocationPolicyLocationArgs{
Zone: pulumi.String("string"),
},
},
},
MaintenancePolicy: &yandex.KubernetesNodeGroupMaintenancePolicyArgs{
AutoRepair: pulumi.Bool(false),
AutoUpgrade: pulumi.Bool(false),
MaintenanceWindows: yandex.KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArray{
&yandex.KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs{
Duration: pulumi.String("string"),
StartTime: pulumi.String("string"),
Day: pulumi.String("string"),
},
},
},
Name: pulumi.String("string"),
NodeLabels: pulumi.StringMap{
"string": pulumi.String("string"),
},
NodeTaints: pulumi.StringArray{
pulumi.String("string"),
},
AllowedUnsafeSysctls: pulumi.StringArray{
pulumi.String("string"),
},
Version: pulumi.String("string"),
})
var kubernetesNodeGroupResource = new KubernetesNodeGroup("kubernetesNodeGroupResource", KubernetesNodeGroupArgs.builder()
.instanceTemplate(KubernetesNodeGroupInstanceTemplateArgs.builder()
.bootDisk(KubernetesNodeGroupInstanceTemplateBootDiskArgs.builder()
.size(0)
.type("string")
.build())
.containerRuntime(KubernetesNodeGroupInstanceTemplateContainerRuntimeArgs.builder()
.type("string")
.build())
.metadata(Map.of("string", "string"))
.networkAccelerationType("string")
.networkInterfaces(KubernetesNodeGroupInstanceTemplateNetworkInterfaceArgs.builder()
.subnetIds("string")
.ipv4(false)
.ipv6(false)
.nat(false)
.securityGroupIds("string")
.build())
.placementPolicy(KubernetesNodeGroupInstanceTemplatePlacementPolicyArgs.builder()
.placementGroupId("string")
.build())
.platformId("string")
.resources(KubernetesNodeGroupInstanceTemplateResourcesArgs.builder()
.coreFraction(0)
.cores(0)
.gpus(0)
.memory(0)
.build())
.schedulingPolicy(KubernetesNodeGroupInstanceTemplateSchedulingPolicyArgs.builder()
.preemptible(false)
.build())
.build())
.scalePolicy(KubernetesNodeGroupScalePolicyArgs.builder()
.autoScale(KubernetesNodeGroupScalePolicyAutoScaleArgs.builder()
.initial(0)
.max(0)
.min(0)
.build())
.fixedScale(KubernetesNodeGroupScalePolicyFixedScaleArgs.builder()
.size(0)
.build())
.build())
.clusterId("string")
.labels(Map.of("string", "string"))
.description("string")
.deployPolicy(KubernetesNodeGroupDeployPolicyArgs.builder()
.maxExpansion(0)
.maxUnavailable(0)
.build())
.allocationPolicy(KubernetesNodeGroupAllocationPolicyArgs.builder()
.locations(KubernetesNodeGroupAllocationPolicyLocationArgs.builder()
.zone("string")
.build())
.build())
.maintenancePolicy(KubernetesNodeGroupMaintenancePolicyArgs.builder()
.autoRepair(false)
.autoUpgrade(false)
.maintenanceWindows(KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs.builder()
.duration("string")
.startTime("string")
.day("string")
.build())
.build())
.name("string")
.nodeLabels(Map.of("string", "string"))
.nodeTaints("string")
.allowedUnsafeSysctls("string")
.version("string")
.build());
kubernetes_node_group_resource = yandex.KubernetesNodeGroup("kubernetesNodeGroupResource",
instance_template={
"boot_disk": {
"size": 0,
"type": "string",
},
"container_runtime": {
"type": "string",
},
"metadata": {
"string": "string",
},
"network_acceleration_type": "string",
"network_interfaces": [{
"subnet_ids": ["string"],
"ipv4": False,
"ipv6": False,
"nat": False,
"security_group_ids": ["string"],
}],
"placement_policy": {
"placement_group_id": "string",
},
"platform_id": "string",
"resources": {
"core_fraction": 0,
"cores": 0,
"gpus": 0,
"memory": 0,
},
"scheduling_policy": {
"preemptible": False,
},
},
scale_policy={
"auto_scale": {
"initial": 0,
"max": 0,
"min": 0,
},
"fixed_scale": {
"size": 0,
},
},
cluster_id="string",
labels={
"string": "string",
},
description="string",
deploy_policy={
"max_expansion": 0,
"max_unavailable": 0,
},
allocation_policy={
"locations": [{
"zone": "string",
}],
},
maintenance_policy={
"auto_repair": False,
"auto_upgrade": False,
"maintenance_windows": [{
"duration": "string",
"start_time": "string",
"day": "string",
}],
},
name="string",
node_labels={
"string": "string",
},
node_taints=["string"],
allowed_unsafe_sysctls=["string"],
version="string")
const kubernetesNodeGroupResource = new yandex.KubernetesNodeGroup("kubernetesNodeGroupResource", {
instanceTemplate: {
bootDisk: {
size: 0,
type: "string",
},
containerRuntime: {
type: "string",
},
metadata: {
string: "string",
},
networkAccelerationType: "string",
networkInterfaces: [{
subnetIds: ["string"],
ipv4: false,
ipv6: false,
nat: false,
securityGroupIds: ["string"],
}],
placementPolicy: {
placementGroupId: "string",
},
platformId: "string",
resources: {
coreFraction: 0,
cores: 0,
gpus: 0,
memory: 0,
},
schedulingPolicy: {
preemptible: false,
},
},
scalePolicy: {
autoScale: {
initial: 0,
max: 0,
min: 0,
},
fixedScale: {
size: 0,
},
},
clusterId: "string",
labels: {
string: "string",
},
description: "string",
deployPolicy: {
maxExpansion: 0,
maxUnavailable: 0,
},
allocationPolicy: {
locations: [{
zone: "string",
}],
},
maintenancePolicy: {
autoRepair: false,
autoUpgrade: false,
maintenanceWindows: [{
duration: "string",
startTime: "string",
day: "string",
}],
},
name: "string",
nodeLabels: {
string: "string",
},
nodeTaints: ["string"],
allowedUnsafeSysctls: ["string"],
version: "string",
});
type: yandex:KubernetesNodeGroup
properties:
allocationPolicy:
locations:
- zone: string
allowedUnsafeSysctls:
- string
clusterId: string
deployPolicy:
maxExpansion: 0
maxUnavailable: 0
description: string
instanceTemplate:
bootDisk:
size: 0
type: string
containerRuntime:
type: string
metadata:
string: string
networkAccelerationType: string
networkInterfaces:
- ipv4: false
ipv6: false
nat: false
securityGroupIds:
- string
subnetIds:
- string
placementPolicy:
placementGroupId: string
platformId: string
resources:
coreFraction: 0
cores: 0
gpus: 0
memory: 0
schedulingPolicy:
preemptible: false
labels:
string: string
maintenancePolicy:
autoRepair: false
autoUpgrade: false
maintenanceWindows:
- day: string
duration: string
startTime: string
name: string
nodeLabels:
string: string
nodeTaints:
- string
scalePolicy:
autoScale:
initial: 0
max: 0
min: 0
fixedScale:
size: 0
version: 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 - The ID of the Kubernetes cluster that this node group belongs to.
- Instance
Template KubernetesNode Group Instance Template - Template used to create compute instances in this Kubernetes node group. The structure is documented below.
- Scale
Policy KubernetesNode Group Scale Policy - Scale policy of the node group. The structure is documented below.
- Allocation
Policy KubernetesNode Group Allocation Policy - This argument specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- Allowed
Unsafe List<string>Sysctls - A list of allowed unsafe sysctl parameters for this node group. For more details see documentation.
- Deploy
Policy KubernetesNode Group Deploy Policy - Deploy policy of the node group. The structure is documented below.
- Description string
- A description of the Kubernetes node group.
- Labels Dictionary<string, string>
- A set of key/value label pairs assigned to the Kubernetes node group.
- Maintenance
Policy KubernetesNode Group Maintenance Policy - (Computed) Maintenance policy for this Kubernetes node group. If policy is omitted, automatic revision upgrades are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- Name string
- Name of a specific Kubernetes node group.
- Node
Labels Dictionary<string, string> - A set of key/value label pairs, that are assigned to all the nodes of this Kubernetes node group.
- Node
Taints List<string> - A list of Kubernetes taints, that are applied to all the nodes of this Kubernetes node group.
- Version string
- Version of Kubernetes that will be used for Kubernetes node group.
- Cluster
Id string - The ID of the Kubernetes cluster that this node group belongs to.
- Instance
Template KubernetesNode Group Instance Template Args - Template used to create compute instances in this Kubernetes node group. The structure is documented below.
- Scale
Policy KubernetesNode Group Scale Policy Args - Scale policy of the node group. The structure is documented below.
- Allocation
Policy KubernetesNode Group Allocation Policy Args - This argument specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- Allowed
Unsafe []stringSysctls - A list of allowed unsafe sysctl parameters for this node group. For more details see documentation.
- Deploy
Policy KubernetesNode Group Deploy Policy Args - Deploy policy of the node group. The structure is documented below.
- Description string
- A description of the Kubernetes node group.
- Labels map[string]string
- A set of key/value label pairs assigned to the Kubernetes node group.
- Maintenance
Policy KubernetesNode Group Maintenance Policy Args - (Computed) Maintenance policy for this Kubernetes node group. If policy is omitted, automatic revision upgrades are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- Name string
- Name of a specific Kubernetes node group.
- Node
Labels map[string]string - A set of key/value label pairs, that are assigned to all the nodes of this Kubernetes node group.
- Node
Taints []string - A list of Kubernetes taints, that are applied to all the nodes of this Kubernetes node group.
- Version string
- Version of Kubernetes that will be used for Kubernetes node group.
- cluster
Id String - The ID of the Kubernetes cluster that this node group belongs to.
- instance
Template KubernetesNode Group Instance Template - Template used to create compute instances in this Kubernetes node group. The structure is documented below.
- scale
Policy KubernetesNode Group Scale Policy - Scale policy of the node group. The structure is documented below.
- allocation
Policy KubernetesNode Group Allocation Policy - This argument specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- allowed
Unsafe List<String>Sysctls - A list of allowed unsafe sysctl parameters for this node group. For more details see documentation.
- deploy
Policy KubernetesNode Group Deploy Policy - Deploy policy of the node group. The structure is documented below.
- description String
- A description of the Kubernetes node group.
- labels Map<String,String>
- A set of key/value label pairs assigned to the Kubernetes node group.
- maintenance
Policy KubernetesNode Group Maintenance Policy - (Computed) Maintenance policy for this Kubernetes node group. If policy is omitted, automatic revision upgrades are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- name String
- Name of a specific Kubernetes node group.
- node
Labels Map<String,String> - A set of key/value label pairs, that are assigned to all the nodes of this Kubernetes node group.
- node
Taints List<String> - A list of Kubernetes taints, that are applied to all the nodes of this Kubernetes node group.
- version String
- Version of Kubernetes that will be used for Kubernetes node group.
- cluster
Id string - The ID of the Kubernetes cluster that this node group belongs to.
- instance
Template KubernetesNode Group Instance Template - Template used to create compute instances in this Kubernetes node group. The structure is documented below.
- scale
Policy KubernetesNode Group Scale Policy - Scale policy of the node group. The structure is documented below.
- allocation
Policy KubernetesNode Group Allocation Policy - This argument specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- allowed
Unsafe string[]Sysctls - A list of allowed unsafe sysctl parameters for this node group. For more details see documentation.
- deploy
Policy KubernetesNode Group Deploy Policy - Deploy policy of the node group. The structure is documented below.
- description string
- A description of the Kubernetes node group.
- labels {[key: string]: string}
- A set of key/value label pairs assigned to the Kubernetes node group.
- maintenance
Policy KubernetesNode Group Maintenance Policy - (Computed) Maintenance policy for this Kubernetes node group. If policy is omitted, automatic revision upgrades are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- name string
- Name of a specific Kubernetes node group.
- node
Labels {[key: string]: string} - A set of key/value label pairs, that are assigned to all the nodes of this Kubernetes node group.
- node
Taints string[] - A list of Kubernetes taints, that are applied to all the nodes of this Kubernetes node group.
- version string
- Version of Kubernetes that will be used for Kubernetes node group.
- cluster_
id str - The ID of the Kubernetes cluster that this node group belongs to.
- instance_
template KubernetesNode Group Instance Template Args - Template used to create compute instances in this Kubernetes node group. The structure is documented below.
- scale_
policy KubernetesNode Group Scale Policy Args - Scale policy of the node group. The structure is documented below.
- allocation_
policy KubernetesNode Group Allocation Policy Args - This argument specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- allowed_
unsafe_ Sequence[str]sysctls - A list of allowed unsafe sysctl parameters for this node group. For more details see documentation.
- deploy_
policy KubernetesNode Group Deploy Policy Args - Deploy policy of the node group. The structure is documented below.
- description str
- A description of the Kubernetes node group.
- labels Mapping[str, str]
- A set of key/value label pairs assigned to the Kubernetes node group.
- maintenance_
policy KubernetesNode Group Maintenance Policy Args - (Computed) Maintenance policy for this Kubernetes node group. If policy is omitted, automatic revision upgrades are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- name str
- Name of a specific Kubernetes node group.
- node_
labels Mapping[str, str] - A set of key/value label pairs, that are assigned to all the nodes of this Kubernetes node group.
- node_
taints Sequence[str] - A list of Kubernetes taints, that are applied to all the nodes of this Kubernetes node group.
- version str
- Version of Kubernetes that will be used for Kubernetes node group.
- cluster
Id String - The ID of the Kubernetes cluster that this node group belongs to.
- instance
Template Property Map - Template used to create compute instances in this Kubernetes node group. The structure is documented below.
- scale
Policy Property Map - Scale policy of the node group. The structure is documented below.
- allocation
Policy Property Map - This argument specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- allowed
Unsafe List<String>Sysctls - A list of allowed unsafe sysctl parameters for this node group. For more details see documentation.
- deploy
Policy Property Map - Deploy policy of the node group. The structure is documented below.
- description String
- A description of the Kubernetes node group.
- labels Map<String>
- A set of key/value label pairs assigned to the Kubernetes node group.
- maintenance
Policy Property Map - (Computed) Maintenance policy for this Kubernetes node group. If policy is omitted, automatic revision upgrades are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- name String
- Name of a specific Kubernetes node group.
- node
Labels Map<String> - A set of key/value label pairs, that are assigned to all the nodes of this Kubernetes node group.
- node
Taints List<String> - A list of Kubernetes taints, that are applied to all the nodes of this Kubernetes node group.
- version String
- Version of Kubernetes that will be used for Kubernetes node group.
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesNodeGroup resource produces the following output properties:
- Created
At string - (Computed) The Kubernetes node group creation timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Group stringId - ID of instance group that is used to manage this Kubernetes node group.
- Status string
- (Computed) Status of the Kubernetes node group.
- Version
Infos List<KubernetesNode Group Version Info> - Information about Kubernetes node group version. The structure is documented below.
- Created
At string - (Computed) The Kubernetes node group creation timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Group stringId - ID of instance group that is used to manage this Kubernetes node group.
- Status string
- (Computed) Status of the Kubernetes node group.
- Version
Infos []KubernetesNode Group Version Info - Information about Kubernetes node group version. The structure is documented below.
- created
At String - (Computed) The Kubernetes node group creation timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Group StringId - ID of instance group that is used to manage this Kubernetes node group.
- status String
- (Computed) Status of the Kubernetes node group.
- version
Infos List<KubernetesNode Group Version Info> - Information about Kubernetes node group version. The structure is documented below.
- created
At string - (Computed) The Kubernetes node group creation timestamp.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Group stringId - ID of instance group that is used to manage this Kubernetes node group.
- status string
- (Computed) Status of the Kubernetes node group.
- version
Infos KubernetesNode Group Version Info[] - Information about Kubernetes node group version. The structure is documented below.
- created_
at str - (Computed) The Kubernetes node group creation timestamp.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
group_ strid - ID of instance group that is used to manage this Kubernetes node group.
- status str
- (Computed) Status of the Kubernetes node group.
- version_
infos Sequence[KubernetesNode Group Version Info] - Information about Kubernetes node group version. The structure is documented below.
- created
At String - (Computed) The Kubernetes node group creation timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Group StringId - ID of instance group that is used to manage this Kubernetes node group.
- status String
- (Computed) Status of the Kubernetes node group.
- version
Infos List<Property Map> - Information about Kubernetes node group version. The structure is documented below.
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,
allocation_policy: Optional[KubernetesNodeGroupAllocationPolicyArgs] = None,
allowed_unsafe_sysctls: Optional[Sequence[str]] = None,
cluster_id: Optional[str] = None,
created_at: Optional[str] = None,
deploy_policy: Optional[KubernetesNodeGroupDeployPolicyArgs] = None,
description: Optional[str] = None,
instance_group_id: Optional[str] = None,
instance_template: Optional[KubernetesNodeGroupInstanceTemplateArgs] = None,
labels: Optional[Mapping[str, str]] = None,
maintenance_policy: Optional[KubernetesNodeGroupMaintenancePolicyArgs] = None,
name: Optional[str] = None,
node_labels: Optional[Mapping[str, str]] = None,
node_taints: Optional[Sequence[str]] = None,
scale_policy: Optional[KubernetesNodeGroupScalePolicyArgs] = None,
status: Optional[str] = None,
version: Optional[str] = None,
version_infos: Optional[Sequence[KubernetesNodeGroupVersionInfoArgs]] = 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)
Resource lookup is not supported in YAML
- 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.
- Allocation
Policy KubernetesNode Group Allocation Policy - This argument specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- Allowed
Unsafe List<string>Sysctls - A list of allowed unsafe sysctl parameters for this node group. For more details see documentation.
- Cluster
Id string - The ID of the Kubernetes cluster that this node group belongs to.
- Created
At string - (Computed) The Kubernetes node group creation timestamp.
- Deploy
Policy KubernetesNode Group Deploy Policy - Deploy policy of the node group. The structure is documented below.
- Description string
- A description of the Kubernetes node group.
- Instance
Group stringId - ID of instance group that is used to manage this Kubernetes node group.
- Instance
Template KubernetesNode Group Instance Template - Template used to create compute instances in this Kubernetes node group. The structure is documented below.
- Labels Dictionary<string, string>
- A set of key/value label pairs assigned to the Kubernetes node group.
- Maintenance
Policy KubernetesNode Group Maintenance Policy - (Computed) Maintenance policy for this Kubernetes node group. If policy is omitted, automatic revision upgrades are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- Name string
- Name of a specific Kubernetes node group.
- Node
Labels Dictionary<string, string> - A set of key/value label pairs, that are assigned to all the nodes of this Kubernetes node group.
- Node
Taints List<string> - A list of Kubernetes taints, that are applied to all the nodes of this Kubernetes node group.
- Scale
Policy KubernetesNode Group Scale Policy - Scale policy of the node group. The structure is documented below.
- Status string
- (Computed) Status of the Kubernetes node group.
- Version string
- Version of Kubernetes that will be used for Kubernetes node group.
- Version
Infos List<KubernetesNode Group Version Info> - Information about Kubernetes node group version. The structure is documented below.
- Allocation
Policy KubernetesNode Group Allocation Policy Args - This argument specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- Allowed
Unsafe []stringSysctls - A list of allowed unsafe sysctl parameters for this node group. For more details see documentation.
- Cluster
Id string - The ID of the Kubernetes cluster that this node group belongs to.
- Created
At string - (Computed) The Kubernetes node group creation timestamp.
- Deploy
Policy KubernetesNode Group Deploy Policy Args - Deploy policy of the node group. The structure is documented below.
- Description string
- A description of the Kubernetes node group.
- Instance
Group stringId - ID of instance group that is used to manage this Kubernetes node group.
- Instance
Template KubernetesNode Group Instance Template Args - Template used to create compute instances in this Kubernetes node group. The structure is documented below.
- Labels map[string]string
- A set of key/value label pairs assigned to the Kubernetes node group.
- Maintenance
Policy KubernetesNode Group Maintenance Policy Args - (Computed) Maintenance policy for this Kubernetes node group. If policy is omitted, automatic revision upgrades are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- Name string
- Name of a specific Kubernetes node group.
- Node
Labels map[string]string - A set of key/value label pairs, that are assigned to all the nodes of this Kubernetes node group.
- Node
Taints []string - A list of Kubernetes taints, that are applied to all the nodes of this Kubernetes node group.
- Scale
Policy KubernetesNode Group Scale Policy Args - Scale policy of the node group. The structure is documented below.
- Status string
- (Computed) Status of the Kubernetes node group.
- Version string
- Version of Kubernetes that will be used for Kubernetes node group.
- Version
Infos []KubernetesNode Group Version Info Args - Information about Kubernetes node group version. The structure is documented below.
- allocation
Policy KubernetesNode Group Allocation Policy - This argument specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- allowed
Unsafe List<String>Sysctls - A list of allowed unsafe sysctl parameters for this node group. For more details see documentation.
- cluster
Id String - The ID of the Kubernetes cluster that this node group belongs to.
- created
At String - (Computed) The Kubernetes node group creation timestamp.
- deploy
Policy KubernetesNode Group Deploy Policy - Deploy policy of the node group. The structure is documented below.
- description String
- A description of the Kubernetes node group.
- instance
Group StringId - ID of instance group that is used to manage this Kubernetes node group.
- instance
Template KubernetesNode Group Instance Template - Template used to create compute instances in this Kubernetes node group. The structure is documented below.
- labels Map<String,String>
- A set of key/value label pairs assigned to the Kubernetes node group.
- maintenance
Policy KubernetesNode Group Maintenance Policy - (Computed) Maintenance policy for this Kubernetes node group. If policy is omitted, automatic revision upgrades are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- name String
- Name of a specific Kubernetes node group.
- node
Labels Map<String,String> - A set of key/value label pairs, that are assigned to all the nodes of this Kubernetes node group.
- node
Taints List<String> - A list of Kubernetes taints, that are applied to all the nodes of this Kubernetes node group.
- scale
Policy KubernetesNode Group Scale Policy - Scale policy of the node group. The structure is documented below.
- status String
- (Computed) Status of the Kubernetes node group.
- version String
- Version of Kubernetes that will be used for Kubernetes node group.
- version
Infos List<KubernetesNode Group Version Info> - Information about Kubernetes node group version. The structure is documented below.
- allocation
Policy KubernetesNode Group Allocation Policy - This argument specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- allowed
Unsafe string[]Sysctls - A list of allowed unsafe sysctl parameters for this node group. For more details see documentation.
- cluster
Id string - The ID of the Kubernetes cluster that this node group belongs to.
- created
At string - (Computed) The Kubernetes node group creation timestamp.
- deploy
Policy KubernetesNode Group Deploy Policy - Deploy policy of the node group. The structure is documented below.
- description string
- A description of the Kubernetes node group.
- instance
Group stringId - ID of instance group that is used to manage this Kubernetes node group.
- instance
Template KubernetesNode Group Instance Template - Template used to create compute instances in this Kubernetes node group. The structure is documented below.
- labels {[key: string]: string}
- A set of key/value label pairs assigned to the Kubernetes node group.
- maintenance
Policy KubernetesNode Group Maintenance Policy - (Computed) Maintenance policy for this Kubernetes node group. If policy is omitted, automatic revision upgrades are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- name string
- Name of a specific Kubernetes node group.
- node
Labels {[key: string]: string} - A set of key/value label pairs, that are assigned to all the nodes of this Kubernetes node group.
- node
Taints string[] - A list of Kubernetes taints, that are applied to all the nodes of this Kubernetes node group.
- scale
Policy KubernetesNode Group Scale Policy - Scale policy of the node group. The structure is documented below.
- status string
- (Computed) Status of the Kubernetes node group.
- version string
- Version of Kubernetes that will be used for Kubernetes node group.
- version
Infos KubernetesNode Group Version Info[] - Information about Kubernetes node group version. The structure is documented below.
- allocation_
policy KubernetesNode Group Allocation Policy Args - This argument specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- allowed_
unsafe_ Sequence[str]sysctls - A list of allowed unsafe sysctl parameters for this node group. For more details see documentation.
- cluster_
id str - The ID of the Kubernetes cluster that this node group belongs to.
- created_
at str - (Computed) The Kubernetes node group creation timestamp.
- deploy_
policy KubernetesNode Group Deploy Policy Args - Deploy policy of the node group. The structure is documented below.
- description str
- A description of the Kubernetes node group.
- instance_
group_ strid - ID of instance group that is used to manage this Kubernetes node group.
- instance_
template KubernetesNode Group Instance Template Args - Template used to create compute instances in this Kubernetes node group. The structure is documented below.
- labels Mapping[str, str]
- A set of key/value label pairs assigned to the Kubernetes node group.
- maintenance_
policy KubernetesNode Group Maintenance Policy Args - (Computed) Maintenance policy for this Kubernetes node group. If policy is omitted, automatic revision upgrades are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- name str
- Name of a specific Kubernetes node group.
- node_
labels Mapping[str, str] - A set of key/value label pairs, that are assigned to all the nodes of this Kubernetes node group.
- node_
taints Sequence[str] - A list of Kubernetes taints, that are applied to all the nodes of this Kubernetes node group.
- scale_
policy KubernetesNode Group Scale Policy Args - Scale policy of the node group. The structure is documented below.
- status str
- (Computed) Status of the Kubernetes node group.
- version str
- Version of Kubernetes that will be used for Kubernetes node group.
- version_
infos Sequence[KubernetesNode Group Version Info Args] - Information about Kubernetes node group version. The structure is documented below.
- allocation
Policy Property Map - This argument specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- allowed
Unsafe List<String>Sysctls - A list of allowed unsafe sysctl parameters for this node group. For more details see documentation.
- cluster
Id String - The ID of the Kubernetes cluster that this node group belongs to.
- created
At String - (Computed) The Kubernetes node group creation timestamp.
- deploy
Policy Property Map - Deploy policy of the node group. The structure is documented below.
- description String
- A description of the Kubernetes node group.
- instance
Group StringId - ID of instance group that is used to manage this Kubernetes node group.
- instance
Template Property Map - Template used to create compute instances in this Kubernetes node group. The structure is documented below.
- labels Map<String>
- A set of key/value label pairs assigned to the Kubernetes node group.
- maintenance
Policy Property Map - (Computed) Maintenance policy for this Kubernetes node group. If policy is omitted, automatic revision upgrades are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- name String
- Name of a specific Kubernetes node group.
- node
Labels Map<String> - A set of key/value label pairs, that are assigned to all the nodes of this Kubernetes node group.
- node
Taints List<String> - A list of Kubernetes taints, that are applied to all the nodes of this Kubernetes node group.
- scale
Policy Property Map - Scale policy of the node group. The structure is documented below.
- status String
- (Computed) Status of the Kubernetes node group.
- version String
- Version of Kubernetes that will be used for Kubernetes node group.
- version
Infos List<Property Map> - Information about Kubernetes node group version. The structure is documented below.
Supporting Types
KubernetesNodeGroupAllocationPolicy, KubernetesNodeGroupAllocationPolicyArgs
- Locations
List<Kubernetes
Node Group Allocation Policy Location> - Repeated field, that specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- Locations
[]Kubernetes
Node Group Allocation Policy Location - Repeated field, that specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- locations
List<Kubernetes
Node Group Allocation Policy Location> - Repeated field, that specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- locations
Kubernetes
Node Group Allocation Policy Location[] - Repeated field, that specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- locations
Sequence[Kubernetes
Node Group Allocation Policy Location] - Repeated field, that specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
- locations List<Property Map>
- Repeated field, that specify subnets (zones), that will be used by node group compute instances. The structure is documented below.
KubernetesNodeGroupAllocationPolicyLocation, KubernetesNodeGroupAllocationPolicyLocationArgs
KubernetesNodeGroupDeployPolicy, KubernetesNodeGroupDeployPolicyArgs
- Max
Expansion int - The maximum number of instances that can be temporarily allocated above the group's target size during the update.
- int
- The maximum number of running instances that can be taken offline during update.
- Max
Expansion int - The maximum number of instances that can be temporarily allocated above the group's target size during the update.
- int
- The maximum number of running instances that can be taken offline during update.
- max
Expansion Integer - The maximum number of instances that can be temporarily allocated above the group's target size during the update.
- Integer
- The maximum number of running instances that can be taken offline during update.
- max
Expansion number - The maximum number of instances that can be temporarily allocated above the group's target size during the update.
- number
- The maximum number of running instances that can be taken offline during update.
- max_
expansion int - The maximum number of instances that can be temporarily allocated above the group's target size during the update.
- int
- The maximum number of running instances that can be taken offline during update.
- max
Expansion Number - The maximum number of instances that can be temporarily allocated above the group's target size during the update.
- Number
- The maximum number of running instances that can be taken offline during update.
KubernetesNodeGroupInstanceTemplate, KubernetesNodeGroupInstanceTemplateArgs
- Boot
Disk KubernetesNode Group Instance Template Boot Disk - The specifications for boot disks that will be attached to the instance. The structure is documented below.
- Container
Runtime KubernetesNode Group Instance Template Container Runtime Container runtime configuration. The structure is documented below.
- Metadata Dictionary<string, string>
- The set of metadata
key:value
pairs assigned to this instance template. This includes custom metadata and predefined keys.resources.0.memory
- The memory size allocated to the instance.resources.0.cores
- Number of CPU cores allocated to the instance.resources.0.core_fraction
- Baseline core performance as a percent.resources.0.gpus
- Number of GPU cores allocated to the instance.
- Nat bool
- A public address that can be used to access the internet over NAT.
- Network
Acceleration stringType - Type of network acceleration. Values:
standard
,software_accelerated
. - Network
Interfaces List<KubernetesNode Group Instance Template Network Interface> - An array with the network interfaces that will be attached to the instance. The structure is documented below.
- Placement
Policy KubernetesNode Group Instance Template Placement Policy - The placement policy configuration. The structure is documented below.
- Platform
Id string - The ID of the hardware platform configuration for the node group compute instances.
- Resources
Kubernetes
Node Group Instance Template Resources - Scheduling
Policy KubernetesNode Group Instance Template Scheduling Policy - The scheduling policy for the instances in node group. The structure is documented below.
- Boot
Disk KubernetesNode Group Instance Template Boot Disk - The specifications for boot disks that will be attached to the instance. The structure is documented below.
- Container
Runtime KubernetesNode Group Instance Template Container Runtime Container runtime configuration. The structure is documented below.
- Metadata map[string]string
- The set of metadata
key:value
pairs assigned to this instance template. This includes custom metadata and predefined keys.resources.0.memory
- The memory size allocated to the instance.resources.0.cores
- Number of CPU cores allocated to the instance.resources.0.core_fraction
- Baseline core performance as a percent.resources.0.gpus
- Number of GPU cores allocated to the instance.
- Nat bool
- A public address that can be used to access the internet over NAT.
- Network
Acceleration stringType - Type of network acceleration. Values:
standard
,software_accelerated
. - Network
Interfaces []KubernetesNode Group Instance Template Network Interface - An array with the network interfaces that will be attached to the instance. The structure is documented below.
- Placement
Policy KubernetesNode Group Instance Template Placement Policy - The placement policy configuration. The structure is documented below.
- Platform
Id string - The ID of the hardware platform configuration for the node group compute instances.
- Resources
Kubernetes
Node Group Instance Template Resources - Scheduling
Policy KubernetesNode Group Instance Template Scheduling Policy - The scheduling policy for the instances in node group. The structure is documented below.
- boot
Disk KubernetesNode Group Instance Template Boot Disk - The specifications for boot disks that will be attached to the instance. The structure is documented below.
- container
Runtime KubernetesNode Group Instance Template Container Runtime Container runtime configuration. The structure is documented below.
- metadata Map<String,String>
- The set of metadata
key:value
pairs assigned to this instance template. This includes custom metadata and predefined keys.resources.0.memory
- The memory size allocated to the instance.resources.0.cores
- Number of CPU cores allocated to the instance.resources.0.core_fraction
- Baseline core performance as a percent.resources.0.gpus
- Number of GPU cores allocated to the instance.
- nat Boolean
- A public address that can be used to access the internet over NAT.
- network
Acceleration StringType - Type of network acceleration. Values:
standard
,software_accelerated
. - network
Interfaces List<KubernetesNode Group Instance Template Network Interface> - An array with the network interfaces that will be attached to the instance. The structure is documented below.
- placement
Policy KubernetesNode Group Instance Template Placement Policy - The placement policy configuration. The structure is documented below.
- platform
Id String - The ID of the hardware platform configuration for the node group compute instances.
- resources
Kubernetes
Node Group Instance Template Resources - scheduling
Policy KubernetesNode Group Instance Template Scheduling Policy - The scheduling policy for the instances in node group. The structure is documented below.
- boot
Disk KubernetesNode Group Instance Template Boot Disk - The specifications for boot disks that will be attached to the instance. The structure is documented below.
- container
Runtime KubernetesNode Group Instance Template Container Runtime Container runtime configuration. The structure is documented below.
- metadata {[key: string]: string}
- The set of metadata
key:value
pairs assigned to this instance template. This includes custom metadata and predefined keys.resources.0.memory
- The memory size allocated to the instance.resources.0.cores
- Number of CPU cores allocated to the instance.resources.0.core_fraction
- Baseline core performance as a percent.resources.0.gpus
- Number of GPU cores allocated to the instance.
- nat boolean
- A public address that can be used to access the internet over NAT.
- network
Acceleration stringType - Type of network acceleration. Values:
standard
,software_accelerated
. - network
Interfaces KubernetesNode Group Instance Template Network Interface[] - An array with the network interfaces that will be attached to the instance. The structure is documented below.
- placement
Policy KubernetesNode Group Instance Template Placement Policy - The placement policy configuration. The structure is documented below.
- platform
Id string - The ID of the hardware platform configuration for the node group compute instances.
- resources
Kubernetes
Node Group Instance Template Resources - scheduling
Policy KubernetesNode Group Instance Template Scheduling Policy - The scheduling policy for the instances in node group. The structure is documented below.
- boot_
disk KubernetesNode Group Instance Template Boot Disk - The specifications for boot disks that will be attached to the instance. The structure is documented below.
- container_
runtime KubernetesNode Group Instance Template Container Runtime Container runtime configuration. The structure is documented below.
- metadata Mapping[str, str]
- The set of metadata
key:value
pairs assigned to this instance template. This includes custom metadata and predefined keys.resources.0.memory
- The memory size allocated to the instance.resources.0.cores
- Number of CPU cores allocated to the instance.resources.0.core_fraction
- Baseline core performance as a percent.resources.0.gpus
- Number of GPU cores allocated to the instance.
- nat bool
- A public address that can be used to access the internet over NAT.
- network_
acceleration_ strtype - Type of network acceleration. Values:
standard
,software_accelerated
. - network_
interfaces Sequence[KubernetesNode Group Instance Template Network Interface] - An array with the network interfaces that will be attached to the instance. The structure is documented below.
- placement_
policy KubernetesNode Group Instance Template Placement Policy - The placement policy configuration. The structure is documented below.
- platform_
id str - The ID of the hardware platform configuration for the node group compute instances.
- resources
Kubernetes
Node Group Instance Template Resources - scheduling_
policy KubernetesNode Group Instance Template Scheduling Policy - The scheduling policy for the instances in node group. The structure is documented below.
- boot
Disk Property Map - The specifications for boot disks that will be attached to the instance. The structure is documented below.
- container
Runtime Property Map Container runtime configuration. The structure is documented below.
- metadata Map<String>
- The set of metadata
key:value
pairs assigned to this instance template. This includes custom metadata and predefined keys.resources.0.memory
- The memory size allocated to the instance.resources.0.cores
- Number of CPU cores allocated to the instance.resources.0.core_fraction
- Baseline core performance as a percent.resources.0.gpus
- Number of GPU cores allocated to the instance.
- nat Boolean
- A public address that can be used to access the internet over NAT.
- network
Acceleration StringType - Type of network acceleration. Values:
standard
,software_accelerated
. - network
Interfaces List<Property Map> - An array with the network interfaces that will be attached to the instance. The structure is documented below.
- placement
Policy Property Map - The placement policy configuration. The structure is documented below.
- platform
Id String - The ID of the hardware platform configuration for the node group compute instances.
- resources Property Map
- scheduling
Policy Property Map - The scheduling policy for the instances in node group. The structure is documented below.
KubernetesNodeGroupInstanceTemplateBootDisk, KubernetesNodeGroupInstanceTemplateBootDiskArgs
KubernetesNodeGroupInstanceTemplateContainerRuntime, KubernetesNodeGroupInstanceTemplateContainerRuntimeArgs
- Type string
- Type of container runtime. Values:
docker
,containerd
.
- Type string
- Type of container runtime. Values:
docker
,containerd
.
- type String
- Type of container runtime. Values:
docker
,containerd
.
- type string
- Type of container runtime. Values:
docker
,containerd
.
- type str
- Type of container runtime. Values:
docker
,containerd
.
- type String
- Type of container runtime. Values:
docker
,containerd
.
KubernetesNodeGroupInstanceTemplateNetworkInterface, KubernetesNodeGroupInstanceTemplateNetworkInterfaceArgs
- Subnet
Ids List<string> - The IDs of the subnets.
- Ipv4 bool
- Allocate an IPv4 address for the interface. The default value is
true
. - Ipv6 bool
- If true, allocate an IPv6 address for the interface. The address will be automatically assigned from the specified subnet.
- Nat bool
- A public address that can be used to access the internet over NAT.
- Security
Group List<string>Ids - Security group ids for network interface.
- Subnet
Ids []string - The IDs of the subnets.
- Ipv4 bool
- Allocate an IPv4 address for the interface. The default value is
true
. - Ipv6 bool
- If true, allocate an IPv6 address for the interface. The address will be automatically assigned from the specified subnet.
- Nat bool
- A public address that can be used to access the internet over NAT.
- Security
Group []stringIds - Security group ids for network interface.
- subnet
Ids List<String> - The IDs of the subnets.
- ipv4 Boolean
- Allocate an IPv4 address for the interface. The default value is
true
. - ipv6 Boolean
- If true, allocate an IPv6 address for the interface. The address will be automatically assigned from the specified subnet.
- nat Boolean
- A public address that can be used to access the internet over NAT.
- security
Group List<String>Ids - Security group ids for network interface.
- subnet
Ids string[] - The IDs of the subnets.
- ipv4 boolean
- Allocate an IPv4 address for the interface. The default value is
true
. - ipv6 boolean
- If true, allocate an IPv6 address for the interface. The address will be automatically assigned from the specified subnet.
- nat boolean
- A public address that can be used to access the internet over NAT.
- security
Group string[]Ids - Security group ids for network interface.
- subnet_
ids Sequence[str] - The IDs of the subnets.
- ipv4 bool
- Allocate an IPv4 address for the interface. The default value is
true
. - ipv6 bool
- If true, allocate an IPv6 address for the interface. The address will be automatically assigned from the specified subnet.
- nat bool
- A public address that can be used to access the internet over NAT.
- security_
group_ Sequence[str]ids - Security group ids for network interface.
- subnet
Ids List<String> - The IDs of the subnets.
- ipv4 Boolean
- Allocate an IPv4 address for the interface. The default value is
true
. - ipv6 Boolean
- If true, allocate an IPv6 address for the interface. The address will be automatically assigned from the specified subnet.
- nat Boolean
- A public address that can be used to access the internet over NAT.
- security
Group List<String>Ids - Security group ids for network interface.
KubernetesNodeGroupInstanceTemplatePlacementPolicy, KubernetesNodeGroupInstanceTemplatePlacementPolicyArgs
- Placement
Group stringId - Specifies the id of the Placement Group to assign to the instances.
- Placement
Group stringId - Specifies the id of the Placement Group to assign to the instances.
- placement
Group StringId - Specifies the id of the Placement Group to assign to the instances.
- placement
Group stringId - Specifies the id of the Placement Group to assign to the instances.
- placement_
group_ strid - Specifies the id of the Placement Group to assign to the instances.
- placement
Group StringId - Specifies the id of the Placement Group to assign to the instances.
KubernetesNodeGroupInstanceTemplateResources, KubernetesNodeGroupInstanceTemplateResourcesArgs
- Core
Fraction int - Cores int
- Gpus int
- Memory double
- Core
Fraction int - Cores int
- Gpus int
- Memory float64
- core
Fraction Integer - cores Integer
- gpus Integer
- memory Double
- core
Fraction number - cores number
- gpus number
- memory number
- core_
fraction int - cores int
- gpus int
- memory float
- core
Fraction Number - cores Number
- gpus Number
- memory Number
KubernetesNodeGroupInstanceTemplateSchedulingPolicy, KubernetesNodeGroupInstanceTemplateSchedulingPolicyArgs
- Preemptible bool
Specifies if the instance is preemptible. Defaults to false.
- Preemptible bool
Specifies if the instance is preemptible. Defaults to false.
- preemptible Boolean
Specifies if the instance is preemptible. Defaults to false.
- preemptible boolean
Specifies if the instance is preemptible. Defaults to false.
- preemptible bool
Specifies if the instance is preemptible. Defaults to false.
- preemptible Boolean
Specifies if the instance is preemptible. Defaults to false.
KubernetesNodeGroupMaintenancePolicy, KubernetesNodeGroupMaintenancePolicyArgs
- Auto
Repair bool - Boolean flag that specifies if node group can be repaired automatically. When omitted, default value is TRUE.
- Auto
Upgrade bool - Boolean flag that specifies if node group can be upgraded automatically. When omitted, default value is TRUE.
- Maintenance
Windows List<KubernetesNode Group Maintenance Policy Maintenance Window> - (Computed) Set of day intervals, when maintenance is allowed for this node group. When omitted, it defaults to any time.
- Auto
Repair bool - Boolean flag that specifies if node group can be repaired automatically. When omitted, default value is TRUE.
- Auto
Upgrade bool - Boolean flag that specifies if node group can be upgraded automatically. When omitted, default value is TRUE.
- Maintenance
Windows []KubernetesNode Group Maintenance Policy Maintenance Window - (Computed) Set of day intervals, when maintenance is allowed for this node group. When omitted, it defaults to any time.
- auto
Repair Boolean - Boolean flag that specifies if node group can be repaired automatically. When omitted, default value is TRUE.
- auto
Upgrade Boolean - Boolean flag that specifies if node group can be upgraded automatically. When omitted, default value is TRUE.
- maintenance
Windows List<KubernetesNode Group Maintenance Policy Maintenance Window> - (Computed) Set of day intervals, when maintenance is allowed for this node group. When omitted, it defaults to any time.
- auto
Repair boolean - Boolean flag that specifies if node group can be repaired automatically. When omitted, default value is TRUE.
- auto
Upgrade boolean - Boolean flag that specifies if node group can be upgraded automatically. When omitted, default value is TRUE.
- maintenance
Windows KubernetesNode Group Maintenance Policy Maintenance Window[] - (Computed) Set of day intervals, when maintenance is allowed for this node group. When omitted, it defaults to any time.
- auto_
repair bool - Boolean flag that specifies if node group can be repaired automatically. When omitted, default value is TRUE.
- auto_
upgrade bool - Boolean flag that specifies if node group can be upgraded automatically. When omitted, default value is TRUE.
- maintenance_
windows Sequence[KubernetesNode Group Maintenance Policy Maintenance Window] - (Computed) Set of day intervals, when maintenance is allowed for this node group. When omitted, it defaults to any time.
- auto
Repair Boolean - Boolean flag that specifies if node group can be repaired automatically. When omitted, default value is TRUE.
- auto
Upgrade Boolean - Boolean flag that specifies if node group can be upgraded automatically. When omitted, default value is TRUE.
- maintenance
Windows List<Property Map> - (Computed) Set of day intervals, when maintenance is allowed for this node group. When omitted, it defaults to any time.
KubernetesNodeGroupMaintenancePolicyMaintenanceWindow, KubernetesNodeGroupMaintenancePolicyMaintenanceWindowArgs
- duration str
- start_
time str - day str
KubernetesNodeGroupScalePolicy, KubernetesNodeGroupScalePolicyArgs
- Auto
Scale KubernetesNode Group Scale Policy Auto Scale - Scale policy for an autoscaled node group. The structure is documented below.
- Fixed
Scale KubernetesNode Group Scale Policy Fixed Scale - Scale policy for a fixed scale node group. The structure is documented below.
- Auto
Scale KubernetesNode Group Scale Policy Auto Scale - Scale policy for an autoscaled node group. The structure is documented below.
- Fixed
Scale KubernetesNode Group Scale Policy Fixed Scale - Scale policy for a fixed scale node group. The structure is documented below.
- auto
Scale KubernetesNode Group Scale Policy Auto Scale - Scale policy for an autoscaled node group. The structure is documented below.
- fixed
Scale KubernetesNode Group Scale Policy Fixed Scale - Scale policy for a fixed scale node group. The structure is documented below.
- auto
Scale KubernetesNode Group Scale Policy Auto Scale - Scale policy for an autoscaled node group. The structure is documented below.
- fixed
Scale KubernetesNode Group Scale Policy Fixed Scale - Scale policy for a fixed scale node group. The structure is documented below.
- auto_
scale KubernetesNode Group Scale Policy Auto Scale - Scale policy for an autoscaled node group. The structure is documented below.
- fixed_
scale KubernetesNode Group Scale Policy Fixed Scale - Scale policy for a fixed scale node group. The structure is documented below.
- auto
Scale Property Map - Scale policy for an autoscaled node group. The structure is documented below.
- fixed
Scale Property Map - Scale policy for a fixed scale node group. The structure is documented below.
KubernetesNodeGroupScalePolicyAutoScale, KubernetesNodeGroupScalePolicyAutoScaleArgs
KubernetesNodeGroupScalePolicyFixedScale, KubernetesNodeGroupScalePolicyFixedScaleArgs
- Size int
- The number of instances in the node group.
- Size int
- The number of instances in the node group.
- size Integer
- The number of instances in the node group.
- size number
- The number of instances in the node group.
- size int
- The number of instances in the node group.
- size Number
- The number of instances in the node group.
KubernetesNodeGroupVersionInfo, KubernetesNodeGroupVersionInfoArgs
- Current
Version string - Current Kubernetes version, major.minor (e.g. 1.15).
- bool
- True/false flag. Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well as some internal component updates - new features or bug fixes in yandex-specific components either on the master or nodes.
- New
Revision stringSummary - Human readable description of the changes to be applied when updating to the latest revision. Empty if new_revision_available is false.
- Version
Deprecated bool - True/false flag. The current version is on the deprecation schedule, component (master or node group) should be upgraded.
- Current
Version string - Current Kubernetes version, major.minor (e.g. 1.15).
- bool
- True/false flag. Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well as some internal component updates - new features or bug fixes in yandex-specific components either on the master or nodes.
- New
Revision stringSummary - Human readable description of the changes to be applied when updating to the latest revision. Empty if new_revision_available is false.
- Version
Deprecated bool - True/false flag. The current version is on the deprecation schedule, component (master or node group) should be upgraded.
- current
Version String - Current Kubernetes version, major.minor (e.g. 1.15).
- Boolean
- True/false flag. Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well as some internal component updates - new features or bug fixes in yandex-specific components either on the master or nodes.
- new
Revision StringSummary - Human readable description of the changes to be applied when updating to the latest revision. Empty if new_revision_available is false.
- version
Deprecated Boolean - True/false flag. The current version is on the deprecation schedule, component (master or node group) should be upgraded.
- current
Version string - Current Kubernetes version, major.minor (e.g. 1.15).
- boolean
- True/false flag. Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well as some internal component updates - new features or bug fixes in yandex-specific components either on the master or nodes.
- new
Revision stringSummary - Human readable description of the changes to be applied when updating to the latest revision. Empty if new_revision_available is false.
- version
Deprecated boolean - True/false flag. The current version is on the deprecation schedule, component (master or node group) should be upgraded.
- current_
version str - Current Kubernetes version, major.minor (e.g. 1.15).
- new_
revision_ boolavailable - True/false flag. Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well as some internal component updates - new features or bug fixes in yandex-specific components either on the master or nodes.
- new_
revision_ strsummary - Human readable description of the changes to be applied when updating to the latest revision. Empty if new_revision_available is false.
- version_
deprecated bool - True/false flag. The current version is on the deprecation schedule, component (master or node group) should be upgraded.
- current
Version String - Current Kubernetes version, major.minor (e.g. 1.15).
- Boolean
- True/false flag. Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well as some internal component updates - new features or bug fixes in yandex-specific components either on the master or nodes.
- new
Revision StringSummary - Human readable description of the changes to be applied when updating to the latest revision. Empty if new_revision_available is false.
- version
Deprecated Boolean - True/false flag. The current version is on the deprecation schedule, component (master or node group) should be upgraded.
Import
A Yandex Kubernetes Node Group can be imported using the id
of the resource, e.g.
$ pulumi import yandex:index/kubernetesNodeGroup:KubernetesNodeGroup default node_group_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.