Skip to content

Commit

Permalink
added data block to main.tf for automatic k8s version pickup
Browse files Browse the repository at this point in the history
  • Loading branch information
orlov-a committed Feb 13, 2024
1 parent 88689b4 commit a42a3c1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,18 @@ resource "openstack_networking_floatingip_associate_v2" "association_1" {
]
}

data "selectel_mks_kube_versions_v1" "versions" {
project_id = module.project-with-user.project_id
region = "ru-9"
}

# Создаем MKS с cpu и gpu нод группами
module "mks" {
source = "./modules/mks/k8s-cluster-standalone"

cluster_name = "gh-cluster-test"
kube_version = "1.29.1" # Здесь важно выбрать доступную версию, может протухнуть
kube_version = data.selectel_mks_kube_versions_v1.versions.latest_version
#kube_version = "1.29.1" # Здесь важно выбрать доступную версию, может протухнуть

os_availability_zone = "ru-9a"
os_region = "ru-9"
Expand Down

0 comments on commit a42a3c1

Please sign in to comment.