From 3776e705eb16302a76af4de4d3df61ae66c2e4b5 Mon Sep 17 00:00:00 2001 From: Anton Alekseev Date: Thu, 22 Aug 2024 12:18:36 +0300 Subject: [PATCH] Update MKS resources documentation (#295) * Update mks_nodegroup_v1.html.markdown * Update mks_cluster_v1.html.markdown * add required parameter to example --------- Co-authored-by: Ilya Kulakov --- website/docs/r/mks_cluster_v1.html.markdown | 10 +++++----- website/docs/r/mks_nodegroup_v1.html.markdown | 13 ++++++++----- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/website/docs/r/mks_cluster_v1.html.markdown b/website/docs/r/mks_cluster_v1.html.markdown index f382900d..0f144c79 100644 --- a/website/docs/r/mks_cluster_v1.html.markdown +++ b/website/docs/r/mks_cluster_v1.html.markdown @@ -18,7 +18,7 @@ Creates and manages a Managed Kubernetes cluster using public API v1. For more i resource "selectel_mks_cluster_v1" "ha_cluster" { name = "cluster-1" project_id = selectel_vpc_project_v2.project_1.id - region = "ru-3" + region = "ru-7" kube_version = data.selectel_mks_kube_versions_v1.versions.latest_version } ``` @@ -29,7 +29,7 @@ resource "selectel_mks_cluster_v1" "ha_cluster" { resource "selectel_mks_cluster_v1" "basic_cluster" { name = "cluster-1" project_id = selectel_vpc_project_v2.project_1.id - region = "ru-3" + region = "ru-7" kube_version = data.selectel_mks_kube_versions_v1.versions.latest_version zonal = true enable_patch_version_auto_upgrade = false @@ -42,7 +42,7 @@ resource "selectel_mks_cluster_v1" "basic_cluster" { * `project_id` - (Required) Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the [selectel_vpc_project_v2](https://registry.terraform.io/providers/selectel/selectel/latest/docs/resources/vpc_project_v2) resource. Learn more about [Projects](https://docs.selectel.ru/en/cloud/managed-kubernetes/about/projects/). -* `region` - (Required) Pool where the cluster is located, for example, `ru-3`. Changing this creates a new cluster. Learn more about available pools in the [Availability matrix](https://docs.selectel.ru/en/control-panel-actions/availability-matrix/#managed-kubernetes). +* `region` - (Required) Pool where the cluster is located, for example, `ru-7`. Changing this creates a new cluster. Learn more about available pools in the [Availability matrix](https://docs.selectel.ru/en/control-panel-actions/availability-matrix/#managed-kubernetes). * `kube_version` - (Required) Kubernetes version of the cluster. Changing this upgrades the cluster version. You can retrieve information about the Kubernetes versions with the [selectel_mks_kube_versions_v1](https://registry.terraform.io/providers/selectel/selectel/latest/docs/data-sources/mks_kube_versions_v1) data source. @@ -113,6 +113,6 @@ where: * `` — Unique identifier of the associated project. To get the ID, in the [Control panel](https://my.selectel.ru/vpc/mks), go to **Cloud Platform** ⟶ project name ⟶ copy the ID of the required project. Learn more about [Projects](https://docs.selectel.ru/en/cloud/managed-kubernetes/about/projects/). -* `` — Pool where the cluster is located, for example, `ru-3`. To get information about the pool, in the [Control panel](https://my.selectel.ru/vpc/mks/), go to **Cloud Platform** ⟶ **Kubernetes**. The pool is in the **Pool** column. +* `` — Pool where the cluster is located, for example, `ru-7`. To get information about the pool, in the [Control panel](https://my.selectel.ru/vpc/mks/), go to **Cloud Platform** ⟶ **Kubernetes**. The pool is in the **Pool** column. -* `` — Unique identifier of the cluster, for example, `b311ce58-2658-46b5-b733-7a0f418703f2`. To get the cluster ID, in the [Control panel](https://my.selectel.ru/vpc/mks/), go to **Cloud Platform** ⟶ **Kubernetes** ⟶ the cluster page ⟶ copy the ID at the top of the page under the cluster name, near the region and pool. \ No newline at end of file +* `` — Unique identifier of the cluster, for example, `b311ce58-2658-46b5-b733-7a0f418703f2`. To get the cluster ID, in the [Control panel](https://my.selectel.ru/vpc/mks/), go to **Cloud Platform** ⟶ **Kubernetes** ⟶ the cluster page ⟶ copy the ID at the top of the page under the cluster name, near the region and pool. diff --git a/website/docs/r/mks_nodegroup_v1.html.markdown b/website/docs/r/mks_nodegroup_v1.html.markdown index d981de72..f28064f0 100644 --- a/website/docs/r/mks_nodegroup_v1.html.markdown +++ b/website/docs/r/mks_nodegroup_v1.html.markdown @@ -17,12 +17,15 @@ resource "selectel_mks_nodegroup_v1" "nodegroup_1" { cluster_id = selectel_mks_cluster_v1.cluster_1.id project_id = selectel_mks_cluster_v1.cluster_1.project_id region = selectel_mks_cluster_v1.cluster_1.region - availability_zone = "ru-3a" + availability_zone = "ru-7a" nodes_count = 3 cpus = 2 - ram_mb = 2048 + ram_mb = 4096 volume_gb = 20 - volume_type = "fast.ru-3a" + volume_type = "fast.ru-7a" + + install_nvidia_device_plugin = false + labels = { "label-key0": "label-value0", "label-key1": "label-value1", @@ -52,7 +55,7 @@ resource "selectel_mks_nodegroup_v1" "nodegroup_1" { * `project_id` - (Required) Unique identifier of the associated project. Changing this creates a new node group. Retrieved from the [selectel_vpc_project_v2](https://registry.terraform.io/providers/selectel/selectel/latest/docs/resources/vpc_project_v2) resource. Learn more about [Projects](https://docs.selectel.ru/en/cloud/managed-kubernetes/about/projects/). -* `region` - (Required) Pool where the cluster is located, for example, `ru-3`. Changing this creates a new node group. Learn more about available pools in the [Availability matrix](https://docs.selectel.ru/en/control-panel-actions/availability-matrix/#managed-kubernetes). +* `region` - (Required) Pool where the cluster is located, for example, `ru-7`. Changing this creates a new node group. Learn more about available pools in the [Availability matrix](https://docs.selectel.ru/en/control-panel-actions/availability-matrix/#managed-kubernetes). * `availability_zone` - (Required) Pool segment where all nodes of the node group are located. Changing this creates a new node group. Learn more about available pool segments in the [Availability matrix](https://docs.selectel.ru/en/control-panel-actions/availability-matrix/#managed-kubernetes). @@ -120,7 +123,7 @@ where: * `` — Unique identifier of the associated project. To get the ID, in the [Control panel](https://my.selectel.ru/vpc/mks), go to **Cloud Platform** ⟶ project name ⟶ copy the ID of the required project. Learn more about [Projects](https://docs.selectel.ru/en/cloud/managed-kubernetes/about/projects/). -* `` — Pool where the cluster is located, for example, `ru-3`. To get information about the pool, in the [Control panel](https://my.selectel.ru/vpc/mks/), go to **Cloud Platform** ⟶ **Kubernetes**. The pool is in the **Pool** column. +* `` — Pool where the cluster is located, for example, `ru-7`. To get information about the pool, in the [Control panel](https://my.selectel.ru/vpc/mks/), go to **Cloud Platform** ⟶ **Kubernetes**. The pool is in the **Pool** column. * `` — Unique identifier of the cluster, for example, `b311ce58-2658-46b5-b733-7a0f418703f2`. To get the cluster ID, in the [Control panel](https://my.selectel.ru/vpc/mks/), go to **Cloud Platform** ⟶ **Kubernetes** ⟶ the cluster page ⟶ copy the ID at the top of the page under the cluster name, near the region and pool.