You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/compute/resource-policy/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,5 +78,5 @@ No modules.
78
78
79
79
| Name | Description |
80
80
|------|-------------|
81
-
| <a name="output_placement_policy"></a> [placement\_policy](#output\_placement\_policy) | Group placement policy to use for placing VMs or GKE nodes placement. `COMPACT` is the only supported value for `type` currently. `name` is the name of the placement policy.<br/>It is assumed that the specified policy exists. To create a placement policy refer to https://cloud.google.com/sdk/gcloud/reference/compute/resource-policies/create/group-placement.<br/>Note: Placement policies have the [following](https://cloud.google.com/compute/docs/instances/placement-policies-overview#restrictions-compact-policies) restrictions. |
81
+
| <a name="output_placement_policy"></a> [placement\_policy](#output\_placement\_policy) | Group placement policy to use for placing VMs or GKE nodes placement. `COMPACT` is the only supported value for `type` currently. `name` is the name of the placement policy.<br/>It is assumed that the specified policy exists. To create a placement policy refer to https://cloud.google.com/sdk/gcloud/reference/compute/resource-policies/create/group-placement.<br/>Note: Placement policies have the [following](https://cloud.google.com/compute/docs/instances/placement-policies-overview#restrictions-compact-policies) restrictions.<br/>The value `tpu_topology` is only used for TPU node pools. The `gke-node-pool` module ensures it is configured appropriately for only TPUs during placement policy mapping. |
Copy file name to clipboardExpand all lines: modules/compute/resource-policy/outputs.tf
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,12 @@ output "placement_policy" {
19
19
Group placement policy to use for placing VMs or GKE nodes placement. `COMPACT` is the only supported value for `type` currently. `name` is the name of the placement policy.
20
20
It is assumed that the specified policy exists. To create a placement policy refer to https://cloud.google.com/sdk/gcloud/reference/compute/resource-policies/create/group-placement.
21
21
Note: Placement policies have the [following](https://cloud.google.com/compute/docs/instances/placement-policies-overview#restrictions-compact-policies) restrictions.
22
+
The value `tpu_topology` is only used for TPU node pools. The `gke-node-pool` module ensures it is configured appropriately for only TPUs during placement policy mapping.
22
23
EOT
23
24
24
25
value={
25
-
type = (var.group_placement_max_distance >0|| var.workload_policy.type !=null) ?"COMPACT":null
26
-
name = (var.group_placement_max_distance >0|| var.workload_policy.type !=null) ? local.name :null
26
+
type = (var.group_placement_max_distance >0|| var.workload_policy.type !=null) ?"COMPACT":null
27
+
name = (var.group_placement_max_distance >0|| var.workload_policy.type !=null) ? local.name :null
#Exhaustive map of machine prefixes to GKE accelerator labels.
27
+
#Map of machine prefixes to GKE accelerator labels.
28
28
tpu_accelerator_map={
29
29
"ct4p"="tpu-v4-podslice"# TPU v4
30
30
"ct5lp"="tpu-v5-lite-podslice"# TPU v5e
@@ -33,7 +33,7 @@ locals {
33
33
}
34
34
35
35
# Map specific GCE machine types to the number of TPU chips per node (VM).
36
-
#Based on public Google Cloud TPU documentation.
36
+
#The machine-type map must be updated to reflect new TPU releases with reference to public documentation: https://docs.cloud.google.com/tpu/docs/intro-to-tpu
0 commit comments