Skip to content

Commit

Permalink
REF: Move terraform config into terraform-octue-twined module
Browse files Browse the repository at this point in the history
  • Loading branch information
cortadocodes committed Jan 27, 2025
1 parent 3a2a1f2 commit 7809b25
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 177 deletions.
2 changes: 1 addition & 1 deletion terraform/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 0 additions & 18 deletions terraform/google_apis.tf

This file was deleted.

13 changes: 0 additions & 13 deletions terraform/kubernetes_cluster.tf

This file was deleted.

50 changes: 0 additions & 50 deletions terraform/kubernetes_iam.tf

This file was deleted.

45 changes: 0 additions & 45 deletions terraform/kubernetes_kueue.tf

This file was deleted.

17 changes: 0 additions & 17 deletions terraform/kueue_manifests/cluster_queue.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions terraform/kueue_manifests/local_queue.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions terraform/kueue_manifests/resource_flavors.yaml

This file was deleted.

15 changes: 8 additions & 7 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ terraform {
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "~>2.35.1"
version = "~>2.35"
}
kubectl = {
source = "gavinbunney/kubectl"
version = "~>1.19.0"
version = "~>1.19"
}
}

Expand All @@ -37,17 +37,18 @@ data "google_client_config" "default" {}


provider "kubernetes" {
host = "https://${google_container_cluster.primary.endpoint}"
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(google_container_cluster.primary.master_auth[0].cluster_ca_certificate)
config_path = "~/.kube/config"
# host = "https://${module.octue_twined.kubernetes_cluster.endpoint}"
# token = data.google_client_config.default.access_token
# cluster_ca_certificate = base64decode(module.octue_twined.kubernetes_cluster.master_auth[0].cluster_ca_certificate)
}


provider "kubectl" {
load_config_file = false
host = "https://${google_container_cluster.primary.endpoint}"
host = "https://${module.octue_twined.kubernetes_cluster.endpoint}"
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(google_container_cluster.primary.master_auth[0].cluster_ca_certificate)
cluster_ca_certificate = base64decode(module.octue_twined.kubernetes_cluster.master_auth[0].cluster_ca_certificate)
}


Expand Down
15 changes: 0 additions & 15 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,3 @@ variable "deletion_protection" {
type = bool
default = false
}

variable "kueue_version" {
type = string
default = "v0.10.1"
}

variable "cpus" {
type = number
default = 2
}

variable "memory" {
type = string
default = "2Gi"
}

0 comments on commit 7809b25

Please sign in to comment.