GetNodePool
Use this data source to retrieve information about a Rancher v2 Node Pool resource.
Example Usage
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Rancher2.GetNodePool.InvokeAsync(new Rancher2.GetNodePoolArgs
{
ClusterId = rancher2_cluster.Foo_custom.Id,
Name = "foo",
}));
}
}
Coming soon!
import pulumi
import pulumi_rancher2 as rancher2
foo = rancher2.get_node_pool(cluster_id=rancher2_cluster["foo-custom"]["id"],
name="foo")import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
const foo = rancher2_cluster_foo_custom.id.apply(id => rancher2.getNodePool({
clusterId: id,
name: "foo",
}, { async: true }));Using GetNodePool
function getNodePool(args: GetNodePoolArgs, opts?: InvokeOptions): Promise<GetNodePoolResult>function get_node_pool(cluster_id=None, name=None, node_template_id=None, opts=None)func LookupNodePool(ctx *Context, args *LookupNodePoolArgs, opts ...InvokeOption) (*LookupNodePoolResult, error)Note: This function is named
LookupNodePoolin the Go SDK.
public static class GetNodePool {
public static Task<GetNodePoolResult> InvokeAsync(GetNodePoolArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- cluster_
id str The RKE cluster id to use Node Pool (string)
- name str
The name of the Node Pool (string)
- node_
template_ strid The Node Template ID to use for node creation (string)
GetNodePool Result
The following output properties are available:
- Annotations Dictionary<string, object>
(Computed) Annotations for Node Pool object (map)
- Cluster
Id string - Control
Plane bool (Computed) RKE control plane role for created nodes (bool)
- Delete
Not intReady After Secs (Computed) Delete not ready node after secs. Default
0(int)- Etcd bool
(Computed) RKE etcd role for created nodes (bool)
- Hostname
Prefix string (Computed) The prefix for created nodes of the Node Pool (string)
- Id string
The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, object>
(Computed) Labels for Node Pool object (map)
- Name string
- Node
Taints List<GetNode Pool Node Taint> (Computed) Node taints (List)
- Node
Template stringId - Quantity int
(Computed) The number of nodes to create on Node Pool (int)
- Worker bool
(Computed) RKE role role for created nodes (bool)
- Annotations map[string]interface{}
(Computed) Annotations for Node Pool object (map)
- Cluster
Id string - Control
Plane bool (Computed) RKE control plane role for created nodes (bool)
- Delete
Not intReady After Secs (Computed) Delete not ready node after secs. Default
0(int)- Etcd bool
(Computed) RKE etcd role for created nodes (bool)
- Hostname
Prefix string (Computed) The prefix for created nodes of the Node Pool (string)
- Id string
The provider-assigned unique ID for this managed resource.
- Labels map[string]interface{}
(Computed) Labels for Node Pool object (map)
- Name string
- Node
Taints []GetNode Pool Node Taint (Computed) Node taints (List)
- Node
Template stringId - Quantity int
(Computed) The number of nodes to create on Node Pool (int)
- Worker bool
(Computed) RKE role role for created nodes (bool)
- annotations {[key: string]: any}
(Computed) Annotations for Node Pool object (map)
- cluster
Id string - control
Plane boolean (Computed) RKE control plane role for created nodes (bool)
- delete
Not numberReady After Secs (Computed) Delete not ready node after secs. Default
0(int)- etcd boolean
(Computed) RKE etcd role for created nodes (bool)
- hostname
Prefix string (Computed) The prefix for created nodes of the Node Pool (string)
- id string
The provider-assigned unique ID for this managed resource.
- labels {[key: string]: any}
(Computed) Labels for Node Pool object (map)
- name string
- node
Taints GetNode Pool Node Taint[] (Computed) Node taints (List)
- node
Template stringId - quantity number
(Computed) The number of nodes to create on Node Pool (int)
- worker boolean
(Computed) RKE role role for created nodes (bool)
- annotations Dict[str, Any]
(Computed) Annotations for Node Pool object (map)
- cluster_
id str - control_
plane bool (Computed) RKE control plane role for created nodes (bool)
- delete_
not_ floatready_ after_ secs (Computed) Delete not ready node after secs. Default
0(int)- etcd bool
(Computed) RKE etcd role for created nodes (bool)
- hostname_
prefix str (Computed) The prefix for created nodes of the Node Pool (string)
- id str
The provider-assigned unique ID for this managed resource.
- labels Dict[str, Any]
(Computed) Labels for Node Pool object (map)
- name str
- node_
taints List[GetNode Pool Node Taint] (Computed) Node taints (List)
- node_
template_ strid - quantity float
(Computed) The number of nodes to create on Node Pool (int)
- worker bool
(Computed) RKE role role for created nodes (bool)
Supporting Types
GetNodePoolNodeTaint
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.