-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1028 from yejingxin/master
Add terraform output and maintenance interval feature
- Loading branch information
Showing
10 changed files
with
96 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
output "region" { | ||
value = var.region | ||
description = "GCloud Region" | ||
} | ||
|
||
output "project_id" { | ||
value = var.project_id | ||
description = "GCloud Project ID" | ||
} | ||
|
||
output "kubernetes_cluster_name" { | ||
value = module.tpu-gke.kubernetes_cluster_name | ||
description = "GKE Cluster Name" | ||
} | ||
|
||
output "kubernetes_cluster_host" { | ||
value = module.tpu-gke.kubernetes_cluster_host | ||
description = "GKE Cluster Host" | ||
} | ||
|
||
output "nodepool_tpu_topology" { | ||
value = module.tpu-gke.nodepool_tpu_topology | ||
description = "GKE TPU topology" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
project_id = "tpu-prod-env-multipod" | ||
resource_name_prefix = "yejingxin" | ||
project_id = "project-id" | ||
resource_name_prefix = "tpu-test" | ||
region = "us-central2" | ||
tpu_node_pools = [{ | ||
zone = "us-central2-b" | ||
node_count = 4 | ||
machine_type = "ct4p-hightpu-4t" | ||
topology = "2x2x4" | ||
}, { | ||
zone = "us-central2-b" | ||
node_count = 4 | ||
machine_type = "ct4p-hightpu-4t" | ||
topology = "2x2x4" | ||
}, { | ||
zone = "us-central2-b" | ||
node_count = 2 | ||
machine_type = "ct4p-hightpu-4t" | ||
topology = "2x2x2" | ||
}] | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
output "region" { | ||
value = var.region | ||
description = "GCloud Region" | ||
} | ||
|
||
output "project_id" { | ||
value = var.project_id | ||
description = "GCloud Project ID" | ||
} | ||
|
||
output "kubernetes_cluster_name" { | ||
value = module.tpu-gke.kubernetes_cluster_name | ||
description = "GKE Cluster Name" | ||
} | ||
|
||
output "kubernetes_cluster_host" { | ||
value = module.tpu-gke.kubernetes_cluster_host | ||
description = "GKE Cluster Host" | ||
} | ||
|
||
output "nodepool_tpu_topology" { | ||
value = module.tpu-gke.nodepool_tpu_topology | ||
description = "GKE TPU topology" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
output "region" { | ||
value = var.region | ||
description = "GCloud Region" | ||
} | ||
|
||
output "project_id" { | ||
value = var.project_id | ||
description = "GCloud Project ID" | ||
} | ||
|
||
output "kubernetes_cluster_name" { | ||
value = google_container_cluster.tpu_cluster.name | ||
description = "GKE Cluster Name" | ||
} | ||
|
||
output "kubernetes_cluster_host" { | ||
value = google_container_cluster.tpu_cluster.endpoint | ||
description = "GKE Cluster Host" | ||
} | ||
|
||
output "nodepool_tpu_topology" { | ||
value = flatten(google_container_node_pool.multihost_tpu[*].placement_policy[0].tpu_topology) | ||
description = "GKE TPU topology" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters