Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.compute/beta.NodeTemplate
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a NodeTemplate resource in the specified project using the data included in the request.
Create NodeTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NodeTemplate(name: string, args: NodeTemplateArgs, opts?: CustomResourceOptions);
@overload
def NodeTemplate(resource_name: str,
args: NodeTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NodeTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
region: Optional[str] = None,
accelerators: Optional[Sequence[AcceleratorConfigArgs]] = None,
cpu_overcommit_type: Optional[NodeTemplateCpuOvercommitType] = None,
description: Optional[str] = None,
disks: Optional[Sequence[LocalDiskArgs]] = None,
name: Optional[str] = None,
node_affinity_labels: Optional[Mapping[str, str]] = None,
node_type: Optional[str] = None,
node_type_flexibility: Optional[NodeTemplateNodeTypeFlexibilityArgs] = None,
project: Optional[str] = None,
request_id: Optional[str] = None,
server_binding: Optional[ServerBindingArgs] = None)
func NewNodeTemplate(ctx *Context, name string, args NodeTemplateArgs, opts ...ResourceOption) (*NodeTemplate, error)
public NodeTemplate(string name, NodeTemplateArgs args, CustomResourceOptions? opts = null)
public NodeTemplate(String name, NodeTemplateArgs args)
public NodeTemplate(String name, NodeTemplateArgs args, CustomResourceOptions options)
type: google-native:compute/beta:NodeTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args NodeTemplateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args NodeTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var google_nativeNodeTemplateResource = new GoogleNative.Compute.Beta.NodeTemplate("google-nativeNodeTemplateResource", new()
{
Region = "string",
Accelerators = new[]
{
new GoogleNative.Compute.Beta.Inputs.AcceleratorConfigArgs
{
AcceleratorCount = 0,
AcceleratorType = "string",
},
},
CpuOvercommitType = GoogleNative.Compute.Beta.NodeTemplateCpuOvercommitType.CpuOvercommitTypeUnspecified,
Description = "string",
Disks = new[]
{
new GoogleNative.Compute.Beta.Inputs.LocalDiskArgs
{
DiskCount = 0,
DiskSizeGb = 0,
DiskType = "string",
},
},
Name = "string",
NodeAffinityLabels =
{
{ "string", "string" },
},
NodeType = "string",
NodeTypeFlexibility = new GoogleNative.Compute.Beta.Inputs.NodeTemplateNodeTypeFlexibilityArgs
{
Cpus = "string",
LocalSsd = "string",
Memory = "string",
},
Project = "string",
RequestId = "string",
ServerBinding = new GoogleNative.Compute.Beta.Inputs.ServerBindingArgs
{
Type = GoogleNative.Compute.Beta.ServerBindingType.RestartNodeOnAnyServer,
},
});
example, err := computebeta.NewNodeTemplate(ctx, "google-nativeNodeTemplateResource", &computebeta.NodeTemplateArgs{
Region: pulumi.String("string"),
Accelerators: compute.AcceleratorConfigArray{
&compute.AcceleratorConfigArgs{
AcceleratorCount: pulumi.Int(0),
AcceleratorType: pulumi.String("string"),
},
},
CpuOvercommitType: computebeta.NodeTemplateCpuOvercommitTypeCpuOvercommitTypeUnspecified,
Description: pulumi.String("string"),
Disks: compute.LocalDiskArray{
&compute.LocalDiskArgs{
DiskCount: pulumi.Int(0),
DiskSizeGb: pulumi.Int(0),
DiskType: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
NodeAffinityLabels: pulumi.StringMap{
"string": pulumi.String("string"),
},
NodeType: pulumi.String("string"),
NodeTypeFlexibility: &compute.NodeTemplateNodeTypeFlexibilityArgs{
Cpus: pulumi.String("string"),
LocalSsd: pulumi.String("string"),
Memory: pulumi.String("string"),
},
Project: pulumi.String("string"),
RequestId: pulumi.String("string"),
ServerBinding: &compute.ServerBindingArgs{
Type: computebeta.ServerBindingTypeRestartNodeOnAnyServer,
},
})
var google_nativeNodeTemplateResource = new NodeTemplate("google-nativeNodeTemplateResource", NodeTemplateArgs.builder()
.region("string")
.accelerators(AcceleratorConfigArgs.builder()
.acceleratorCount(0)
.acceleratorType("string")
.build())
.cpuOvercommitType("CPU_OVERCOMMIT_TYPE_UNSPECIFIED")
.description("string")
.disks(LocalDiskArgs.builder()
.diskCount(0)
.diskSizeGb(0)
.diskType("string")
.build())
.name("string")
.nodeAffinityLabels(Map.of("string", "string"))
.nodeType("string")
.nodeTypeFlexibility(NodeTemplateNodeTypeFlexibilityArgs.builder()
.cpus("string")
.localSsd("string")
.memory("string")
.build())
.project("string")
.requestId("string")
.serverBinding(ServerBindingArgs.builder()
.type("RESTART_NODE_ON_ANY_SERVER")
.build())
.build());
google_native_node_template_resource = google_native.compute.beta.NodeTemplate("google-nativeNodeTemplateResource",
region="string",
accelerators=[google_native.compute.beta.AcceleratorConfigArgs(
accelerator_count=0,
accelerator_type="string",
)],
cpu_overcommit_type=google_native.compute.beta.NodeTemplateCpuOvercommitType.CPU_OVERCOMMIT_TYPE_UNSPECIFIED,
description="string",
disks=[google_native.compute.beta.LocalDiskArgs(
disk_count=0,
disk_size_gb=0,
disk_type="string",
)],
name="string",
node_affinity_labels={
"string": "string",
},
node_type="string",
node_type_flexibility=google_native.compute.beta.NodeTemplateNodeTypeFlexibilityArgs(
cpus="string",
local_ssd="string",
memory="string",
),
project="string",
request_id="string",
server_binding=google_native.compute.beta.ServerBindingArgs(
type=google_native.compute.beta.ServerBindingType.RESTART_NODE_ON_ANY_SERVER,
))
const google_nativeNodeTemplateResource = new google_native.compute.beta.NodeTemplate("google-nativeNodeTemplateResource", {
region: "string",
accelerators: [{
acceleratorCount: 0,
acceleratorType: "string",
}],
cpuOvercommitType: google_native.compute.beta.NodeTemplateCpuOvercommitType.CpuOvercommitTypeUnspecified,
description: "string",
disks: [{
diskCount: 0,
diskSizeGb: 0,
diskType: "string",
}],
name: "string",
nodeAffinityLabels: {
string: "string",
},
nodeType: "string",
nodeTypeFlexibility: {
cpus: "string",
localSsd: "string",
memory: "string",
},
project: "string",
requestId: "string",
serverBinding: {
type: google_native.compute.beta.ServerBindingType.RestartNodeOnAnyServer,
},
});
type: google-native:compute/beta:NodeTemplate
properties:
accelerators:
- acceleratorCount: 0
acceleratorType: string
cpuOvercommitType: CPU_OVERCOMMIT_TYPE_UNSPECIFIED
description: string
disks:
- diskCount: 0
diskSizeGb: 0
diskType: string
name: string
nodeAffinityLabels:
string: string
nodeType: string
nodeTypeFlexibility:
cpus: string
localSsd: string
memory: string
project: string
region: string
requestId: string
serverBinding:
type: RESTART_NODE_ON_ANY_SERVER
NodeTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The NodeTemplate resource accepts the following input properties:
- Region string
- Accelerators
List<Pulumi.
Google Native. Compute. Beta. Inputs. Accelerator Config> - Cpu
Overcommit Pulumi.Type Google Native. Compute. Beta. Node Template Cpu Overcommit Type - CPU overcommit.
- Description string
- An optional description of this resource. Provide this property when you create the resource.
- Disks
List<Pulumi.
Google Native. Compute. Beta. Inputs. Local Disk> - Name string
- The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - Node
Affinity Dictionary<string, string>Labels - Labels to use for node affinity, which will be used in instance scheduling.
- Node
Type string - The node type to use for nodes group that are created from this template.
- Node
Type Pulumi.Flexibility Google Native. Compute. Beta. Inputs. Node Template Node Type Flexibility - Do not use. Instead, use the node_type property.
- Project string
- Request
Id string - An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
- Server
Binding Pulumi.Google Native. Compute. Beta. Inputs. Server Binding - Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
- Region string
- Accelerators
[]Accelerator
Config Args - Cpu
Overcommit NodeType Template Cpu Overcommit Type - CPU overcommit.
- Description string
- An optional description of this resource. Provide this property when you create the resource.
- Disks
[]Local
Disk Args - Name string
- The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - Node
Affinity map[string]stringLabels - Labels to use for node affinity, which will be used in instance scheduling.
- Node
Type string - The node type to use for nodes group that are created from this template.
- Node
Type NodeFlexibility Template Node Type Flexibility Args - Do not use. Instead, use the node_type property.
- Project string
- Request
Id string - An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
- Server
Binding ServerBinding Args - Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
- region String
- accelerators
List<Accelerator
Config> - cpu
Overcommit NodeType Template Cpu Overcommit Type - CPU overcommit.
- description String
- An optional description of this resource. Provide this property when you create the resource.
- disks
List<Local
Disk> - name String
- The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - node
Affinity Map<String,String>Labels - Labels to use for node affinity, which will be used in instance scheduling.
- node
Type String - The node type to use for nodes group that are created from this template.
- node
Type NodeFlexibility Template Node Type Flexibility - Do not use. Instead, use the node_type property.
- project String
- request
Id String - An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
- server
Binding ServerBinding - Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
- region string
- accelerators
Accelerator
Config[] - cpu
Overcommit NodeType Template Cpu Overcommit Type - CPU overcommit.
- description string
- An optional description of this resource. Provide this property when you create the resource.
- disks
Local
Disk[] - name string
- The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - node
Affinity {[key: string]: string}Labels - Labels to use for node affinity, which will be used in instance scheduling.
- node
Type string - The node type to use for nodes group that are created from this template.
- node
Type NodeFlexibility Template Node Type Flexibility - Do not use. Instead, use the node_type property.
- project string
- request
Id string - An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
- server
Binding ServerBinding - Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
- region str
- accelerators
Sequence[Accelerator
Config Args] - cpu_
overcommit_ Nodetype Template Cpu Overcommit Type - CPU overcommit.
- description str
- An optional description of this resource. Provide this property when you create the resource.
- disks
Sequence[Local
Disk Args] - name str
- The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - node_
affinity_ Mapping[str, str]labels - Labels to use for node affinity, which will be used in instance scheduling.
- node_
type str - The node type to use for nodes group that are created from this template.
- node_
type_ Nodeflexibility Template Node Type Flexibility Args - Do not use. Instead, use the node_type property.
- project str
- request_
id str - An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
- server_
binding ServerBinding Args - Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
- region String
- accelerators List<Property Map>
- cpu
Overcommit "CPU_OVERCOMMIT_TYPE_UNSPECIFIED" | "ENABLED" | "NONE"Type - CPU overcommit.
- description String
- An optional description of this resource. Provide this property when you create the resource.
- disks List<Property Map>
- name String
- The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - node
Affinity Map<String>Labels - Labels to use for node affinity, which will be used in instance scheduling.
- node
Type String - The node type to use for nodes group that are created from this template.
- node
Type Property MapFlexibility - Do not use. Instead, use the node_type property.
- project String
- request
Id String - An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
- server
Binding Property Map - Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
Outputs
All input properties are implicitly available as output properties. Additionally, the NodeTemplate resource produces the following output properties:
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- The type of the resource. Always compute#nodeTemplate for node templates.
- Self
Link string - Server-defined URL for the resource.
- Status string
- The status of the node template. One of the following values: CREATING, READY, and DELETING.
- Status
Message string - An optional, human-readable explanation of the status.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- The type of the resource. Always compute#nodeTemplate for node templates.
- Self
Link string - Server-defined URL for the resource.
- Status string
- The status of the node template. One of the following values: CREATING, READY, and DELETING.
- Status
Message string - An optional, human-readable explanation of the status.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- The type of the resource. Always compute#nodeTemplate for node templates.
- self
Link String - Server-defined URL for the resource.
- status String
- The status of the node template. One of the following values: CREATING, READY, and DELETING.
- status
Message String - An optional, human-readable explanation of the status.
- creation
Timestamp string - Creation timestamp in RFC3339 text format.
- id string
- The provider-assigned unique ID for this managed resource.
- kind string
- The type of the resource. Always compute#nodeTemplate for node templates.
- self
Link string - Server-defined URL for the resource.
- status string
- The status of the node template. One of the following values: CREATING, READY, and DELETING.
- status
Message string - An optional, human-readable explanation of the status.
- creation_
timestamp str - Creation timestamp in RFC3339 text format.
- id str
- The provider-assigned unique ID for this managed resource.
- kind str
- The type of the resource. Always compute#nodeTemplate for node templates.
- self_
link str - Server-defined URL for the resource.
- status str
- The status of the node template. One of the following values: CREATING, READY, and DELETING.
- status_
message str - An optional, human-readable explanation of the status.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- The type of the resource. Always compute#nodeTemplate for node templates.
- self
Link String - Server-defined URL for the resource.
- status String
- The status of the node template. One of the following values: CREATING, READY, and DELETING.
- status
Message String - An optional, human-readable explanation of the status.
Supporting Types
AcceleratorConfig, AcceleratorConfigArgs
- Accelerator
Count int - The number of the guest accelerator cards exposed to this instance.
- Accelerator
Type string - Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
- Accelerator
Count int - The number of the guest accelerator cards exposed to this instance.
- Accelerator
Type string - Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
- accelerator
Count Integer - The number of the guest accelerator cards exposed to this instance.
- accelerator
Type String - Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
- accelerator
Count number - The number of the guest accelerator cards exposed to this instance.
- accelerator
Type string - Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
- accelerator_
count int - The number of the guest accelerator cards exposed to this instance.
- accelerator_
type str - Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
- accelerator
Count Number - The number of the guest accelerator cards exposed to this instance.
- accelerator
Type String - Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
AcceleratorConfigResponse, AcceleratorConfigResponseArgs
- Accelerator
Count int - The number of the guest accelerator cards exposed to this instance.
- Accelerator
Type string - Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
- Accelerator
Count int - The number of the guest accelerator cards exposed to this instance.
- Accelerator
Type string - Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
- accelerator
Count Integer - The number of the guest accelerator cards exposed to this instance.
- accelerator
Type String - Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
- accelerator
Count number - The number of the guest accelerator cards exposed to this instance.
- accelerator
Type string - Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
- accelerator_
count int - The number of the guest accelerator cards exposed to this instance.
- accelerator_
type str - Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
- accelerator
Count Number - The number of the guest accelerator cards exposed to this instance.
- accelerator
Type String - Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
LocalDisk, LocalDiskArgs
- Disk
Count int - Specifies the number of such disks.
- Disk
Size intGb - Specifies the size of the disk in base-2 GB.
- Disk
Type string - Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
- Disk
Count int - Specifies the number of such disks.
- Disk
Size intGb - Specifies the size of the disk in base-2 GB.
- Disk
Type string - Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
- disk
Count Integer - Specifies the number of such disks.
- disk
Size IntegerGb - Specifies the size of the disk in base-2 GB.
- disk
Type String - Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
- disk
Count number - Specifies the number of such disks.
- disk
Size numberGb - Specifies the size of the disk in base-2 GB.
- disk
Type string - Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
- disk_
count int - Specifies the number of such disks.
- disk_
size_ intgb - Specifies the size of the disk in base-2 GB.
- disk_
type str - Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
- disk
Count Number - Specifies the number of such disks.
- disk
Size NumberGb - Specifies the size of the disk in base-2 GB.
- disk
Type String - Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
LocalDiskResponse, LocalDiskResponseArgs
- Disk
Count int - Specifies the number of such disks.
- Disk
Size intGb - Specifies the size of the disk in base-2 GB.
- Disk
Type string - Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
- Disk
Count int - Specifies the number of such disks.
- Disk
Size intGb - Specifies the size of the disk in base-2 GB.
- Disk
Type string - Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
- disk
Count Integer - Specifies the number of such disks.
- disk
Size IntegerGb - Specifies the size of the disk in base-2 GB.
- disk
Type String - Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
- disk
Count number - Specifies the number of such disks.
- disk
Size numberGb - Specifies the size of the disk in base-2 GB.
- disk
Type string - Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
- disk_
count int - Specifies the number of such disks.
- disk_
size_ intgb - Specifies the size of the disk in base-2 GB.
- disk_
type str - Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
- disk
Count Number - Specifies the number of such disks.
- disk
Size NumberGb - Specifies the size of the disk in base-2 GB.
- disk
Type String - Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
NodeTemplateCpuOvercommitType, NodeTemplateCpuOvercommitTypeArgs
- Cpu
Overcommit Type Unspecified - CPU_OVERCOMMIT_TYPE_UNSPECIFIED
- Enabled
- ENABLED
- None
- NONE
- Node
Template Cpu Overcommit Type Cpu Overcommit Type Unspecified - CPU_OVERCOMMIT_TYPE_UNSPECIFIED
- Node
Template Cpu Overcommit Type Enabled - ENABLED
- Node
Template Cpu Overcommit Type None - NONE
- Cpu
Overcommit Type Unspecified - CPU_OVERCOMMIT_TYPE_UNSPECIFIED
- Enabled
- ENABLED
- None
- NONE
- Cpu
Overcommit Type Unspecified - CPU_OVERCOMMIT_TYPE_UNSPECIFIED
- Enabled
- ENABLED
- None
- NONE
- CPU_OVERCOMMIT_TYPE_UNSPECIFIED
- CPU_OVERCOMMIT_TYPE_UNSPECIFIED
- ENABLED
- ENABLED
- NONE
- NONE
- "CPU_OVERCOMMIT_TYPE_UNSPECIFIED"
- CPU_OVERCOMMIT_TYPE_UNSPECIFIED
- "ENABLED"
- ENABLED
- "NONE"
- NONE
NodeTemplateNodeTypeFlexibility, NodeTemplateNodeTypeFlexibilityArgs
NodeTemplateNodeTypeFlexibilityResponse, NodeTemplateNodeTypeFlexibilityResponseArgs
ServerBinding, ServerBindingArgs
ServerBindingResponse, ServerBindingResponseArgs
- Type string
- Type string
- type String
- type string
- type str
- type String
ServerBindingType, ServerBindingTypeArgs
- Restart
Node On Any Server - RESTART_NODE_ON_ANY_SERVERNode may associate with any physical server over its lifetime.
- Restart
Node On Minimal Servers - RESTART_NODE_ON_MINIMAL_SERVERSNode may associate with minimal physical servers over its lifetime.
- Server
Binding Type Unspecified - SERVER_BINDING_TYPE_UNSPECIFIED
- Server
Binding Type Restart Node On Any Server - RESTART_NODE_ON_ANY_SERVERNode may associate with any physical server over its lifetime.
- Server
Binding Type Restart Node On Minimal Servers - RESTART_NODE_ON_MINIMAL_SERVERSNode may associate with minimal physical servers over its lifetime.
- Server
Binding Type Server Binding Type Unspecified - SERVER_BINDING_TYPE_UNSPECIFIED
- Restart
Node On Any Server - RESTART_NODE_ON_ANY_SERVERNode may associate with any physical server over its lifetime.
- Restart
Node On Minimal Servers - RESTART_NODE_ON_MINIMAL_SERVERSNode may associate with minimal physical servers over its lifetime.
- Server
Binding Type Unspecified - SERVER_BINDING_TYPE_UNSPECIFIED
- Restart
Node On Any Server - RESTART_NODE_ON_ANY_SERVERNode may associate with any physical server over its lifetime.
- Restart
Node On Minimal Servers - RESTART_NODE_ON_MINIMAL_SERVERSNode may associate with minimal physical servers over its lifetime.
- Server
Binding Type Unspecified - SERVER_BINDING_TYPE_UNSPECIFIED
- RESTART_NODE_ON_ANY_SERVER
- RESTART_NODE_ON_ANY_SERVERNode may associate with any physical server over its lifetime.
- RESTART_NODE_ON_MINIMAL_SERVERS
- RESTART_NODE_ON_MINIMAL_SERVERSNode may associate with minimal physical servers over its lifetime.
- SERVER_BINDING_TYPE_UNSPECIFIED
- SERVER_BINDING_TYPE_UNSPECIFIED
- "RESTART_NODE_ON_ANY_SERVER"
- RESTART_NODE_ON_ANY_SERVERNode may associate with any physical server over its lifetime.
- "RESTART_NODE_ON_MINIMAL_SERVERS"
- RESTART_NODE_ON_MINIMAL_SERVERSNode may associate with minimal physical servers over its lifetime.
- "SERVER_BINDING_TYPE_UNSPECIFIED"
- SERVER_BINDING_TYPE_UNSPECIFIED
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.