Skip to content

Commit

Permalink
Merge pull request #32 from yiyinglovecoding/tpu
Browse files Browse the repository at this point in the history
add tpu node location in template
  • Loading branch information
richardsliu committed Sep 8, 2023
2 parents 8bef440 + 490cea7 commit 9feabbd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions ray-on-gke/platform/modules/gke_standard/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ resource "google_container_node_pool" "tpu_pool" {
provider = google-beta
name = "tpu-pool"
location = var.region
node_locations = ["us-central2-b"]
cluster = var.enable_autopilot == false && var.enable_tpu ? google_container_cluster.ml_cluster[0].name : null
initial_node_count = var.num_nodes
count = var.enable_autopilot == false && var.enable_tpu ? 1 : 0
Expand Down
10 changes: 5 additions & 5 deletions ray-on-gke/user/jupyterhub/jupyterhub.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ provider "helm" {
}

resource "helm_release" "jupyterhub" {
name = "jupyterhub"
repository = "https://jupyterhub.github.io/helm-chart"
chart = "jupyterhub"
namespace = var.namespace
name = "jupyterhub"
repository = "https://jupyterhub.github.io/helm-chart"
chart = "jupyterhub"
namespace = var.namespace
create_namespace = var.create_namespace
cleanup_on_fail = "true"
cleanup_on_fail = "true"

values = [
file("${path.module}/jupyter_config/config.yaml")
Expand Down
4 changes: 2 additions & 2 deletions ray-on-gke/user/jupyterhub/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ variable "namespace" {
}

variable "create_namespace" {
type = bool
type = bool
description = "Enable creation of jupyterhub namespace if it does not exist"
default = false
default = false
}

0 comments on commit 9feabbd

Please sign in to comment.