NodeTemplate
Represents a NodeTemplate resource. Node templates specify properties for creating sole-tenant nodes, such as node type, vCPU and memory requirements, node affinity labels, and region.
To get more information about NodeTemplate, see:
- API documentation
- How-to Guides
Create a NodeTemplate Resource
new NodeTemplate(name: string, args?: NodeTemplateArgs, opts?: CustomResourceOptions);def NodeTemplate(resource_name, opts=None, cpu_overcommit_type=None, description=None, name=None, node_affinity_labels=None, node_type=None, node_type_flexibility=None, project=None, region=None, server_binding=None, __props__=None);func NewNodeTemplate(ctx *Context, name string, args *NodeTemplateArgs, opts ...ResourceOption) (*NodeTemplate, error)public NodeTemplate(string name, NodeTemplateArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args NodeTemplateArgs
- 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 NodeTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NodeTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
NodeTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The NodeTemplate resource accepts the following input properties:
- Cpu
Overcommit stringType CPU overcommit. Default value: “NONE” Possible values: [“ENABLED”, “NONE”]
- Description string
An optional textual description of the resource.
- Name string
Name of the resource.
- Node
Affinity Dictionary<string, string>Labels Labels to use for node affinity, which will be used in instance scheduling.
- Node
Type string Node type to use for nodes group that are created from this template. Only one of nodeTypeFlexibility and nodeType can be specified.
- Node
Type NodeFlexibility Template Node Type Flexibility Args Flexible properties for the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. Only one of nodeTypeFlexibility and nodeType can be specified. Structure is documented below.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
Region where nodes using the node template will be created. If it is not provided, the provider region is used.
- Server
Binding NodeTemplate Server Binding Args The server binding policy for nodes using this template. Determines where the nodes should restart following a maintenance event. Structure is documented below.
- Cpu
Overcommit stringType CPU overcommit. Default value: “NONE” Possible values: [“ENABLED”, “NONE”]
- Description string
An optional textual description of the resource.
- Name string
Name of the resource.
- Node
Affinity map[string]stringLabels Labels to use for node affinity, which will be used in instance scheduling.
- Node
Type string Node type to use for nodes group that are created from this template. Only one of nodeTypeFlexibility and nodeType can be specified.
- Node
Type NodeFlexibility Template Node Type Flexibility Flexible properties for the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. Only one of nodeTypeFlexibility and nodeType can be specified. Structure is documented below.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
Region where nodes using the node template will be created. If it is not provided, the provider region is used.
- Server
Binding NodeTemplate Server Binding The server binding policy for nodes using this template. Determines where the nodes should restart following a maintenance event. Structure is documented below.
- cpu
Overcommit stringType CPU overcommit. Default value: “NONE” Possible values: [“ENABLED”, “NONE”]
- description string
An optional textual description of the resource.
- name string
Name of the resource.
- node
Affinity {[key: string]: string}Labels Labels to use for node affinity, which will be used in instance scheduling.
- node
Type string Node type to use for nodes group that are created from this template. Only one of nodeTypeFlexibility and nodeType can be specified.
- node
Type NodeFlexibility Template Node Type Flexibility Flexible properties for the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. Only one of nodeTypeFlexibility and nodeType can be specified. Structure is documented below.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
Region where nodes using the node template will be created. If it is not provided, the provider region is used.
- server
Binding NodeTemplate Server Binding The server binding policy for nodes using this template. Determines where the nodes should restart following a maintenance event. Structure is documented below.
- cpu_
overcommit_ strtype CPU overcommit. Default value: “NONE” Possible values: [“ENABLED”, “NONE”]
- description str
An optional textual description of the resource.
- name str
Name of the resource.
- node_
affinity_ Dict[str, str]labels Labels to use for node affinity, which will be used in instance scheduling.
- node_
type str Node type to use for nodes group that are created from this template. Only one of nodeTypeFlexibility and nodeType can be specified.
- node_
type_ Dict[Nodeflexibility Template Node Type Flexibility] Flexible properties for the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. Only one of nodeTypeFlexibility and nodeType can be specified. Structure is documented below.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
Region where nodes using the node template will be created. If it is not provided, the provider region is used.
- server_
binding Dict[NodeTemplate Server Binding] The server binding policy for nodes using this template. Determines where the nodes should restart following a maintenance event. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the NodeTemplate resource produces the following output properties:
Look up an Existing NodeTemplate Resource
Get an existing NodeTemplate 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?: NodeTemplateState, opts?: CustomResourceOptions): NodeTemplatestatic get(resource_name, id, opts=None, cpu_overcommit_type=None, creation_timestamp=None, description=None, name=None, node_affinity_labels=None, node_type=None, node_type_flexibility=None, project=None, region=None, self_link=None, server_binding=None, __props__=None);func GetNodeTemplate(ctx *Context, name string, id IDInput, state *NodeTemplateState, opts ...ResourceOption) (*NodeTemplate, error)public static NodeTemplate Get(string name, Input<string> id, NodeTemplateState? 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:
- Cpu
Overcommit stringType CPU overcommit. Default value: “NONE” Possible values: [“ENABLED”, “NONE”]
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Description string
An optional textual description of the resource.
- Name string
Name of the resource.
- Node
Affinity Dictionary<string, string>Labels Labels to use for node affinity, which will be used in instance scheduling.
- Node
Type string Node type to use for nodes group that are created from this template. Only one of nodeTypeFlexibility and nodeType can be specified.
- Node
Type NodeFlexibility Template Node Type Flexibility Args Flexible properties for the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. Only one of nodeTypeFlexibility and nodeType can be specified. Structure is documented below.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
Region where nodes using the node template will be created. If it is not provided, the provider region is used.
- Self
Link string The URI of the created resource.
- Server
Binding NodeTemplate Server Binding Args The server binding policy for nodes using this template. Determines where the nodes should restart following a maintenance event. Structure is documented below.
- Cpu
Overcommit stringType CPU overcommit. Default value: “NONE” Possible values: [“ENABLED”, “NONE”]
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Description string
An optional textual description of the resource.
- Name string
Name of the resource.
- Node
Affinity map[string]stringLabels Labels to use for node affinity, which will be used in instance scheduling.
- Node
Type string Node type to use for nodes group that are created from this template. Only one of nodeTypeFlexibility and nodeType can be specified.
- Node
Type NodeFlexibility Template Node Type Flexibility Flexible properties for the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. Only one of nodeTypeFlexibility and nodeType can be specified. Structure is documented below.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
Region where nodes using the node template will be created. If it is not provided, the provider region is used.
- Self
Link string The URI of the created resource.
- Server
Binding NodeTemplate Server Binding The server binding policy for nodes using this template. Determines where the nodes should restart following a maintenance event. Structure is documented below.
- cpu
Overcommit stringType CPU overcommit. Default value: “NONE” Possible values: [“ENABLED”, “NONE”]
- creation
Timestamp string Creation timestamp in RFC3339 text format.
- description string
An optional textual description of the resource.
- name string
Name of the resource.
- node
Affinity {[key: string]: string}Labels Labels to use for node affinity, which will be used in instance scheduling.
- node
Type string Node type to use for nodes group that are created from this template. Only one of nodeTypeFlexibility and nodeType can be specified.
- node
Type NodeFlexibility Template Node Type Flexibility Flexible properties for the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. Only one of nodeTypeFlexibility and nodeType can be specified. Structure is documented below.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
Region where nodes using the node template will be created. If it is not provided, the provider region is used.
- self
Link string The URI of the created resource.
- server
Binding NodeTemplate Server Binding The server binding policy for nodes using this template. Determines where the nodes should restart following a maintenance event. Structure is documented below.
- cpu_
overcommit_ strtype CPU overcommit. Default value: “NONE” Possible values: [“ENABLED”, “NONE”]
- creation_
timestamp str Creation timestamp in RFC3339 text format.
- description str
An optional textual description of the resource.
- name str
Name of the resource.
- node_
affinity_ Dict[str, str]labels Labels to use for node affinity, which will be used in instance scheduling.
- node_
type str Node type to use for nodes group that are created from this template. Only one of nodeTypeFlexibility and nodeType can be specified.
- node_
type_ Dict[Nodeflexibility Template Node Type Flexibility] Flexible properties for the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. Only one of nodeTypeFlexibility and nodeType can be specified. Structure is documented below.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
Region where nodes using the node template will be created. If it is not provided, the provider region is used.
- self_
link str The URI of the created resource.
- server_
binding Dict[NodeTemplate Server Binding] The server binding policy for nodes using this template. Determines where the nodes should restart following a maintenance event. Structure is documented below.
Supporting Types
NodeTemplateNodeTypeFlexibility
NodeTemplateServerBinding
- Type string
Type of server binding policy. If
RESTART_NODE_ON_ANY_SERVER, nodes using this template will restart on any physical server following a maintenance event. IfRESTART_NODE_ON_MINIMAL_SERVER, nodes using this template will restart on the same physical server following a maintenance event, instead of being live migrated to or restarted on a new physical server. This option may be useful if you are using software licenses tied to the underlying server characteristics such as physical sockets or cores, to avoid the need for additional licenses when maintenance occurs. However, VMs on such nodes will experience outages while maintenance is applied.
- Type string
Type of server binding policy. If
RESTART_NODE_ON_ANY_SERVER, nodes using this template will restart on any physical server following a maintenance event. IfRESTART_NODE_ON_MINIMAL_SERVER, nodes using this template will restart on the same physical server following a maintenance event, instead of being live migrated to or restarted on a new physical server. This option may be useful if you are using software licenses tied to the underlying server characteristics such as physical sockets or cores, to avoid the need for additional licenses when maintenance occurs. However, VMs on such nodes will experience outages while maintenance is applied.
- type string
Type of server binding policy. If
RESTART_NODE_ON_ANY_SERVER, nodes using this template will restart on any physical server following a maintenance event. IfRESTART_NODE_ON_MINIMAL_SERVER, nodes using this template will restart on the same physical server following a maintenance event, instead of being live migrated to or restarted on a new physical server. This option may be useful if you are using software licenses tied to the underlying server characteristics such as physical sockets or cores, to avoid the need for additional licenses when maintenance occurs. However, VMs on such nodes will experience outages while maintenance is applied.
- type str
Type of server binding policy. If
RESTART_NODE_ON_ANY_SERVER, nodes using this template will restart on any physical server following a maintenance event. IfRESTART_NODE_ON_MINIMAL_SERVER, nodes using this template will restart on the same physical server following a maintenance event, instead of being live migrated to or restarted on a new physical server. This option may be useful if you are using software licenses tied to the underlying server characteristics such as physical sockets or cores, to avoid the need for additional licenses when maintenance occurs. However, VMs on such nodes will experience outages while maintenance is applied.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.