ionoscloud.K8sNodePool
Explore with Pulumi AI
Manages a Managed Kubernetes Node Pool, part of a managed Kubernetes cluster on IonosCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const exampleDatacenter = new ionoscloud.Datacenter("exampleDatacenter", {
location: "us/las",
description: "datacenter description",
secAuthProtection: false,
});
const exampleLan = new ionoscloud.Lan("exampleLan", {
datacenterId: exampleDatacenter.datacenterId,
"public": false,
});
const exampleIpblock = new ionoscloud.Ipblock("exampleIpblock", {
location: "us/las",
size: 3,
});
const exampleK8sCluster = new ionoscloud.K8sCluster("exampleK8sCluster", {
k8sVersion: "1.31.2",
maintenanceWindow: {
dayOfTheWeek: "Sunday",
time: "09:00:00Z",
},
apiSubnetAllowLists: ["1.2.3.4/32"],
s3Buckets: [{
name: "globally_unique_s3_bucket_name",
}],
});
const exampleK8sNodePool = new ionoscloud.K8sNodePool("exampleK8sNodePool", {
datacenterId: exampleDatacenter.datacenterId,
k8sClusterId: exampleK8sCluster.k8sClusterId,
k8sVersion: exampleK8sCluster.k8sVersion,
maintenanceWindow: {
dayOfTheWeek: "Monday",
time: "09:00:00Z",
},
autoScaling: {
minNodeCount: 1,
maxNodeCount: 2,
},
cpuFamily: "INTEL_XEON",
availabilityZone: "AUTO",
storageType: "SSD",
nodeCount: 1,
coresCount: 2,
ramSize: 2048,
storageSize: 40,
serverType: "DedicatedCore",
publicIps: [
exampleIpblock.ips[0],
exampleIpblock.ips[1],
exampleIpblock.ips[2],
],
lans: [{
id: exampleLan.lanId,
dhcp: true,
routes: [{
network: "1.2.3.5/24",
gatewayIp: "10.1.5.17",
}],
}],
labels: {
lab1: "value1",
lab2: "value2",
},
annotations: {
ann1: "value1",
ann2: "value2",
},
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example_datacenter = ionoscloud.Datacenter("exampleDatacenter",
location="us/las",
description="datacenter description",
sec_auth_protection=False)
example_lan = ionoscloud.Lan("exampleLan",
datacenter_id=example_datacenter.datacenter_id,
public=False)
example_ipblock = ionoscloud.Ipblock("exampleIpblock",
location="us/las",
size=3)
example_k8s_cluster = ionoscloud.K8sCluster("exampleK8sCluster",
k8s_version="1.31.2",
maintenance_window={
"day_of_the_week": "Sunday",
"time": "09:00:00Z",
},
api_subnet_allow_lists=["1.2.3.4/32"],
s3_buckets=[{
"name": "globally_unique_s3_bucket_name",
}])
example_k8s_node_pool = ionoscloud.K8sNodePool("exampleK8sNodePool",
datacenter_id=example_datacenter.datacenter_id,
k8s_cluster_id=example_k8s_cluster.k8s_cluster_id,
k8s_version=example_k8s_cluster.k8s_version,
maintenance_window={
"day_of_the_week": "Monday",
"time": "09:00:00Z",
},
auto_scaling={
"min_node_count": 1,
"max_node_count": 2,
},
cpu_family="INTEL_XEON",
availability_zone="AUTO",
storage_type="SSD",
node_count=1,
cores_count=2,
ram_size=2048,
storage_size=40,
server_type="DedicatedCore",
public_ips=[
example_ipblock.ips[0],
example_ipblock.ips[1],
example_ipblock.ips[2],
],
lans=[{
"id": example_lan.lan_id,
"dhcp": True,
"routes": [{
"network": "1.2.3.5/24",
"gateway_ip": "10.1.5.17",
}],
}],
labels={
"lab1": "value1",
"lab2": "value2",
},
annotations={
"ann1": "value1",
"ann2": "value2",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleDatacenter, err := ionoscloud.NewDatacenter(ctx, "exampleDatacenter", &ionoscloud.DatacenterArgs{
Location: pulumi.String("us/las"),
Description: pulumi.String("datacenter description"),
SecAuthProtection: pulumi.Bool(false),
})
if err != nil {
return err
}
exampleLan, err := ionoscloud.NewLan(ctx, "exampleLan", &ionoscloud.LanArgs{
DatacenterId: exampleDatacenter.DatacenterId,
Public: pulumi.Bool(false),
})
if err != nil {
return err
}
exampleIpblock, err := ionoscloud.NewIpblock(ctx, "exampleIpblock", &ionoscloud.IpblockArgs{
Location: pulumi.String("us/las"),
Size: pulumi.Float64(3),
})
if err != nil {
return err
}
exampleK8sCluster, err := ionoscloud.NewK8sCluster(ctx, "exampleK8sCluster", &ionoscloud.K8sClusterArgs{
K8sVersion: pulumi.String("1.31.2"),
MaintenanceWindow: &ionoscloud.K8sClusterMaintenanceWindowArgs{
DayOfTheWeek: pulumi.String("Sunday"),
Time: pulumi.String("09:00:00Z"),
},
ApiSubnetAllowLists: pulumi.StringArray{
pulumi.String("1.2.3.4/32"),
},
S3Buckets: ionoscloud.K8sClusterS3BucketArray{
&ionoscloud.K8sClusterS3BucketArgs{
Name: pulumi.String("globally_unique_s3_bucket_name"),
},
},
})
if err != nil {
return err
}
_, err = ionoscloud.NewK8sNodePool(ctx, "exampleK8sNodePool", &ionoscloud.K8sNodePoolArgs{
DatacenterId: exampleDatacenter.DatacenterId,
K8sClusterId: exampleK8sCluster.K8sClusterId,
K8sVersion: exampleK8sCluster.K8sVersion,
MaintenanceWindow: &ionoscloud.K8sNodePoolMaintenanceWindowArgs{
DayOfTheWeek: pulumi.String("Monday"),
Time: pulumi.String("09:00:00Z"),
},
AutoScaling: &ionoscloud.K8sNodePoolAutoScalingArgs{
MinNodeCount: pulumi.Float64(1),
MaxNodeCount: pulumi.Float64(2),
},
CpuFamily: pulumi.String("INTEL_XEON"),
AvailabilityZone: pulumi.String("AUTO"),
StorageType: pulumi.String("SSD"),
NodeCount: pulumi.Float64(1),
CoresCount: pulumi.Float64(2),
RamSize: pulumi.Float64(2048),
StorageSize: pulumi.Float64(40),
ServerType: pulumi.String("DedicatedCore"),
PublicIps: pulumi.StringArray{
exampleIpblock.Ips.ApplyT(func(ips []string) (string, error) {
return ips[0], nil
}).(pulumi.StringOutput),
exampleIpblock.Ips.ApplyT(func(ips []string) (string, error) {
return ips[1], nil
}).(pulumi.StringOutput),
exampleIpblock.Ips.ApplyT(func(ips []string) (string, error) {
return ips[2], nil
}).(pulumi.StringOutput),
},
Lans: ionoscloud.K8sNodePoolLanArray{
&ionoscloud.K8sNodePoolLanArgs{
Id: exampleLan.LanId,
Dhcp: pulumi.Bool(true),
Routes: ionoscloud.K8sNodePoolLanRouteArray{
&ionoscloud.K8sNodePoolLanRouteArgs{
Network: pulumi.String("1.2.3.5/24"),
GatewayIp: pulumi.String("10.1.5.17"),
},
},
},
},
Labels: pulumi.StringMap{
"lab1": pulumi.String("value1"),
"lab2": pulumi.String("value2"),
},
Annotations: pulumi.StringMap{
"ann1": pulumi.String("value1"),
"ann2": pulumi.String("value2"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var exampleDatacenter = new Ionoscloud.Datacenter("exampleDatacenter", new()
{
Location = "us/las",
Description = "datacenter description",
SecAuthProtection = false,
});
var exampleLan = new Ionoscloud.Lan("exampleLan", new()
{
DatacenterId = exampleDatacenter.DatacenterId,
Public = false,
});
var exampleIpblock = new Ionoscloud.Ipblock("exampleIpblock", new()
{
Location = "us/las",
Size = 3,
});
var exampleK8sCluster = new Ionoscloud.K8sCluster("exampleK8sCluster", new()
{
K8sVersion = "1.31.2",
MaintenanceWindow = new Ionoscloud.Inputs.K8sClusterMaintenanceWindowArgs
{
DayOfTheWeek = "Sunday",
Time = "09:00:00Z",
},
ApiSubnetAllowLists = new[]
{
"1.2.3.4/32",
},
S3Buckets = new[]
{
new Ionoscloud.Inputs.K8sClusterS3BucketArgs
{
Name = "globally_unique_s3_bucket_name",
},
},
});
var exampleK8sNodePool = new Ionoscloud.K8sNodePool("exampleK8sNodePool", new()
{
DatacenterId = exampleDatacenter.DatacenterId,
K8sClusterId = exampleK8sCluster.K8sClusterId,
K8sVersion = exampleK8sCluster.K8sVersion,
MaintenanceWindow = new Ionoscloud.Inputs.K8sNodePoolMaintenanceWindowArgs
{
DayOfTheWeek = "Monday",
Time = "09:00:00Z",
},
AutoScaling = new Ionoscloud.Inputs.K8sNodePoolAutoScalingArgs
{
MinNodeCount = 1,
MaxNodeCount = 2,
},
CpuFamily = "INTEL_XEON",
AvailabilityZone = "AUTO",
StorageType = "SSD",
NodeCount = 1,
CoresCount = 2,
RamSize = 2048,
StorageSize = 40,
ServerType = "DedicatedCore",
PublicIps = new[]
{
exampleIpblock.Ips.Apply(ips => ips[0]),
exampleIpblock.Ips.Apply(ips => ips[1]),
exampleIpblock.Ips.Apply(ips => ips[2]),
},
Lans = new[]
{
new Ionoscloud.Inputs.K8sNodePoolLanArgs
{
Id = exampleLan.LanId,
Dhcp = true,
Routes = new[]
{
new Ionoscloud.Inputs.K8sNodePoolLanRouteArgs
{
Network = "1.2.3.5/24",
GatewayIp = "10.1.5.17",
},
},
},
},
Labels =
{
{ "lab1", "value1" },
{ "lab2", "value2" },
},
Annotations =
{
{ "ann1", "value1" },
{ "ann2", "value2" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.Datacenter;
import com.pulumi.ionoscloud.DatacenterArgs;
import com.pulumi.ionoscloud.Lan;
import com.pulumi.ionoscloud.LanArgs;
import com.pulumi.ionoscloud.Ipblock;
import com.pulumi.ionoscloud.IpblockArgs;
import com.pulumi.ionoscloud.K8sCluster;
import com.pulumi.ionoscloud.K8sClusterArgs;
import com.pulumi.ionoscloud.inputs.K8sClusterMaintenanceWindowArgs;
import com.pulumi.ionoscloud.inputs.K8sClusterS3BucketArgs;
import com.pulumi.ionoscloud.K8sNodePool;
import com.pulumi.ionoscloud.K8sNodePoolArgs;
import com.pulumi.ionoscloud.inputs.K8sNodePoolMaintenanceWindowArgs;
import com.pulumi.ionoscloud.inputs.K8sNodePoolAutoScalingArgs;
import com.pulumi.ionoscloud.inputs.K8sNodePoolLanArgs;
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 exampleDatacenter = new Datacenter("exampleDatacenter", DatacenterArgs.builder()
.location("us/las")
.description("datacenter description")
.secAuthProtection(false)
.build());
var exampleLan = new Lan("exampleLan", LanArgs.builder()
.datacenterId(exampleDatacenter.datacenterId())
.public_(false)
.build());
var exampleIpblock = new Ipblock("exampleIpblock", IpblockArgs.builder()
.location("us/las")
.size(3)
.build());
var exampleK8sCluster = new K8sCluster("exampleK8sCluster", K8sClusterArgs.builder()
.k8sVersion("1.31.2")
.maintenanceWindow(K8sClusterMaintenanceWindowArgs.builder()
.dayOfTheWeek("Sunday")
.time("09:00:00Z")
.build())
.apiSubnetAllowLists("1.2.3.4/32")
.s3Buckets(K8sClusterS3BucketArgs.builder()
.name("globally_unique_s3_bucket_name")
.build())
.build());
var exampleK8sNodePool = new K8sNodePool("exampleK8sNodePool", K8sNodePoolArgs.builder()
.datacenterId(exampleDatacenter.datacenterId())
.k8sClusterId(exampleK8sCluster.k8sClusterId())
.k8sVersion(exampleK8sCluster.k8sVersion())
.maintenanceWindow(K8sNodePoolMaintenanceWindowArgs.builder()
.dayOfTheWeek("Monday")
.time("09:00:00Z")
.build())
.autoScaling(K8sNodePoolAutoScalingArgs.builder()
.minNodeCount(1)
.maxNodeCount(2)
.build())
.cpuFamily("INTEL_XEON")
.availabilityZone("AUTO")
.storageType("SSD")
.nodeCount(1)
.coresCount(2)
.ramSize(2048)
.storageSize(40)
.serverType("DedicatedCore")
.publicIps(
exampleIpblock.ips().applyValue(ips -> ips[0]),
exampleIpblock.ips().applyValue(ips -> ips[1]),
exampleIpblock.ips().applyValue(ips -> ips[2]))
.lans(K8sNodePoolLanArgs.builder()
.id(exampleLan.lanId())
.dhcp(true)
.routes(K8sNodePoolLanRouteArgs.builder()
.network("1.2.3.5/24")
.gatewayIp("10.1.5.17")
.build())
.build())
.labels(Map.ofEntries(
Map.entry("lab1", "value1"),
Map.entry("lab2", "value2")
))
.annotations(Map.ofEntries(
Map.entry("ann1", "value1"),
Map.entry("ann2", "value2")
))
.build());
}
}
resources:
exampleDatacenter:
type: ionoscloud:Datacenter
properties:
location: us/las
description: datacenter description
secAuthProtection: false
exampleLan:
type: ionoscloud:Lan
properties:
datacenterId: ${exampleDatacenter.datacenterId}
public: false
exampleIpblock:
type: ionoscloud:Ipblock
properties:
location: us/las
size: 3
exampleK8sCluster:
type: ionoscloud:K8sCluster
properties:
k8sVersion: 1.31.2
maintenanceWindow:
dayOfTheWeek: Sunday
time: 09:00:00Z
apiSubnetAllowLists:
- 1.2.3.4/32
s3Buckets:
- name: globally_unique_s3_bucket_name
exampleK8sNodePool:
type: ionoscloud:K8sNodePool
properties:
datacenterId: ${exampleDatacenter.datacenterId}
k8sClusterId: ${exampleK8sCluster.k8sClusterId}
k8sVersion: ${exampleK8sCluster.k8sVersion}
maintenanceWindow:
dayOfTheWeek: Monday
time: 09:00:00Z
autoScaling:
minNodeCount: 1
maxNodeCount: 2
cpuFamily: INTEL_XEON
availabilityZone: AUTO
storageType: SSD
nodeCount: 1
coresCount: 2
ramSize: 2048
storageSize: 40
serverType: DedicatedCore
publicIps:
- ${exampleIpblock.ips[0]}
- ${exampleIpblock.ips[1]}
- ${exampleIpblock.ips[2]}
lans:
- id: ${exampleLan.lanId}
dhcp: true
routes:
- network: 1.2.3.5/24
gatewayIp: 10.1.5.17
labels:
lab1: value1
lab2: value2
annotations:
ann1: value1
ann2: value2
Note: Set create_before_destroy
on the lan resource if you want to remove it from the nodepool during an update. This is to ensure that the nodepool is updated before the lan is destroyed.
Create K8sNodePool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new K8sNodePool(name: string, args: K8sNodePoolArgs, opts?: CustomResourceOptions);
@overload
def K8sNodePool(resource_name: str,
args: K8sNodePoolArgs,
opts: Optional[ResourceOptions] = None)
@overload
def K8sNodePool(resource_name: str,
opts: Optional[ResourceOptions] = None,
k8s_version: Optional[str] = None,
storage_type: Optional[str] = None,
storage_size: Optional[float] = None,
availability_zone: Optional[str] = None,
cores_count: Optional[float] = None,
ram_size: Optional[float] = None,
datacenter_id: Optional[str] = None,
k8s_cluster_id: Optional[str] = None,
node_count: Optional[float] = None,
labels: Optional[Mapping[str, str]] = None,
allow_replace: Optional[bool] = None,
lans: Optional[Sequence[K8sNodePoolLanArgs]] = None,
maintenance_window: Optional[K8sNodePoolMaintenanceWindowArgs] = None,
name: Optional[str] = None,
k8s_node_pool_id: Optional[str] = None,
public_ips: Optional[Sequence[str]] = None,
cpu_family: Optional[str] = None,
server_type: Optional[str] = None,
auto_scaling: Optional[K8sNodePoolAutoScalingArgs] = None,
annotations: Optional[Mapping[str, str]] = None,
timeouts: Optional[K8sNodePoolTimeoutsArgs] = None)
func NewK8sNodePool(ctx *Context, name string, args K8sNodePoolArgs, opts ...ResourceOption) (*K8sNodePool, error)
public K8sNodePool(string name, K8sNodePoolArgs args, CustomResourceOptions? opts = null)
public K8sNodePool(String name, K8sNodePoolArgs args)
public K8sNodePool(String name, K8sNodePoolArgs args, CustomResourceOptions options)
type: ionoscloud:K8sNodePool
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 K8sNodePoolArgs
- 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 K8sNodePoolArgs
- 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 K8sNodePoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args K8sNodePoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args K8sNodePoolArgs
- 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 k8sNodePoolResource = new Ionoscloud.K8sNodePool("k8sNodePoolResource", new()
{
K8sVersion = "string",
StorageType = "string",
StorageSize = 0,
AvailabilityZone = "string",
CoresCount = 0,
RamSize = 0,
DatacenterId = "string",
K8sClusterId = "string",
NodeCount = 0,
Labels =
{
{ "string", "string" },
},
AllowReplace = false,
Lans = new[]
{
new Ionoscloud.Inputs.K8sNodePoolLanArgs
{
Id = 0,
Dhcp = false,
Routes = new[]
{
new Ionoscloud.Inputs.K8sNodePoolLanRouteArgs
{
GatewayIp = "string",
Network = "string",
},
},
},
},
MaintenanceWindow = new Ionoscloud.Inputs.K8sNodePoolMaintenanceWindowArgs
{
DayOfTheWeek = "string",
Time = "string",
},
Name = "string",
K8sNodePoolId = "string",
PublicIps = new[]
{
"string",
},
CpuFamily = "string",
ServerType = "string",
AutoScaling = new Ionoscloud.Inputs.K8sNodePoolAutoScalingArgs
{
MaxNodeCount = 0,
MinNodeCount = 0,
},
Annotations =
{
{ "string", "string" },
},
Timeouts = new Ionoscloud.Inputs.K8sNodePoolTimeoutsArgs
{
Create = "string",
Default = "string",
Delete = "string",
Update = "string",
},
});
example, err := ionoscloud.NewK8sNodePool(ctx, "k8sNodePoolResource", &ionoscloud.K8sNodePoolArgs{
K8sVersion: pulumi.String("string"),
StorageType: pulumi.String("string"),
StorageSize: pulumi.Float64(0),
AvailabilityZone: pulumi.String("string"),
CoresCount: pulumi.Float64(0),
RamSize: pulumi.Float64(0),
DatacenterId: pulumi.String("string"),
K8sClusterId: pulumi.String("string"),
NodeCount: pulumi.Float64(0),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
AllowReplace: pulumi.Bool(false),
Lans: ionoscloud.K8sNodePoolLanArray{
&ionoscloud.K8sNodePoolLanArgs{
Id: pulumi.Float64(0),
Dhcp: pulumi.Bool(false),
Routes: ionoscloud.K8sNodePoolLanRouteArray{
&ionoscloud.K8sNodePoolLanRouteArgs{
GatewayIp: pulumi.String("string"),
Network: pulumi.String("string"),
},
},
},
},
MaintenanceWindow: &ionoscloud.K8sNodePoolMaintenanceWindowArgs{
DayOfTheWeek: pulumi.String("string"),
Time: pulumi.String("string"),
},
Name: pulumi.String("string"),
K8sNodePoolId: pulumi.String("string"),
PublicIps: pulumi.StringArray{
pulumi.String("string"),
},
CpuFamily: pulumi.String("string"),
ServerType: pulumi.String("string"),
AutoScaling: &ionoscloud.K8sNodePoolAutoScalingArgs{
MaxNodeCount: pulumi.Float64(0),
MinNodeCount: pulumi.Float64(0),
},
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &ionoscloud.K8sNodePoolTimeoutsArgs{
Create: pulumi.String("string"),
Default: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var k8sNodePoolResource = new K8sNodePool("k8sNodePoolResource", K8sNodePoolArgs.builder()
.k8sVersion("string")
.storageType("string")
.storageSize(0)
.availabilityZone("string")
.coresCount(0)
.ramSize(0)
.datacenterId("string")
.k8sClusterId("string")
.nodeCount(0)
.labels(Map.of("string", "string"))
.allowReplace(false)
.lans(K8sNodePoolLanArgs.builder()
.id(0)
.dhcp(false)
.routes(K8sNodePoolLanRouteArgs.builder()
.gatewayIp("string")
.network("string")
.build())
.build())
.maintenanceWindow(K8sNodePoolMaintenanceWindowArgs.builder()
.dayOfTheWeek("string")
.time("string")
.build())
.name("string")
.k8sNodePoolId("string")
.publicIps("string")
.cpuFamily("string")
.serverType("string")
.autoScaling(K8sNodePoolAutoScalingArgs.builder()
.maxNodeCount(0)
.minNodeCount(0)
.build())
.annotations(Map.of("string", "string"))
.timeouts(K8sNodePoolTimeoutsArgs.builder()
.create("string")
.default_("string")
.delete("string")
.update("string")
.build())
.build());
k8s_node_pool_resource = ionoscloud.K8sNodePool("k8sNodePoolResource",
k8s_version="string",
storage_type="string",
storage_size=0,
availability_zone="string",
cores_count=0,
ram_size=0,
datacenter_id="string",
k8s_cluster_id="string",
node_count=0,
labels={
"string": "string",
},
allow_replace=False,
lans=[{
"id": 0,
"dhcp": False,
"routes": [{
"gateway_ip": "string",
"network": "string",
}],
}],
maintenance_window={
"day_of_the_week": "string",
"time": "string",
},
name="string",
k8s_node_pool_id="string",
public_ips=["string"],
cpu_family="string",
server_type="string",
auto_scaling={
"max_node_count": 0,
"min_node_count": 0,
},
annotations={
"string": "string",
},
timeouts={
"create": "string",
"default": "string",
"delete": "string",
"update": "string",
})
const k8sNodePoolResource = new ionoscloud.K8sNodePool("k8sNodePoolResource", {
k8sVersion: "string",
storageType: "string",
storageSize: 0,
availabilityZone: "string",
coresCount: 0,
ramSize: 0,
datacenterId: "string",
k8sClusterId: "string",
nodeCount: 0,
labels: {
string: "string",
},
allowReplace: false,
lans: [{
id: 0,
dhcp: false,
routes: [{
gatewayIp: "string",
network: "string",
}],
}],
maintenanceWindow: {
dayOfTheWeek: "string",
time: "string",
},
name: "string",
k8sNodePoolId: "string",
publicIps: ["string"],
cpuFamily: "string",
serverType: "string",
autoScaling: {
maxNodeCount: 0,
minNodeCount: 0,
},
annotations: {
string: "string",
},
timeouts: {
create: "string",
"default": "string",
"delete": "string",
update: "string",
},
});
type: ionoscloud:K8sNodePool
properties:
allowReplace: false
annotations:
string: string
autoScaling:
maxNodeCount: 0
minNodeCount: 0
availabilityZone: string
coresCount: 0
cpuFamily: string
datacenterId: string
k8sClusterId: string
k8sNodePoolId: string
k8sVersion: string
labels:
string: string
lans:
- dhcp: false
id: 0
routes:
- gatewayIp: string
network: string
maintenanceWindow:
dayOfTheWeek: string
time: string
name: string
nodeCount: 0
publicIps:
- string
ramSize: 0
serverType: string
storageSize: 0
storageType: string
timeouts:
create: string
default: string
delete: string
update: string
K8sNodePool 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 K8sNodePool resource accepts the following input properties:
- Availability
Zone string - [string] - The desired Compute availability zone - See the API documentation for more information. This attribute is immutable.
- Cores
Count double - [int] - The CPU cores count for each node of the node pool. This attribute is immutable.
- Datacenter
Id string - [string] A Datacenter's UUID
- K8s
Cluster stringId - [string] A k8s cluster's UUID
- K8s
Version string - [string] The desired Kubernetes Version. For supported values, please check the API documentation. Downgrades are not supported. The provider will ignore downgrades of patch level.
- Node
Count double - [int] - The desired number of nodes in the node pool
- Ram
Size double - [int] - The desired amount of RAM, in MB. This attribute is immutable.
- Storage
Size double - [int] - The size of the volume in GB. The size should be greater than 10GB. This attribute is immutable.
- Storage
Type string - [string] - The desired storage type - SSD/HDD. This attribute is immutable.
- Allow
Replace bool - When set to true, allows the update of immutable fields by destroying and re-creating the node pool
- Annotations Dictionary<string, string>
- [map] A key/value map of annotations
- Auto
Scaling K8sNode Pool Auto Scaling - [string] Whether the Node Pool should autoscale. For more details, please check the API documentation
- Cpu
Family string - [string] The desired CPU Family - See the API documentation for more information. This attribute is immutable.
- K8s
Node stringPool Id - Labels Dictionary<string, string>
- [map] A key/value map of labels
- Lans
List<K8s
Node Pool Lan> - [list] A list of numeric LAN id's you want this node pool to be part of. For more details, please check the API documentation, as well as the example above
- Maintenance
Window K8sNode Pool Maintenance Window - See the maintenance_window section in the example above
- Name string
- [string] The name of the Kubernetes Cluster. This attribute is immutable.
- Public
Ips List<string> - [list] A list of public IPs associated with the node pool; must have at least
node_count + 1
elements - Server
Type string - [string] The server type for the compute engine - See the API documentation for more information. Possible values:
DedicatedCore
,VCPU
- Timeouts
K8s
Node Pool Timeouts
- Availability
Zone string - [string] - The desired Compute availability zone - See the API documentation for more information. This attribute is immutable.
- Cores
Count float64 - [int] - The CPU cores count for each node of the node pool. This attribute is immutable.
- Datacenter
Id string - [string] A Datacenter's UUID
- K8s
Cluster stringId - [string] A k8s cluster's UUID
- K8s
Version string - [string] The desired Kubernetes Version. For supported values, please check the API documentation. Downgrades are not supported. The provider will ignore downgrades of patch level.
- Node
Count float64 - [int] - The desired number of nodes in the node pool
- Ram
Size float64 - [int] - The desired amount of RAM, in MB. This attribute is immutable.
- Storage
Size float64 - [int] - The size of the volume in GB. The size should be greater than 10GB. This attribute is immutable.
- Storage
Type string - [string] - The desired storage type - SSD/HDD. This attribute is immutable.
- Allow
Replace bool - When set to true, allows the update of immutable fields by destroying and re-creating the node pool
- Annotations map[string]string
- [map] A key/value map of annotations
- Auto
Scaling K8sNode Pool Auto Scaling Args - [string] Whether the Node Pool should autoscale. For more details, please check the API documentation
- Cpu
Family string - [string] The desired CPU Family - See the API documentation for more information. This attribute is immutable.
- K8s
Node stringPool Id - Labels map[string]string
- [map] A key/value map of labels
- Lans
[]K8s
Node Pool Lan Args - [list] A list of numeric LAN id's you want this node pool to be part of. For more details, please check the API documentation, as well as the example above
- Maintenance
Window K8sNode Pool Maintenance Window Args - See the maintenance_window section in the example above
- Name string
- [string] The name of the Kubernetes Cluster. This attribute is immutable.
- Public
Ips []string - [list] A list of public IPs associated with the node pool; must have at least
node_count + 1
elements - Server
Type string - [string] The server type for the compute engine - See the API documentation for more information. Possible values:
DedicatedCore
,VCPU
- Timeouts
K8s
Node Pool Timeouts Args
- availability
Zone String - [string] - The desired Compute availability zone - See the API documentation for more information. This attribute is immutable.
- cores
Count Double - [int] - The CPU cores count for each node of the node pool. This attribute is immutable.
- datacenter
Id String - [string] A Datacenter's UUID
- k8s
Cluster StringId - [string] A k8s cluster's UUID
- k8s
Version String - [string] The desired Kubernetes Version. For supported values, please check the API documentation. Downgrades are not supported. The provider will ignore downgrades of patch level.
- node
Count Double - [int] - The desired number of nodes in the node pool
- ram
Size Double - [int] - The desired amount of RAM, in MB. This attribute is immutable.
- storage
Size Double - [int] - The size of the volume in GB. The size should be greater than 10GB. This attribute is immutable.
- storage
Type String - [string] - The desired storage type - SSD/HDD. This attribute is immutable.
- allow
Replace Boolean - When set to true, allows the update of immutable fields by destroying and re-creating the node pool
- annotations Map<String,String>
- [map] A key/value map of annotations
- auto
Scaling K8sNode Pool Auto Scaling - [string] Whether the Node Pool should autoscale. For more details, please check the API documentation
- cpu
Family String - [string] The desired CPU Family - See the API documentation for more information. This attribute is immutable.
- k8s
Node StringPool Id - labels Map<String,String>
- [map] A key/value map of labels
- lans
List<K8s
Node Pool Lan> - [list] A list of numeric LAN id's you want this node pool to be part of. For more details, please check the API documentation, as well as the example above
- maintenance
Window K8sNode Pool Maintenance Window - See the maintenance_window section in the example above
- name String
- [string] The name of the Kubernetes Cluster. This attribute is immutable.
- public
Ips List<String> - [list] A list of public IPs associated with the node pool; must have at least
node_count + 1
elements - server
Type String - [string] The server type for the compute engine - See the API documentation for more information. Possible values:
DedicatedCore
,VCPU
- timeouts
K8s
Node Pool Timeouts
- availability
Zone string - [string] - The desired Compute availability zone - See the API documentation for more information. This attribute is immutable.
- cores
Count number - [int] - The CPU cores count for each node of the node pool. This attribute is immutable.
- datacenter
Id string - [string] A Datacenter's UUID
- k8s
Cluster stringId - [string] A k8s cluster's UUID
- k8s
Version string - [string] The desired Kubernetes Version. For supported values, please check the API documentation. Downgrades are not supported. The provider will ignore downgrades of patch level.
- node
Count number - [int] - The desired number of nodes in the node pool
- ram
Size number - [int] - The desired amount of RAM, in MB. This attribute is immutable.
- storage
Size number - [int] - The size of the volume in GB. The size should be greater than 10GB. This attribute is immutable.
- storage
Type string - [string] - The desired storage type - SSD/HDD. This attribute is immutable.
- allow
Replace boolean - When set to true, allows the update of immutable fields by destroying and re-creating the node pool
- annotations {[key: string]: string}
- [map] A key/value map of annotations
- auto
Scaling K8sNode Pool Auto Scaling - [string] Whether the Node Pool should autoscale. For more details, please check the API documentation
- cpu
Family string - [string] The desired CPU Family - See the API documentation for more information. This attribute is immutable.
- k8s
Node stringPool Id - labels {[key: string]: string}
- [map] A key/value map of labels
- lans
K8s
Node Pool Lan[] - [list] A list of numeric LAN id's you want this node pool to be part of. For more details, please check the API documentation, as well as the example above
- maintenance
Window K8sNode Pool Maintenance Window - See the maintenance_window section in the example above
- name string
- [string] The name of the Kubernetes Cluster. This attribute is immutable.
- public
Ips string[] - [list] A list of public IPs associated with the node pool; must have at least
node_count + 1
elements - server
Type string - [string] The server type for the compute engine - See the API documentation for more information. Possible values:
DedicatedCore
,VCPU
- timeouts
K8s
Node Pool Timeouts
- availability_
zone str - [string] - The desired Compute availability zone - See the API documentation for more information. This attribute is immutable.
- cores_
count float - [int] - The CPU cores count for each node of the node pool. This attribute is immutable.
- datacenter_
id str - [string] A Datacenter's UUID
- k8s_
cluster_ strid - [string] A k8s cluster's UUID
- k8s_
version str - [string] The desired Kubernetes Version. For supported values, please check the API documentation. Downgrades are not supported. The provider will ignore downgrades of patch level.
- node_
count float - [int] - The desired number of nodes in the node pool
- ram_
size float - [int] - The desired amount of RAM, in MB. This attribute is immutable.
- storage_
size float - [int] - The size of the volume in GB. The size should be greater than 10GB. This attribute is immutable.
- storage_
type str - [string] - The desired storage type - SSD/HDD. This attribute is immutable.
- allow_
replace bool - When set to true, allows the update of immutable fields by destroying and re-creating the node pool
- annotations Mapping[str, str]
- [map] A key/value map of annotations
- auto_
scaling K8sNode Pool Auto Scaling Args - [string] Whether the Node Pool should autoscale. For more details, please check the API documentation
- cpu_
family str - [string] The desired CPU Family - See the API documentation for more information. This attribute is immutable.
- k8s_
node_ strpool_ id - labels Mapping[str, str]
- [map] A key/value map of labels
- lans
Sequence[K8s
Node Pool Lan Args] - [list] A list of numeric LAN id's you want this node pool to be part of. For more details, please check the API documentation, as well as the example above
- maintenance_
window K8sNode Pool Maintenance Window Args - See the maintenance_window section in the example above
- name str
- [string] The name of the Kubernetes Cluster. This attribute is immutable.
- public_
ips Sequence[str] - [list] A list of public IPs associated with the node pool; must have at least
node_count + 1
elements - server_
type str - [string] The server type for the compute engine - See the API documentation for more information. Possible values:
DedicatedCore
,VCPU
- timeouts
K8s
Node Pool Timeouts Args
- availability
Zone String - [string] - The desired Compute availability zone - See the API documentation for more information. This attribute is immutable.
- cores
Count Number - [int] - The CPU cores count for each node of the node pool. This attribute is immutable.
- datacenter
Id String - [string] A Datacenter's UUID
- k8s
Cluster StringId - [string] A k8s cluster's UUID
- k8s
Version String - [string] The desired Kubernetes Version. For supported values, please check the API documentation. Downgrades are not supported. The provider will ignore downgrades of patch level.
- node
Count Number - [int] - The desired number of nodes in the node pool
- ram
Size Number - [int] - The desired amount of RAM, in MB. This attribute is immutable.
- storage
Size Number - [int] - The size of the volume in GB. The size should be greater than 10GB. This attribute is immutable.
- storage
Type String - [string] - The desired storage type - SSD/HDD. This attribute is immutable.
- allow
Replace Boolean - When set to true, allows the update of immutable fields by destroying and re-creating the node pool
- annotations Map<String>
- [map] A key/value map of annotations
- auto
Scaling Property Map - [string] Whether the Node Pool should autoscale. For more details, please check the API documentation
- cpu
Family String - [string] The desired CPU Family - See the API documentation for more information. This attribute is immutable.
- k8s
Node StringPool Id - labels Map<String>
- [map] A key/value map of labels
- lans List<Property Map>
- [list] A list of numeric LAN id's you want this node pool to be part of. For more details, please check the API documentation, as well as the example above
- maintenance
Window Property Map - See the maintenance_window section in the example above
- name String
- [string] The name of the Kubernetes Cluster. This attribute is immutable.
- public
Ips List<String> - [list] A list of public IPs associated with the node pool; must have at least
node_count + 1
elements - server
Type String - [string] The server type for the compute engine - See the API documentation for more information. Possible values:
DedicatedCore
,VCPU
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the K8sNodePool resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing K8sNodePool Resource
Get an existing K8sNodePool 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?: K8sNodePoolState, opts?: CustomResourceOptions): K8sNodePool
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_replace: Optional[bool] = None,
annotations: Optional[Mapping[str, str]] = None,
auto_scaling: Optional[K8sNodePoolAutoScalingArgs] = None,
availability_zone: Optional[str] = None,
cores_count: Optional[float] = None,
cpu_family: Optional[str] = None,
datacenter_id: Optional[str] = None,
k8s_cluster_id: Optional[str] = None,
k8s_node_pool_id: Optional[str] = None,
k8s_version: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
lans: Optional[Sequence[K8sNodePoolLanArgs]] = None,
maintenance_window: Optional[K8sNodePoolMaintenanceWindowArgs] = None,
name: Optional[str] = None,
node_count: Optional[float] = None,
public_ips: Optional[Sequence[str]] = None,
ram_size: Optional[float] = None,
server_type: Optional[str] = None,
storage_size: Optional[float] = None,
storage_type: Optional[str] = None,
timeouts: Optional[K8sNodePoolTimeoutsArgs] = None) -> K8sNodePool
func GetK8sNodePool(ctx *Context, name string, id IDInput, state *K8sNodePoolState, opts ...ResourceOption) (*K8sNodePool, error)
public static K8sNodePool Get(string name, Input<string> id, K8sNodePoolState? state, CustomResourceOptions? opts = null)
public static K8sNodePool get(String name, Output<String> id, K8sNodePoolState state, CustomResourceOptions options)
resources: _: type: ionoscloud:K8sNodePool 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.
- Allow
Replace bool - When set to true, allows the update of immutable fields by destroying and re-creating the node pool
- Annotations Dictionary<string, string>
- [map] A key/value map of annotations
- Auto
Scaling K8sNode Pool Auto Scaling - [string] Whether the Node Pool should autoscale. For more details, please check the API documentation
- Availability
Zone string - [string] - The desired Compute availability zone - See the API documentation for more information. This attribute is immutable.
- Cores
Count double - [int] - The CPU cores count for each node of the node pool. This attribute is immutable.
- Cpu
Family string - [string] The desired CPU Family - See the API documentation for more information. This attribute is immutable.
- Datacenter
Id string - [string] A Datacenter's UUID
- K8s
Cluster stringId - [string] A k8s cluster's UUID
- K8s
Node stringPool Id - K8s
Version string - [string] The desired Kubernetes Version. For supported values, please check the API documentation. Downgrades are not supported. The provider will ignore downgrades of patch level.
- Labels Dictionary<string, string>
- [map] A key/value map of labels
- Lans
List<K8s
Node Pool Lan> - [list] A list of numeric LAN id's you want this node pool to be part of. For more details, please check the API documentation, as well as the example above
- Maintenance
Window K8sNode Pool Maintenance Window - See the maintenance_window section in the example above
- Name string
- [string] The name of the Kubernetes Cluster. This attribute is immutable.
- Node
Count double - [int] - The desired number of nodes in the node pool
- Public
Ips List<string> - [list] A list of public IPs associated with the node pool; must have at least
node_count + 1
elements - Ram
Size double - [int] - The desired amount of RAM, in MB. This attribute is immutable.
- Server
Type string - [string] The server type for the compute engine - See the API documentation for more information. Possible values:
DedicatedCore
,VCPU
- Storage
Size double - [int] - The size of the volume in GB. The size should be greater than 10GB. This attribute is immutable.
- Storage
Type string - [string] - The desired storage type - SSD/HDD. This attribute is immutable.
- Timeouts
K8s
Node Pool Timeouts
- Allow
Replace bool - When set to true, allows the update of immutable fields by destroying and re-creating the node pool
- Annotations map[string]string
- [map] A key/value map of annotations
- Auto
Scaling K8sNode Pool Auto Scaling Args - [string] Whether the Node Pool should autoscale. For more details, please check the API documentation
- Availability
Zone string - [string] - The desired Compute availability zone - See the API documentation for more information. This attribute is immutable.
- Cores
Count float64 - [int] - The CPU cores count for each node of the node pool. This attribute is immutable.
- Cpu
Family string - [string] The desired CPU Family - See the API documentation for more information. This attribute is immutable.
- Datacenter
Id string - [string] A Datacenter's UUID
- K8s
Cluster stringId - [string] A k8s cluster's UUID
- K8s
Node stringPool Id - K8s
Version string - [string] The desired Kubernetes Version. For supported values, please check the API documentation. Downgrades are not supported. The provider will ignore downgrades of patch level.
- Labels map[string]string
- [map] A key/value map of labels
- Lans
[]K8s
Node Pool Lan Args - [list] A list of numeric LAN id's you want this node pool to be part of. For more details, please check the API documentation, as well as the example above
- Maintenance
Window K8sNode Pool Maintenance Window Args - See the maintenance_window section in the example above
- Name string
- [string] The name of the Kubernetes Cluster. This attribute is immutable.
- Node
Count float64 - [int] - The desired number of nodes in the node pool
- Public
Ips []string - [list] A list of public IPs associated with the node pool; must have at least
node_count + 1
elements - Ram
Size float64 - [int] - The desired amount of RAM, in MB. This attribute is immutable.
- Server
Type string - [string] The server type for the compute engine - See the API documentation for more information. Possible values:
DedicatedCore
,VCPU
- Storage
Size float64 - [int] - The size of the volume in GB. The size should be greater than 10GB. This attribute is immutable.
- Storage
Type string - [string] - The desired storage type - SSD/HDD. This attribute is immutable.
- Timeouts
K8s
Node Pool Timeouts Args
- allow
Replace Boolean - When set to true, allows the update of immutable fields by destroying and re-creating the node pool
- annotations Map<String,String>
- [map] A key/value map of annotations
- auto
Scaling K8sNode Pool Auto Scaling - [string] Whether the Node Pool should autoscale. For more details, please check the API documentation
- availability
Zone String - [string] - The desired Compute availability zone - See the API documentation for more information. This attribute is immutable.
- cores
Count Double - [int] - The CPU cores count for each node of the node pool. This attribute is immutable.
- cpu
Family String - [string] The desired CPU Family - See the API documentation for more information. This attribute is immutable.
- datacenter
Id String - [string] A Datacenter's UUID
- k8s
Cluster StringId - [string] A k8s cluster's UUID
- k8s
Node StringPool Id - k8s
Version String - [string] The desired Kubernetes Version. For supported values, please check the API documentation. Downgrades are not supported. The provider will ignore downgrades of patch level.
- labels Map<String,String>
- [map] A key/value map of labels
- lans
List<K8s
Node Pool Lan> - [list] A list of numeric LAN id's you want this node pool to be part of. For more details, please check the API documentation, as well as the example above
- maintenance
Window K8sNode Pool Maintenance Window - See the maintenance_window section in the example above
- name String
- [string] The name of the Kubernetes Cluster. This attribute is immutable.
- node
Count Double - [int] - The desired number of nodes in the node pool
- public
Ips List<String> - [list] A list of public IPs associated with the node pool; must have at least
node_count + 1
elements - ram
Size Double - [int] - The desired amount of RAM, in MB. This attribute is immutable.
- server
Type String - [string] The server type for the compute engine - See the API documentation for more information. Possible values:
DedicatedCore
,VCPU
- storage
Size Double - [int] - The size of the volume in GB. The size should be greater than 10GB. This attribute is immutable.
- storage
Type String - [string] - The desired storage type - SSD/HDD. This attribute is immutable.
- timeouts
K8s
Node Pool Timeouts
- allow
Replace boolean - When set to true, allows the update of immutable fields by destroying and re-creating the node pool
- annotations {[key: string]: string}
- [map] A key/value map of annotations
- auto
Scaling K8sNode Pool Auto Scaling - [string] Whether the Node Pool should autoscale. For more details, please check the API documentation
- availability
Zone string - [string] - The desired Compute availability zone - See the API documentation for more information. This attribute is immutable.
- cores
Count number - [int] - The CPU cores count for each node of the node pool. This attribute is immutable.
- cpu
Family string - [string] The desired CPU Family - See the API documentation for more information. This attribute is immutable.
- datacenter
Id string - [string] A Datacenter's UUID
- k8s
Cluster stringId - [string] A k8s cluster's UUID
- k8s
Node stringPool Id - k8s
Version string - [string] The desired Kubernetes Version. For supported values, please check the API documentation. Downgrades are not supported. The provider will ignore downgrades of patch level.
- labels {[key: string]: string}
- [map] A key/value map of labels
- lans
K8s
Node Pool Lan[] - [list] A list of numeric LAN id's you want this node pool to be part of. For more details, please check the API documentation, as well as the example above
- maintenance
Window K8sNode Pool Maintenance Window - See the maintenance_window section in the example above
- name string
- [string] The name of the Kubernetes Cluster. This attribute is immutable.
- node
Count number - [int] - The desired number of nodes in the node pool
- public
Ips string[] - [list] A list of public IPs associated with the node pool; must have at least
node_count + 1
elements - ram
Size number - [int] - The desired amount of RAM, in MB. This attribute is immutable.
- server
Type string - [string] The server type for the compute engine - See the API documentation for more information. Possible values:
DedicatedCore
,VCPU
- storage
Size number - [int] - The size of the volume in GB. The size should be greater than 10GB. This attribute is immutable.
- storage
Type string - [string] - The desired storage type - SSD/HDD. This attribute is immutable.
- timeouts
K8s
Node Pool Timeouts
- allow_
replace bool - When set to true, allows the update of immutable fields by destroying and re-creating the node pool
- annotations Mapping[str, str]
- [map] A key/value map of annotations
- auto_
scaling K8sNode Pool Auto Scaling Args - [string] Whether the Node Pool should autoscale. For more details, please check the API documentation
- availability_
zone str - [string] - The desired Compute availability zone - See the API documentation for more information. This attribute is immutable.
- cores_
count float - [int] - The CPU cores count for each node of the node pool. This attribute is immutable.
- cpu_
family str - [string] The desired CPU Family - See the API documentation for more information. This attribute is immutable.
- datacenter_
id str - [string] A Datacenter's UUID
- k8s_
cluster_ strid - [string] A k8s cluster's UUID
- k8s_
node_ strpool_ id - k8s_
version str - [string] The desired Kubernetes Version. For supported values, please check the API documentation. Downgrades are not supported. The provider will ignore downgrades of patch level.
- labels Mapping[str, str]
- [map] A key/value map of labels
- lans
Sequence[K8s
Node Pool Lan Args] - [list] A list of numeric LAN id's you want this node pool to be part of. For more details, please check the API documentation, as well as the example above
- maintenance_
window K8sNode Pool Maintenance Window Args - See the maintenance_window section in the example above
- name str
- [string] The name of the Kubernetes Cluster. This attribute is immutable.
- node_
count float - [int] - The desired number of nodes in the node pool
- public_
ips Sequence[str] - [list] A list of public IPs associated with the node pool; must have at least
node_count + 1
elements - ram_
size float - [int] - The desired amount of RAM, in MB. This attribute is immutable.
- server_
type str - [string] The server type for the compute engine - See the API documentation for more information. Possible values:
DedicatedCore
,VCPU
- storage_
size float - [int] - The size of the volume in GB. The size should be greater than 10GB. This attribute is immutable.
- storage_
type str - [string] - The desired storage type - SSD/HDD. This attribute is immutable.
- timeouts
K8s
Node Pool Timeouts Args
- allow
Replace Boolean - When set to true, allows the update of immutable fields by destroying and re-creating the node pool
- annotations Map<String>
- [map] A key/value map of annotations
- auto
Scaling Property Map - [string] Whether the Node Pool should autoscale. For more details, please check the API documentation
- availability
Zone String - [string] - The desired Compute availability zone - See the API documentation for more information. This attribute is immutable.
- cores
Count Number - [int] - The CPU cores count for each node of the node pool. This attribute is immutable.
- cpu
Family String - [string] The desired CPU Family - See the API documentation for more information. This attribute is immutable.
- datacenter
Id String - [string] A Datacenter's UUID
- k8s
Cluster StringId - [string] A k8s cluster's UUID
- k8s
Node StringPool Id - k8s
Version String - [string] The desired Kubernetes Version. For supported values, please check the API documentation. Downgrades are not supported. The provider will ignore downgrades of patch level.
- labels Map<String>
- [map] A key/value map of labels
- lans List<Property Map>
- [list] A list of numeric LAN id's you want this node pool to be part of. For more details, please check the API documentation, as well as the example above
- maintenance
Window Property Map - See the maintenance_window section in the example above
- name String
- [string] The name of the Kubernetes Cluster. This attribute is immutable.
- node
Count Number - [int] - The desired number of nodes in the node pool
- public
Ips List<String> - [list] A list of public IPs associated with the node pool; must have at least
node_count + 1
elements - ram
Size Number - [int] - The desired amount of RAM, in MB. This attribute is immutable.
- server
Type String - [string] The server type for the compute engine - See the API documentation for more information. Possible values:
DedicatedCore
,VCPU
- storage
Size Number - [int] - The size of the volume in GB. The size should be greater than 10GB. This attribute is immutable.
- storage
Type String - [string] - The desired storage type - SSD/HDD. This attribute is immutable.
- timeouts Property Map
Supporting Types
K8sNodePoolAutoScaling, K8sNodePoolAutoScalingArgs
- Max
Node doubleCount - [int] The maximum number of worker nodes that the node pool can scale to. Should be greater than min_node_count
- Min
Node doubleCount - [int] The minimum number of worker nodes the node pool can scale down to. Should be less than max_node_count
- Max
Node float64Count - [int] The maximum number of worker nodes that the node pool can scale to. Should be greater than min_node_count
- Min
Node float64Count - [int] The minimum number of worker nodes the node pool can scale down to. Should be less than max_node_count
- max
Node DoubleCount - [int] The maximum number of worker nodes that the node pool can scale to. Should be greater than min_node_count
- min
Node DoubleCount - [int] The minimum number of worker nodes the node pool can scale down to. Should be less than max_node_count
- max
Node numberCount - [int] The maximum number of worker nodes that the node pool can scale to. Should be greater than min_node_count
- min
Node numberCount - [int] The minimum number of worker nodes the node pool can scale down to. Should be less than max_node_count
- max_
node_ floatcount - [int] The maximum number of worker nodes that the node pool can scale to. Should be greater than min_node_count
- min_
node_ floatcount - [int] The minimum number of worker nodes the node pool can scale down to. Should be less than max_node_count
- max
Node NumberCount - [int] The maximum number of worker nodes that the node pool can scale to. Should be greater than min_node_count
- min
Node NumberCount - [int] The minimum number of worker nodes the node pool can scale down to. Should be less than max_node_count
K8sNodePoolLan, K8sNodePoolLanArgs
- Id double
- [int] The LAN ID of an existing LAN at the related datacenter
- Dhcp bool
- [boolean] Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP. Default value is
true
- Routes
List<K8s
Node Pool Lan Route> - An array of additional LANs attached to worker nodes
- Id float64
- [int] The LAN ID of an existing LAN at the related datacenter
- Dhcp bool
- [boolean] Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP. Default value is
true
- Routes
[]K8s
Node Pool Lan Route - An array of additional LANs attached to worker nodes
- id Double
- [int] The LAN ID of an existing LAN at the related datacenter
- dhcp Boolean
- [boolean] Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP. Default value is
true
- routes
List<K8s
Node Pool Lan Route> - An array of additional LANs attached to worker nodes
- id number
- [int] The LAN ID of an existing LAN at the related datacenter
- dhcp boolean
- [boolean] Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP. Default value is
true
- routes
K8s
Node Pool Lan Route[] - An array of additional LANs attached to worker nodes
- id float
- [int] The LAN ID of an existing LAN at the related datacenter
- dhcp bool
- [boolean] Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP. Default value is
true
- routes
Sequence[K8s
Node Pool Lan Route] - An array of additional LANs attached to worker nodes
- id Number
- [int] The LAN ID of an existing LAN at the related datacenter
- dhcp Boolean
- [boolean] Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP. Default value is
true
- routes List<Property Map>
- An array of additional LANs attached to worker nodes
K8sNodePoolLanRoute, K8sNodePoolLanRouteArgs
- gateway_
ip str - [string] IPv4 or IPv6 Gateway IP for the route
- network str
- [string] IPv4 or IPv6 CIDR to be routed via the interface
K8sNodePoolMaintenanceWindow, K8sNodePoolMaintenanceWindowArgs
- Day
Of stringThe Week - [string] Day of the week when maintenance is allowed
- Time string
- [string] A clock time in the day when maintenance is allowed
- Day
Of stringThe Week - [string] Day of the week when maintenance is allowed
- Time string
- [string] A clock time in the day when maintenance is allowed
- day
Of StringThe Week - [string] Day of the week when maintenance is allowed
- time String
- [string] A clock time in the day when maintenance is allowed
- day
Of stringThe Week - [string] Day of the week when maintenance is allowed
- time string
- [string] A clock time in the day when maintenance is allowed
- day_
of_ strthe_ week - [string] Day of the week when maintenance is allowed
- time str
- [string] A clock time in the day when maintenance is allowed
- day
Of StringThe Week - [string] Day of the week when maintenance is allowed
- time String
- [string] A clock time in the day when maintenance is allowed
K8sNodePoolTimeouts, K8sNodePoolTimeoutsArgs
Import
A Kubernetes Node Pool resource can be imported using its Kubernetes cluster’s uuid as well as its own UUID, both of which you can retrieve from the cloud API: resource id
, e.g.:
$ pulumi import ionoscloud:index/k8sNodePool:K8sNodePool demo k8s_cluster_uuid/k8s_nodepool_id
This can be helpful when you want to import kubernetes node pools which you have already created manually or using other means, outside of terraform, towards the goal of managing them via Terraform
⚠️ **_Warning: **During a maintenance window, k8s can update your k8s_version
if the old one reaches end of life. This upgrade will not be shown in the plan, as we prevent
terraform from doing a downgrade, as downgrading k8s_version
is not supported._**
⚠️ Warning: If you are upgrading from v5.x.x to v6.x.x: You have to modify you plan for lans to match the new structure, by putting the ids from the old slice in lans.id fields. This is not backwards compatible.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.