Skip to content

Commit

Permalink
Merge pull request #67 from codota/DEV2-7020
Browse files Browse the repository at this point in the history
DEV2-7020: adding latest nvidia driver
  • Loading branch information
yanir-codota authored Aug 8, 2024
2 parents a806308 + 1140186 commit f0f3b08
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 258 deletions.
Binary file added .DS_Store
Binary file not shown.
10 changes: 9 additions & 1 deletion examples/cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module "gke_cluster_tabnine" {
gke_master_authorized_networks = var.gke_master_authorized_networks
}


output "redis_url" {
value = module.gke_cluster_tabnine.redis_url
sensitive = true
Expand All @@ -27,15 +26,24 @@ output "db_url" {
output "db_ca_base64" {
description = "Database ca certificate (base64 encoded)"
value = base64encode(module.gke_cluster_tabnine.db_ca)
sensitive = true
}

output "db_cert_base64" {
description = "Database server certificate (base64 encoded)"
value = base64encode(module.gke_cluster_tabnine.db_cert)
sensitive = true
}

output "db_private_key_base64" {
description = "Database client private key (base64 encoded)"
value = base64encode(module.gke_cluster_tabnine.db_private_key)
sensitive = true
}

# output "ingress_ip" {
# description = "IP address of the Ingress controller"
# value = module.gke_cluster_tabnine.ingress_ip
# sensitive = false
# }

2 changes: 1 addition & 1 deletion examples/cluster/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ variable "gke_master_authorized_networks" {
cidr_block = string,
display_name = string
}))
}
}
1 change: 1 addition & 0 deletions modules/cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ module "gke_cluster_tabnine" {
| <a name="output_db_private_key"></a> [db\_private\_key](#output\_db\_private\_key) | n/a |
| <a name="output_db_url"></a> [db\_url](#output\_db\_url) | n/a |
| <a name="output_endpoint"></a> [endpoint](#output\_endpoint) | Cluster endpoint |
| <a name="output_ingress_ip"></a> [ingress\_ip](#output\_ingress\_ip) | n/a |
| <a name="output_network_name"></a> [network\_name](#output\_network\_name) | Name of the created network |
| <a name="output_redis_ca"></a> [redis\_ca](#output\_redis\_ca) | n/a |
| <a name="output_redis_ip"></a> [redis\_ip](#output\_redis\_ip) | n/a |
Expand Down
256 changes: 0 additions & 256 deletions modules/cluster/daemonset_kube_system_nvidia_driver_installer.tf

This file was deleted.

1 change: 1 addition & 0 deletions modules/cluster/gke.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ module "gke" {
auto_upgrade = true
preemptible = false
initial_node_count = 1
gpu_driver_version = "LATEST"
},
]

Expand Down
4 changes: 4 additions & 0 deletions modules/cluster/google_compute_global_address.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Global static IP to attach to Tabnine ingress
resource "google_compute_global_address" "ingress" {
name = "${var.prefix}-tabnine-cloud"
}
5 changes: 5 additions & 0 deletions modules/cluster/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ output "db_cert" {
output "db_private_key" {
value = google_sql_ssl_cert.sql_db.private_key
}


output "ingress_ip" {
value = google_compute_global_address.ingress.address
}

0 comments on commit f0f3b08

Please sign in to comment.