@@ -90,6 +90,7 @@ resource "google_tpu_v2_vm" "tpu" {
90
90
enable_external_ips = true
91
91
network = google_compute_network.network.id
92
92
subnetwork = google_compute_subnetwork.subnet.id
93
+ queue_count = 32
93
94
}
94
95
95
96
scheduling_config {
@@ -206,6 +207,12 @@ The following arguments are supported:
206
207
Network configurations for the TPU node.
207
208
Structure is [ documented below] ( #nested_network_config ) .
208
209
210
+ * ` network_configs ` -
211
+ (Optional)
212
+ Repeated network configurations for the TPU node. This field is used to specify multiple
213
+ network configs for the TPU node.
214
+ Structure is [ documented below] ( #nested_network_configs ) .
215
+
209
216
* ` service_account ` -
210
217
(Optional)
211
218
The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is
@@ -260,16 +267,12 @@ The following arguments are supported:
260
267
* ` network ` -
261
268
(Optional)
262
269
The name of the network for the TPU node. It must be a preexisting Google Compute Engine
263
- network. If both network and subnetwork are specified, the given subnetwork must belong
264
- to the given network. If network is not specified, it will be looked up from the
265
- subnetwork if one is provided, or otherwise use "default".
270
+ network. If none is provided, "default" will be used.
266
271
267
272
* ` subnetwork ` -
268
273
(Optional)
269
274
The name of the subnetwork for the TPU node. It must be a preexisting Google Compute
270
- Engine subnetwork. If both network and subnetwork are specified, the given subnetwork
271
- must belong to the given network. If subnetwork is not specified, the subnetwork with the
272
- same name as the network will be used.
275
+ Engine subnetwork. If none is provided, "default" will be used.
273
276
274
277
* ` enable_external_ips ` -
275
278
(Optional)
@@ -281,6 +284,36 @@ The following arguments are supported:
281
284
Allows the TPU node to send and receive packets with non-matching destination or source
282
285
IPs. This is required if you plan to use the TPU workers to forward routes.
283
286
287
+ * ` queue_count ` -
288
+ (Optional)
289
+ Specifies networking queue count for TPU VM instance's network interface.
290
+
291
+ <a name =" nested_network_configs " ></a >The ` network_configs ` block supports:
292
+
293
+ * ` network ` -
294
+ (Optional)
295
+ The name of the network for the TPU node. It must be a preexisting Google Compute Engine
296
+ network. If none is provided, "default" will be used.
297
+
298
+ * ` subnetwork ` -
299
+ (Optional)
300
+ The name of the subnetwork for the TPU node. It must be a preexisting Google Compute
301
+ Engine subnetwork. If none is provided, "default" will be used.
302
+
303
+ * ` enable_external_ips ` -
304
+ (Optional)
305
+ Indicates that external IP addresses would be associated with the TPU workers. If set to
306
+ false, the specified subnetwork or network should have Private Google Access enabled.
307
+
308
+ * ` can_ip_forward ` -
309
+ (Optional)
310
+ Allows the TPU node to send and receive packets with non-matching destination or source
311
+ IPs. This is required if you plan to use the TPU workers to forward routes.
312
+
313
+ * ` queue_count ` -
314
+ (Optional)
315
+ Specifies networking queue count for TPU VM instance's network interface.
316
+
284
317
<a name =" nested_service_account " ></a >The ` service_account ` block supports:
285
318
286
319
* ` email ` -
0 commit comments