Skip to content

Commit 3f5326b

Browse files
Enable Nvidia GPU add-on
1 parent cd6b384 commit 3f5326b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

terraform/full/oke-cluster.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ module "oke" {
8686
bastion_upgrade = false
8787
cluster_name = local.cluster_name
8888
cluster_type = "enhanced"
89+
cluster_addons = {
90+
"NvidiaGpuPlugin" = {
91+
remove_addon_resources_on_delete = true
92+
override_existing = true
93+
configurations = []
94+
}
95+
}
8996
cni_type = "flannel"
9097
control_plane_allowed_cidrs = flatten(tolist([var.control_plane_allowed_cidrs]))
9198
control_plane_is_public = true

terraform/minimal/main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ module "oke" {
1414

1515
kubernetes_version = var.kubernetes_version
1616
cluster_type = var.cluster_type
17+
cluster_addons = {
18+
"NvidiaGpuPlugin" = {
19+
remove_addon_resources_on_delete = true
20+
override_existing = true
21+
configurations = []
22+
}
23+
}
1724
bastion_allowed_cidrs = ["0.0.0.0/0"]
1825
allow_worker_ssh_access = true
1926
control_plane_allowed_cidrs = ["0.0.0.0/0"]

0 commit comments

Comments
 (0)