NodePool
Provides a Rancher v2 Node Pool resource. This can be used to create Node Pool, using Node template for Rancher v2 RKE clusters and retrieve their information.
Create a NodePool Resource
new NodePool(name: string, args: NodePoolArgs, opts?: CustomResourceOptions);def NodePool(resource_name, opts=None, annotations=None, cluster_id=None, control_plane=None, delete_not_ready_after_secs=None, etcd=None, hostname_prefix=None, labels=None, name=None, node_taints=None, node_template_id=None, quantity=None, worker=None, __props__=None);func NewNodePool(ctx *Context, name string, args NodePoolArgs, opts ...ResourceOption) (*NodePool, error)public NodePool(string name, NodePoolArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args NodePoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NodePoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NodePoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
NodePool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The NodePool resource accepts the following input properties:
- Cluster
Id string The RKE cluster id to use Node Pool (string)
- Hostname
Prefix string The prefix for created nodes of the Node Pool (string)
- Node
Template stringId The Node Template ID to use for node creation (string)
- Annotations Dictionary<string, object>
Annotations for Node Pool object (map)
- Control
Plane bool RKE control plane role for created nodes (bool)
- Delete
Not intReady After Secs Delete not ready node after secs. For Rancher v2.3.3 or above. Default
0(int)- Etcd bool
RKE etcd role for created nodes (bool)
- Labels Dictionary<string, object>
Labels for Node Pool object (map)
- Name string
The name of the Node Pool (string)
- Node
Taints List<NodePool Node Taint Args> Node taints. For Rancher v2.3.3 or above (List)
- Quantity int
The number of nodes to create on Node Pool. Default
1. Only values >= 1 allowed (int)- Worker bool
RKE role role for created nodes (bool)
- Cluster
Id string The RKE cluster id to use Node Pool (string)
- Hostname
Prefix string The prefix for created nodes of the Node Pool (string)
- Node
Template stringId The Node Template ID to use for node creation (string)
- Annotations map[string]interface{}
Annotations for Node Pool object (map)
- Control
Plane bool RKE control plane role for created nodes (bool)
- Delete
Not intReady After Secs Delete not ready node after secs. For Rancher v2.3.3 or above. Default
0(int)- Etcd bool
RKE etcd role for created nodes (bool)
- Labels map[string]interface{}
Labels for Node Pool object (map)
- Name string
The name of the Node Pool (string)
- Node
Taints []NodePool Node Taint Node taints. For Rancher v2.3.3 or above (List)
- Quantity int
The number of nodes to create on Node Pool. Default
1. Only values >= 1 allowed (int)- Worker bool
RKE role role for created nodes (bool)
- cluster
Id string The RKE cluster id to use Node Pool (string)
- hostname
Prefix string The prefix for created nodes of the Node Pool (string)
- node
Template stringId The Node Template ID to use for node creation (string)
- annotations {[key: string]: any}
Annotations for Node Pool object (map)
- control
Plane boolean RKE control plane role for created nodes (bool)
- delete
Not numberReady After Secs Delete not ready node after secs. For Rancher v2.3.3 or above. Default
0(int)- etcd boolean
RKE etcd role for created nodes (bool)
- labels {[key: string]: any}
Labels for Node Pool object (map)
- name string
The name of the Node Pool (string)
- node
Taints NodePool Node Taint[] Node taints. For Rancher v2.3.3 or above (List)
- quantity number
The number of nodes to create on Node Pool. Default
1. Only values >= 1 allowed (int)- worker boolean
RKE role role for created nodes (bool)
- cluster_
id str The RKE cluster id to use Node Pool (string)
- hostname_
prefix str The prefix for created nodes of the Node Pool (string)
- node_
template_ strid The Node Template ID to use for node creation (string)
- annotations Dict[str, Any]
Annotations for Node Pool object (map)
- control_
plane bool RKE control plane role for created nodes (bool)
- delete_
not_ floatready_ after_ secs Delete not ready node after secs. For Rancher v2.3.3 or above. Default
0(int)- etcd bool
RKE etcd role for created nodes (bool)
- labels Dict[str, Any]
Labels for Node Pool object (map)
- name str
The name of the Node Pool (string)
- node_
taints List[NodePool Node Taint] Node taints. For Rancher v2.3.3 or above (List)
- quantity float
The number of nodes to create on Node Pool. Default
1. Only values >= 1 allowed (int)- worker bool
RKE role role for created nodes (bool)
Outputs
All input properties are implicitly available as output properties. Additionally, the NodePool resource produces the following output properties:
Look up an Existing NodePool Resource
Get an existing NodePool 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?: NodePoolState, opts?: CustomResourceOptions): NodePoolstatic get(resource_name, id, opts=None, annotations=None, cluster_id=None, control_plane=None, delete_not_ready_after_secs=None, etcd=None, hostname_prefix=None, labels=None, name=None, node_taints=None, node_template_id=None, quantity=None, worker=None, __props__=None);func GetNodePool(ctx *Context, name string, id IDInput, state *NodePoolState, opts ...ResourceOption) (*NodePool, error)public static NodePool Get(string name, Input<string> id, NodePoolState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Annotations Dictionary<string, object>
Annotations for Node Pool object (map)
- Cluster
Id string The RKE cluster id to use Node Pool (string)
- Control
Plane bool RKE control plane role for created nodes (bool)
- Delete
Not intReady After Secs Delete not ready node after secs. For Rancher v2.3.3 or above. Default
0(int)- Etcd bool
RKE etcd role for created nodes (bool)
- Hostname
Prefix string The prefix for created nodes of the Node Pool (string)
- Labels Dictionary<string, object>
Labels for Node Pool object (map)
- Name string
The name of the Node Pool (string)
- Node
Taints List<NodePool Node Taint Args> Node taints. For Rancher v2.3.3 or above (List)
- Node
Template stringId The Node Template ID to use for node creation (string)
- Quantity int
The number of nodes to create on Node Pool. Default
1. Only values >= 1 allowed (int)- Worker bool
RKE role role for created nodes (bool)
- Annotations map[string]interface{}
Annotations for Node Pool object (map)
- Cluster
Id string The RKE cluster id to use Node Pool (string)
- Control
Plane bool RKE control plane role for created nodes (bool)
- Delete
Not intReady After Secs Delete not ready node after secs. For Rancher v2.3.3 or above. Default
0(int)- Etcd bool
RKE etcd role for created nodes (bool)
- Hostname
Prefix string The prefix for created nodes of the Node Pool (string)
- Labels map[string]interface{}
Labels for Node Pool object (map)
- Name string
The name of the Node Pool (string)
- Node
Taints []NodePool Node Taint Node taints. For Rancher v2.3.3 or above (List)
- Node
Template stringId The Node Template ID to use for node creation (string)
- Quantity int
The number of nodes to create on Node Pool. Default
1. Only values >= 1 allowed (int)- Worker bool
RKE role role for created nodes (bool)
- annotations {[key: string]: any}
Annotations for Node Pool object (map)
- cluster
Id string The RKE cluster id to use Node Pool (string)
- control
Plane boolean RKE control plane role for created nodes (bool)
- delete
Not numberReady After Secs Delete not ready node after secs. For Rancher v2.3.3 or above. Default
0(int)- etcd boolean
RKE etcd role for created nodes (bool)
- hostname
Prefix string The prefix for created nodes of the Node Pool (string)
- labels {[key: string]: any}
Labels for Node Pool object (map)
- name string
The name of the Node Pool (string)
- node
Taints NodePool Node Taint[] Node taints. For Rancher v2.3.3 or above (List)
- node
Template stringId The Node Template ID to use for node creation (string)
- quantity number
The number of nodes to create on Node Pool. Default
1. Only values >= 1 allowed (int)- worker boolean
RKE role role for created nodes (bool)
- annotations Dict[str, Any]
Annotations for Node Pool object (map)
- cluster_
id str The RKE cluster id to use Node Pool (string)
- control_
plane bool RKE control plane role for created nodes (bool)
- delete_
not_ floatready_ after_ secs Delete not ready node after secs. For Rancher v2.3.3 or above. Default
0(int)- etcd bool
RKE etcd role for created nodes (bool)
- hostname_
prefix str The prefix for created nodes of the Node Pool (string)
- labels Dict[str, Any]
Labels for Node Pool object (map)
- name str
The name of the Node Pool (string)
- node_
taints List[NodePool Node Taint] Node taints. For Rancher v2.3.3 or above (List)
- node_
template_ strid The Node Template ID to use for node creation (string)
- quantity float
The number of nodes to create on Node Pool. Default
1. Only values >= 1 allowed (int)- worker bool
RKE role role for created nodes (bool)
Supporting Types
NodePoolNodeTaint
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.