Show / Hide Table of Contents

Class Node

A Cloud TPU instance.

To get more information about Node, see:

  • API documentation
  • How-to Guides
  • Official Documentation

Example Usage - TPU Node Basic

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var available = Output.Create(Gcp.Tpu.GetTensorflowVersions.InvokeAsync());
    var tpu = new Gcp.Tpu.Node("tpu", new Gcp.Tpu.NodeArgs
    {
        Zone = "us-central1-b",
        AcceleratorType = "v3-8",
        TensorflowVersion = available.Apply(available => available.Versions[0]),
        CidrBlock = "10.2.0.0/29",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Node
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Tpu
Assembly: Pulumi.Gcp.dll
Syntax
public class Node : CustomResource

Constructors

View Source

Node(String, NodeArgs, CustomResourceOptions)

Create a Node resource with the given unique name, arguments, and options.

Declaration
public Node(string name, NodeArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

NodeArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AcceleratorType

The type of hardware accelerators associated with this node.

Declaration
public Output<string> AcceleratorType { get; }
Property Value
Type Description
Output<System.String>
View Source

CidrBlock

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.

Declaration
public Output<string> CidrBlock { get; }
Property Value
Type Description
Output<System.String>
View Source

Description

The user-supplied description of the TPU. Maximum of 512 characters.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

Labels

Resource labels to represent user provided metadata.

Declaration
public Output<ImmutableDictionary<string, string>> Labels { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>
View Source

Name

The immutable name of the TPU.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Network

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.

Declaration
public Output<string> Network { get; }
Property Value
Type Description
Output<System.String>
View Source

NetworkEndpoints

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.

Declaration
public Output<ImmutableArray<NodeNetworkEndpoint>> NetworkEndpoints { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<NodeNetworkEndpoint>>
View Source

Project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Declaration
public Output<string> Project { get; }
Property Value
Type Description
Output<System.String>
View Source

SchedulingConfig

Sets the scheduling options for this TPU instance. Structure is documented below.

Declaration
public Output<NodeSchedulingConfig> SchedulingConfig { get; }
Property Value
Type Description
Output<NodeSchedulingConfig>
View Source

ServiceAccount

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.

Declaration
public Output<string> ServiceAccount { get; }
Property Value
Type Description
Output<System.String>
View Source

TensorflowVersion

The version of Tensorflow running in the Node.

Declaration
public Output<string> TensorflowVersion { get; }
Property Value
Type Description
Output<System.String>
View Source

Zone

The GCP location for the TPU.

Declaration
public Output<string> Zone { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, NodeState, CustomResourceOptions)

Get an existing Node resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Node Get(string name, Input<string> id, NodeState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

NodeState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Node
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.