docs icon indicating copy to clipboard operation
docs copied to clipboard

Unsupported kubernetes version stated in the docs

Open wheezyturbo opened this issue 2 months ago • 1 comments

If you scroll down to the part where the instructions to provision an MKS Cluster using terraform reside, here

Screenshot_2025-11-04-17-25-44-897_com.brave.browser.jpg

resource "ovh_cloud_project_kube" "my_kube_cluster" {
   service_name = "${var.service_name}"
   name         = "my_kube_cluster"
   region       = "GRA7"
   version      = "1.22"
}

resource "ovh_cloud_project_kube_nodepool" "node_pool" {
   service_name  = "${var.service_name}"
   kube_id       = ovh_cloud_project_kube.my_kube_cluster.id
   name          = "my-pool" //Warning: "_" char is not allowed!
   flavor_name   = "b2-7"
   desired_nodes = 3
   max_nodes     = 3
   min_nodes     = 3
}

The kubernetes version 1.22 mentioned here is causing terraform apply to fail with the following error.

 ovh_cloud_project_kube.my_kube_cluster: Creating...
 ╷
 │ Error: calling Post /cloud/project/48415a653def4db0aaa6659d904debb5/kube with params my_kube_cluster (GRA7): 1.22:
 │        OVHcloud API error (status code 400): Client::BadRequest: "[version] \"1.22\" does not match the enum" (X-OVH-Query-Id: EU.ext-4.6909ec19.1556006.56a8066f382fbec02a0
 53b7ca209a754)
 │ 
 │   with ovh_cloud_project_kube.my_kube_cluster,
 │   on main.tf line 17, in resource "ovh_cloud_project_kube" "my_kube_cluster":
 │   17: resource "ovh_cloud_project_kube" "my_kube_cluster" {
 │ 
 ╵

wheezyturbo avatar Nov 04 '25 12:11 wheezyturbo

Good catch. Waiting the fix of the guide, you just have to delete the version line. Thanks to that, it will deploy the latest version of MKS.

scraly avatar Nov 04 '25 12:11 scraly