Node
A Cloud TPU instance.
To get more information about Node, see:
- API documentation
- How-to Guides
Create a Node Resource
new Node(name: string, args: NodeArgs, opts?: CustomResourceOptions);def Node(resource_name, opts=None, accelerator_type=None, cidr_block=None, description=None, labels=None, name=None, network=None, project=None, scheduling_config=None, tensorflow_version=None, zone=None, __props__=None);public Node(string name, NodeArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args NodeArgs
- 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 NodeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NodeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Node Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Node resource accepts the following input properties:
- Accelerator
Type string The type of hardware accelerators associated with this node.
- Cidr
Block string The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user’s provided network, or the provided network is peered with another network that is using that CIDR block.
- Tensorflow
Version string The version of Tensorflow running in the Node.
- Zone string
The GCP location for the TPU.
- Description string
The user-supplied description of the TPU. Maximum of 512 characters.
- Labels Dictionary<string, string>
Resource labels to represent user provided metadata.
- Name string
The immutable name of the TPU.
- Network string
The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, “default” will be used.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Scheduling
Config NodeScheduling Config Args Sets the scheduling options for this TPU instance. Structure is documented below.
- Accelerator
Type string The type of hardware accelerators associated with this node.
- Cidr
Block string The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user’s provided network, or the provided network is peered with another network that is using that CIDR block.
- Tensorflow
Version string The version of Tensorflow running in the Node.
- Zone string
The GCP location for the TPU.
- Description string
The user-supplied description of the TPU. Maximum of 512 characters.
- Labels map[string]string
Resource labels to represent user provided metadata.
- Name string
The immutable name of the TPU.
- Network string
The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, “default” will be used.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Scheduling
Config NodeScheduling Config Sets the scheduling options for this TPU instance. Structure is documented below.
- accelerator
Type string The type of hardware accelerators associated with this node.
- cidr
Block string The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user’s provided network, or the provided network is peered with another network that is using that CIDR block.
- tensorflow
Version string The version of Tensorflow running in the Node.
- zone string
The GCP location for the TPU.
- description string
The user-supplied description of the TPU. Maximum of 512 characters.
- labels {[key: string]: string}
Resource labels to represent user provided metadata.
- name string
The immutable name of the TPU.
- network string
The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, “default” will be used.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- scheduling
Config NodeScheduling Config Sets the scheduling options for this TPU instance. Structure is documented below.
- accelerator_
type str The type of hardware accelerators associated with this node.
- cidr_
block str The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user’s provided network, or the provided network is peered with another network that is using that CIDR block.
- tensorflow_
version str The version of Tensorflow running in the Node.
- zone str
The GCP location for the TPU.
- description str
The user-supplied description of the TPU. Maximum of 512 characters.
- labels Dict[str, str]
Resource labels to represent user provided metadata.
- name str
The immutable name of the TPU.
- network str
The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, “default” will be used.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- scheduling_
config Dict[NodeScheduling Config] Sets the scheduling options for this TPU instance. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Node resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Endpoints List<NodeNetwork Endpoint> The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node first reach out to the first (index 0) entry.
- Service
Account string The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Endpoints []NodeNetwork Endpoint The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node first reach out to the first (index 0) entry.
- Service
Account string The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
- id string
- The provider-assigned unique ID for this managed resource.
- network
Endpoints NodeNetwork Endpoint[] The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node first reach out to the first (index 0) entry.
- service
Account string The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
- id str
- The provider-assigned unique ID for this managed resource.
- network_
endpoints List[NodeNetwork Endpoint] The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node first reach out to the first (index 0) entry.
- service_
account str The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
Look up an Existing Node Resource
Get an existing Node 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?: NodeState, opts?: CustomResourceOptions): Nodestatic get(resource_name, id, opts=None, accelerator_type=None, cidr_block=None, description=None, labels=None, name=None, network=None, network_endpoints=None, project=None, scheduling_config=None, service_account=None, tensorflow_version=None, zone=None, __props__=None);public static Node Get(string name, Input<string> id, NodeState? 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:
- Accelerator
Type string The type of hardware accelerators associated with this node.
- Cidr
Block string The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user’s provided network, or the provided network is peered with another network that is using that CIDR block.
- Description string
The user-supplied description of the TPU. Maximum of 512 characters.
- Labels Dictionary<string, string>
Resource labels to represent user provided metadata.
- Name string
The immutable name of the TPU.
- Network string
The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, “default” will be used.
- Network
Endpoints List<NodeNetwork Endpoint Args> The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node first reach out to the first (index 0) entry.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Scheduling
Config NodeScheduling Config Args Sets the scheduling options for this TPU instance. Structure is documented below.
- Service
Account string The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
- Tensorflow
Version string The version of Tensorflow running in the Node.
- Zone string
The GCP location for the TPU.
- Accelerator
Type string The type of hardware accelerators associated with this node.
- Cidr
Block string The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user’s provided network, or the provided network is peered with another network that is using that CIDR block.
- Description string
The user-supplied description of the TPU. Maximum of 512 characters.
- Labels map[string]string
Resource labels to represent user provided metadata.
- Name string
The immutable name of the TPU.
- Network string
The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, “default” will be used.
- Network
Endpoints []NodeNetwork Endpoint The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node first reach out to the first (index 0) entry.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Scheduling
Config NodeScheduling Config Sets the scheduling options for this TPU instance. Structure is documented below.
- Service
Account string The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
- Tensorflow
Version string The version of Tensorflow running in the Node.
- Zone string
The GCP location for the TPU.
- accelerator
Type string The type of hardware accelerators associated with this node.
- cidr
Block string The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user’s provided network, or the provided network is peered with another network that is using that CIDR block.
- description string
The user-supplied description of the TPU. Maximum of 512 characters.
- labels {[key: string]: string}
Resource labels to represent user provided metadata.
- name string
The immutable name of the TPU.
- network string
The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, “default” will be used.
- network
Endpoints NodeNetwork Endpoint[] The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node first reach out to the first (index 0) entry.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- scheduling
Config NodeScheduling Config Sets the scheduling options for this TPU instance. Structure is documented below.
- service
Account string The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
- tensorflow
Version string The version of Tensorflow running in the Node.
- zone string
The GCP location for the TPU.
- accelerator_
type str The type of hardware accelerators associated with this node.
- cidr_
block str The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user’s provided network, or the provided network is peered with another network that is using that CIDR block.
- description str
The user-supplied description of the TPU. Maximum of 512 characters.
- labels Dict[str, str]
Resource labels to represent user provided metadata.
- name str
The immutable name of the TPU.
- network str
The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, “default” will be used.
- network_
endpoints List[NodeNetwork Endpoint] The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node first reach out to the first (index 0) entry.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- scheduling_
config Dict[NodeScheduling Config] Sets the scheduling options for this TPU instance. Structure is documented below.
- service_
account str The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
- tensorflow_
version str The version of Tensorflow running in the Node.
- zone str
The GCP location for the TPU.
Supporting Types
NodeNetworkEndpoint
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
NodeSchedulingConfig
- Preemptible bool
Defines whether the TPU instance is preemptible.
- Preemptible bool
Defines whether the TPU instance is preemptible.
- preemptible boolean
Defines whether the TPU instance is preemptible.
- preemptible bool
Defines whether the TPU instance is preemptible.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.