ionoscloud.k8s.getNodePool
Explore with Pulumi AI
The k8s Node Pool data source can be used to search for and return existing k8s Node Pools. If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned. When this happens, please refine your search string so that it is specific enough to return only one result.
Example Usage
By ID
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.k8s.getNodePool({
id: "k8s_nodepool_id",
k8sClusterId: "k8s_cluster_id",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.k8s.get_node_pool(id="k8s_nodepool_id",
k8s_cluster_id="k8s_cluster_id")
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/k8s"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := k8s.LookupNodePool(ctx, &k8s.LookupNodePoolArgs{
Id: pulumi.StringRef("k8s_nodepool_id"),
K8sClusterId: "k8s_cluster_id",
}, nil)
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 example = Ionoscloud.K8s.GetNodePool.Invoke(new()
{
Id = "k8s_nodepool_id",
K8sClusterId = "k8s_cluster_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.k8s.K8sFunctions;
import com.pulumi.ionoscloud.k8s.inputs.GetNodePoolArgs;
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) {
final var example = K8sFunctions.getNodePool(GetNodePoolArgs.builder()
.id("k8s_nodepool_id")
.k8sClusterId("k8s_cluster_id")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:k8s:getNodePool
arguments:
id: k8s_nodepool_id
k8sClusterId: k8s_cluster_id
By Name
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.k8s.getNodePool({
name: "k8s NodePool Example",
k8sClusterId: "k8s_cluster_id",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.k8s.get_node_pool(name="k8s NodePool Example",
k8s_cluster_id="k8s_cluster_id")
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/k8s"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := k8s.LookupNodePool(ctx, &k8s.LookupNodePoolArgs{
Name: pulumi.StringRef("k8s NodePool Example"),
K8sClusterId: "k8s_cluster_id",
}, nil)
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 example = Ionoscloud.K8s.GetNodePool.Invoke(new()
{
Name = "k8s NodePool Example",
K8sClusterId = "k8s_cluster_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.k8s.K8sFunctions;
import com.pulumi.ionoscloud.k8s.inputs.GetNodePoolArgs;
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) {
final var example = K8sFunctions.getNodePool(GetNodePoolArgs.builder()
.name("k8s NodePool Example")
.k8sClusterId("k8s_cluster_id")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:k8s:getNodePool
arguments:
name: k8s NodePool Example
k8sClusterId: k8s_cluster_id
Using getNodePool
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNodePool(args: GetNodePoolArgs, opts?: InvokeOptions): Promise<GetNodePoolResult>
function getNodePoolOutput(args: GetNodePoolOutputArgs, opts?: InvokeOptions): Output<GetNodePoolResult>
def get_node_pool(id: Optional[str] = None,
k8s_cluster_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNodePoolResult
def get_node_pool_output(id: Optional[pulumi.Input[str]] = None,
k8s_cluster_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNodePoolResult]
func LookupNodePool(ctx *Context, args *LookupNodePoolArgs, opts ...InvokeOption) (*LookupNodePoolResult, error)
func LookupNodePoolOutput(ctx *Context, args *LookupNodePoolOutputArgs, opts ...InvokeOption) LookupNodePoolResultOutput
> Note: This function is named LookupNodePool
in the Go SDK.
public static class GetNodePool
{
public static Task<GetNodePoolResult> InvokeAsync(GetNodePoolArgs args, InvokeOptions? opts = null)
public static Output<GetNodePoolResult> Invoke(GetNodePoolInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNodePoolResult> getNodePool(GetNodePoolArgs args, InvokeOptions options)
public static Output<GetNodePoolResult> getNodePool(GetNodePoolArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:k8s/getNodePool:getNodePool
arguments:
# arguments dictionary
The following arguments are supported:
- K8s
Cluster stringId - K8s Cluster' UUID
- Id string
ID of the node pool you want to search for.
k8s_cluster_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- Name string
- Name of an existing node pool that you want to search for.
- K8s
Cluster stringId - K8s Cluster' UUID
- Id string
ID of the node pool you want to search for.
k8s_cluster_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- Name string
- Name of an existing node pool that you want to search for.
- k8s
Cluster StringId - K8s Cluster' UUID
- id String
ID of the node pool you want to search for.
k8s_cluster_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- name String
- Name of an existing node pool that you want to search for.
- k8s
Cluster stringId - K8s Cluster' UUID
- id string
ID of the node pool you want to search for.
k8s_cluster_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- name string
- Name of an existing node pool that you want to search for.
- k8s_
cluster_ strid - K8s Cluster' UUID
- id str
ID of the node pool you want to search for.
k8s_cluster_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- name str
- Name of an existing node pool that you want to search for.
- k8s
Cluster StringId - K8s Cluster' UUID
- id String
ID of the node pool you want to search for.
k8s_cluster_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- name String
- Name of an existing node pool that you want to search for.
getNodePool Result
The following output properties are available:
- Annotations Dictionary<string, string>
- A map of annotations in the form of key > value
- Auto
Scalings List<Ionoscloud.Get Node Pool Auto Scaling> - The range defining the minimum and maximum number of worker nodes that the managed node group can scale in
- Availability
Zone string - The compute availability zone in which the nodes should exist
- Available
Upgrade List<string>Versions - A list of kubernetes versions available for upgrade
- Cores
Count int - CPU cores count
- Cpu
Family string - CPU Family
- Datacenter
Id string - The UUID of the VDC
- Id string
- The LAN ID of an existing LAN at the related datacenter
- K8s
Cluster stringId - ID of the cluster this node pool is part of
- K8s
Version string - The kubernetes version
- Labels Dictionary<string, string>
- A map of labels in the form of key > value
- Lans
List<Ionoscloud.
Get Node Pool Lan> - A list of Local Area Networks the node pool is a part of
- Maintenance
Windows List<Ionoscloud.Get Node Pool Maintenance Window> - A maintenance window comprise of a day of the week and a time for maintenance to be allowed
- Name string
- name of the node pool
- Node
Count int - The number of nodes in this node pool
- Public
Ips List<string> - The list of fixed IPs associated with this node pool
- Ram
Size int - The amount of RAM in MB
- State string
- one of "AVAILABLE", "INACTIVE", "BUSY", "DEPLOYING", "ACTIVE", "FAILED", "SUSPENDED", "FAILED_SUSPENDED", "UPDATING", "FAILED_UPDATING", "DESTROYING", "FAILED_DESTROYING", "TERMINATED"
- Storage
Size int - The size of the volume in GB. The size should be greater than 10GB.
- Storage
Type string - HDD or SDD
- Annotations map[string]string
- A map of annotations in the form of key > value
- Auto
Scalings []GetNode Pool Auto Scaling - The range defining the minimum and maximum number of worker nodes that the managed node group can scale in
- Availability
Zone string - The compute availability zone in which the nodes should exist
- Available
Upgrade []stringVersions - A list of kubernetes versions available for upgrade
- Cores
Count int - CPU cores count
- Cpu
Family string - CPU Family
- Datacenter
Id string - The UUID of the VDC
- Id string
- The LAN ID of an existing LAN at the related datacenter
- K8s
Cluster stringId - ID of the cluster this node pool is part of
- K8s
Version string - The kubernetes version
- Labels map[string]string
- A map of labels in the form of key > value
- Lans
[]Get
Node Pool Lan - A list of Local Area Networks the node pool is a part of
- Maintenance
Windows []GetNode Pool Maintenance Window - A maintenance window comprise of a day of the week and a time for maintenance to be allowed
- Name string
- name of the node pool
- Node
Count int - The number of nodes in this node pool
- Public
Ips []string - The list of fixed IPs associated with this node pool
- Ram
Size int - The amount of RAM in MB
- State string
- one of "AVAILABLE", "INACTIVE", "BUSY", "DEPLOYING", "ACTIVE", "FAILED", "SUSPENDED", "FAILED_SUSPENDED", "UPDATING", "FAILED_UPDATING", "DESTROYING", "FAILED_DESTROYING", "TERMINATED"
- Storage
Size int - The size of the volume in GB. The size should be greater than 10GB.
- Storage
Type string - HDD or SDD
- annotations Map<String,String>
- A map of annotations in the form of key > value
- auto
Scalings List<GetNode Pool Auto Scaling> - The range defining the minimum and maximum number of worker nodes that the managed node group can scale in
- availability
Zone String - The compute availability zone in which the nodes should exist
- available
Upgrade List<String>Versions - A list of kubernetes versions available for upgrade
- cores
Count Integer - CPU cores count
- cpu
Family String - CPU Family
- datacenter
Id String - The UUID of the VDC
- id String
- The LAN ID of an existing LAN at the related datacenter
- k8s
Cluster StringId - ID of the cluster this node pool is part of
- k8s
Version String - The kubernetes version
- labels Map<String,String>
- A map of labels in the form of key > value
- lans
List<Get
Node Pool Lan> - A list of Local Area Networks the node pool is a part of
- maintenance
Windows List<GetNode Pool Maintenance Window> - A maintenance window comprise of a day of the week and a time for maintenance to be allowed
- name String
- name of the node pool
- node
Count Integer - The number of nodes in this node pool
- public
Ips List<String> - The list of fixed IPs associated with this node pool
- ram
Size Integer - The amount of RAM in MB
- state String
- one of "AVAILABLE", "INACTIVE", "BUSY", "DEPLOYING", "ACTIVE", "FAILED", "SUSPENDED", "FAILED_SUSPENDED", "UPDATING", "FAILED_UPDATING", "DESTROYING", "FAILED_DESTROYING", "TERMINATED"
- storage
Size Integer - The size of the volume in GB. The size should be greater than 10GB.
- storage
Type String - HDD or SDD
- annotations {[key: string]: string}
- A map of annotations in the form of key > value
- auto
Scalings GetNode Pool Auto Scaling[] - The range defining the minimum and maximum number of worker nodes that the managed node group can scale in
- availability
Zone string - The compute availability zone in which the nodes should exist
- available
Upgrade string[]Versions - A list of kubernetes versions available for upgrade
- cores
Count number - CPU cores count
- cpu
Family string - CPU Family
- datacenter
Id string - The UUID of the VDC
- id string
- The LAN ID of an existing LAN at the related datacenter
- k8s
Cluster stringId - ID of the cluster this node pool is part of
- k8s
Version string - The kubernetes version
- labels {[key: string]: string}
- A map of labels in the form of key > value
- lans
Get
Node Pool Lan[] - A list of Local Area Networks the node pool is a part of
- maintenance
Windows GetNode Pool Maintenance Window[] - A maintenance window comprise of a day of the week and a time for maintenance to be allowed
- name string
- name of the node pool
- node
Count number - The number of nodes in this node pool
- public
Ips string[] - The list of fixed IPs associated with this node pool
- ram
Size number - The amount of RAM in MB
- state string
- one of "AVAILABLE", "INACTIVE", "BUSY", "DEPLOYING", "ACTIVE", "FAILED", "SUSPENDED", "FAILED_SUSPENDED", "UPDATING", "FAILED_UPDATING", "DESTROYING", "FAILED_DESTROYING", "TERMINATED"
- storage
Size number - The size of the volume in GB. The size should be greater than 10GB.
- storage
Type string - HDD or SDD
- annotations Mapping[str, str]
- A map of annotations in the form of key > value
- auto_
scalings Sequence[GetNode Pool Auto Scaling] - The range defining the minimum and maximum number of worker nodes that the managed node group can scale in
- availability_
zone str - The compute availability zone in which the nodes should exist
- available_
upgrade_ Sequence[str]versions - A list of kubernetes versions available for upgrade
- cores_
count int - CPU cores count
- cpu_
family str - CPU Family
- datacenter_
id str - The UUID of the VDC
- id str
- The LAN ID of an existing LAN at the related datacenter
- k8s_
cluster_ strid - ID of the cluster this node pool is part of
- k8s_
version str - The kubernetes version
- labels Mapping[str, str]
- A map of labels in the form of key > value
- lans
Sequence[Get
Node Pool Lan] - A list of Local Area Networks the node pool is a part of
- maintenance_
windows Sequence[GetNode Pool Maintenance Window] - A maintenance window comprise of a day of the week and a time for maintenance to be allowed
- name str
- name of the node pool
- node_
count int - The number of nodes in this node pool
- public_
ips Sequence[str] - The list of fixed IPs associated with this node pool
- ram_
size int - The amount of RAM in MB
- state str
- one of "AVAILABLE", "INACTIVE", "BUSY", "DEPLOYING", "ACTIVE", "FAILED", "SUSPENDED", "FAILED_SUSPENDED", "UPDATING", "FAILED_UPDATING", "DESTROYING", "FAILED_DESTROYING", "TERMINATED"
- storage_
size int - The size of the volume in GB. The size should be greater than 10GB.
- storage_
type str - HDD or SDD
- annotations Map<String>
- A map of annotations in the form of key > value
- auto
Scalings List<Property Map> - The range defining the minimum and maximum number of worker nodes that the managed node group can scale in
- availability
Zone String - The compute availability zone in which the nodes should exist
- available
Upgrade List<String>Versions - A list of kubernetes versions available for upgrade
- cores
Count Number - CPU cores count
- cpu
Family String - CPU Family
- datacenter
Id String - The UUID of the VDC
- id String
- The LAN ID of an existing LAN at the related datacenter
- k8s
Cluster StringId - ID of the cluster this node pool is part of
- k8s
Version String - The kubernetes version
- labels Map<String>
- A map of labels in the form of key > value
- lans List<Property Map>
- A list of Local Area Networks the node pool is a part of
- maintenance
Windows List<Property Map> - A maintenance window comprise of a day of the week and a time for maintenance to be allowed
- name String
- name of the node pool
- node
Count Number - The number of nodes in this node pool
- public
Ips List<String> - The list of fixed IPs associated with this node pool
- ram
Size Number - The amount of RAM in MB
- state String
- one of "AVAILABLE", "INACTIVE", "BUSY", "DEPLOYING", "ACTIVE", "FAILED", "SUSPENDED", "FAILED_SUSPENDED", "UPDATING", "FAILED_UPDATING", "DESTROYING", "FAILED_DESTROYING", "TERMINATED"
- storage
Size Number - The size of the volume in GB. The size should be greater than 10GB.
- storage
Type String - HDD or SDD
Supporting Types
GetNodePoolAutoScaling
- Max
Node intCount - The maximum number of worker nodes that the node pool can scale to
- Min
Node intCount - The minimum number of worker nodes the node pool can scale down to
- Max
Node intCount - The maximum number of worker nodes that the node pool can scale to
- Min
Node intCount - The minimum number of worker nodes the node pool can scale down to
- max
Node IntegerCount - The maximum number of worker nodes that the node pool can scale to
- min
Node IntegerCount - The minimum number of worker nodes the node pool can scale down to
- max
Node numberCount - The maximum number of worker nodes that the node pool can scale to
- min
Node numberCount - The minimum number of worker nodes the node pool can scale down to
- max_
node_ intcount - The maximum number of worker nodes that the node pool can scale to
- min_
node_ intcount - The minimum number of worker nodes the node pool can scale down to
- max
Node NumberCount - The maximum number of worker nodes that the node pool can scale to
- min
Node NumberCount - The minimum number of worker nodes the node pool can scale down to
GetNodePoolLan
- Dhcp bool
- Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP
- Id int
ID of the node pool you want to search for.
k8s_cluster_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- Routes
List<Ionoscloud.
Get Node Pool Lan Route> - An array of additional LANs attached to worker nodes
- Dhcp bool
- Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP
- Id int
ID of the node pool you want to search for.
k8s_cluster_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- Routes
[]Get
Node Pool Lan Route - An array of additional LANs attached to worker nodes
- dhcp Boolean
- Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP
- id Integer
ID of the node pool you want to search for.
k8s_cluster_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- routes
List<Get
Node Pool Lan Route> - An array of additional LANs attached to worker nodes
- dhcp boolean
- Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP
- id number
ID of the node pool you want to search for.
k8s_cluster_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- routes
Get
Node Pool Lan Route[] - An array of additional LANs attached to worker nodes
- dhcp bool
- Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP
- id int
ID of the node pool you want to search for.
k8s_cluster_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- routes
Sequence[Get
Node Pool Lan Route] - An array of additional LANs attached to worker nodes
- dhcp Boolean
- Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP
- id Number
ID of the node pool you want to search for.
k8s_cluster_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- routes List<Property Map>
- An array of additional LANs attached to worker nodes
GetNodePoolLanRoute
- gateway_
ip str - IPv4 or IPv6 Gateway IP for the route
- network str
- IPv4 or IPv6 CIDR to be routed via the interface
GetNodePoolMaintenanceWindow
- Day
Of stringThe Week - Day of the week when maintenance is allowed
- Time string
- A clock time in the day when maintenance is allowed
- Day
Of stringThe Week - Day of the week when maintenance is allowed
- Time string
- A clock time in the day when maintenance is allowed
- day
Of StringThe Week - Day of the week when maintenance is allowed
- time String
- A clock time in the day when maintenance is allowed
- day
Of stringThe Week - Day of the week when maintenance is allowed
- time string
- A clock time in the day when maintenance is allowed
- day_
of_ strthe_ week - Day of the week when maintenance is allowed
- time str
- A clock time in the day when maintenance is allowed
- day
Of StringThe Week - Day of the week when maintenance is allowed
- time String
- A clock time in the day when maintenance is allowed
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.