Skip to content

feat: add new scaletest infrastructure #15573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Dec 12, 2024
Prev Previous commit
Next Next commit
workspace proxies registered
  • Loading branch information
f0ssel committed Dec 2, 2024
commit 9b77ae514beccf1f970e583cab96614344c80a0f
40 changes: 40 additions & 0 deletions scaletest/terraform/new/gcp_cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ locals {
zone = "us-east1-c"
cidr = "10.200.0.0/24"
}
europe = {
region = "europe-west1"
zone = "europe-west1-b"
cidr = "10.201.0.0/24"
}
asia = {
region = "asia-southeast1"
zone = "asia-southeast1-a"
cidr = "10.202.0.0/24"
}
}
node_pools = {
primary_coder = {
Expand All @@ -27,6 +37,36 @@ locals {
cluster = "primary"
size = 1
}
europe_coder = {
name = "coder"
cluster = "europe"
size = 1
}
europe_workspaces = {
name = "workspaces"
cluster = "europe"
size = 1
}
europe_misc = {
name = "misc"
cluster = "europe"
size = 1
}
asia_coder = {
name = "coder"
cluster = "asia"
size = 1
}
asia_workspaces = {
name = "workspaces"
cluster = "asia"
size = 1
}
asia_misc = {
name = "misc"
cluster = "asia"
size = 1
}
}
}

Expand Down
4 changes: 4 additions & 0 deletions scaletest/terraform/new/k8s_coder.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ resource "random_password" "provisionerd_psk" {
}

resource "kubernetes_secret" "coder-db" {
provider = kubernetes.primary

type = "Opaque"
metadata {
name = "coder-db-url"
Expand Down Expand Up @@ -224,6 +226,8 @@ EOF
}

resource "helm_release" "provisionerd-chart" {
provider = helm.primary

repository = local.coder_helm_repo
chart = local.provisionerd_helm_chart
name = local.provisionerd_release_name
Expand Down