Skip to content

Commit b01a547

Browse files
dhaguenat-henderson
authored andcommitted
Allow specifying accelerators in cluster node_config (hashicorp#1115)
1 parent c1a1729 commit b01a547

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Diff for: docs/r/container_cluster.html.markdown

+9
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ The `node_config` block supports:
235235
* `disk_size_gb` - (Optional) Size of the disk attached to each node, specified
236236
in GB. The smallest allowed disk size is 10GB. Defaults to 100GB.
237237

238+
* `guest_accelerator` - (Optional) List of the type and count of accelerator cards attached to the instance.
239+
Structure documented below.
240+
238241
* `image_type` - (Optional) The image type to use for this node.
239242

240243
* `labels` - (Optional) The Kubernetes labels (key/value pairs) to be applied to each node.
@@ -276,6 +279,12 @@ The `node_config` block supports:
276279
* `tags` - (Optional) The list of instance tags applied to all nodes. Tags are used to identify
277280
valid sources or targets for network firewalls.
278281

282+
The `guest_accelerator` block supports:
283+
284+
* `type` (Required) - The accelerator type resource to expose to this instance. E.g. `nvidia-tesla-k80`.
285+
286+
* `count` (Required) - The number of the guest accelerator cards exposed to this instance.
287+
279288
## Attributes Reference
280289

281290
In addition to the arguments listed above, the following computed attributes are

Diff for: docs/r/container_node_pool.html.markdown

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ resource "google_container_cluster" "primary" {
4545
"https://www.googleapis.com/auth/logging.write",
4646
"https://www.googleapis.com/auth/monitoring",
4747
]
48+
guest_accelerator = [{
49+
type="nvidia-tesla-k80"
50+
count=1
51+
}]
4852
}
4953
}
5054
```

0 commit comments

Comments
 (0)