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

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" {
│
╵
If you scroll down to the part where the instructions to provision an MKS Cluster using terraform reside,
here
The kubernetes version
1.22mentioned here is causing terraform apply to fail with the following error.