Resource nubes_template · Service ID: 2 · Service Name: Темплейт k8s¶
Manual · Create params · Modify params · Output params · Operations · Example
Create params¶
Обязательные параметры (вводимые пользователем)
| ID | Code | Type | Description | Constraints |
|---|---|---|---|---|
| 813 | cluster_configuration | map-fixed | ||
| 814 | startup_configuration | map-fixed | ||
| 815 | access_configuration | map-fixed |
clusterConfiguration (map-fixed)¶
| ID | Code | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|---|
| 175 | disk | integer | **yes** | 5 | ||
| 172 | cpu | integer | **yes** | 100 | ||
| 173 | memory | integer | **yes** | 128 | ||
| 174 | replicas | integer | **yes** | 1 |
startupConfiguration (map-fixed)¶
| ID | Code | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|---|
| 176 | resource_realm | string | **yes** | value_list=iot-naeel, k8s-3-sandbox-nubes-ru, k8s-4-sandbox-nubes-ru, naeel-test-3 |
accessConfiguration (map-fixed)¶
| ID | Code | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|---|
| 182 | slave_access_list | json | **yes** | [] | ||
| 177 | type | string | **yes** | ingress | value_list=ingress, service | |
| 178 | domain | string | **yes** | abracadabra-26b2gcep | regex=(?=^.{1,63}$)^[a-z0-9]([a-z0-9-]*[a-z0-9])?$ | |
| 179 | master_ip_space | string | **yes** | |||
| 180 | master_access_list | json | **yes** | [] | ||
| 181 | slave_ip_space | string | **yes** |
Параметры поведения (кратко)
По умолчанию: `suspend_on_destroy = True`, `adopt_existing_on_create = False`.
При `terraform destroy` или удалении ресурса из манифеста:
- `suspend_on_destroy=true` — инстанс переводится в `Suspend` (не удаляется).
- `suspend_on_destroy=false` — Terraform удаляет ресурс только из state.
При `apply` флаг `adopt_existing_on_create` работает как авто-`import`:
- `false` — если ресурс уже есть, будет ошибка.
- `true` — Terraform может взять существующий инстанс под управление (`running` → adopt, `suspended` → resume+adopt при совпадении параметров).
Важно: один инстанс должен быть только в одном state. Иначе получите конфликт управления.
По умолчанию: `suspend_on_destroy = True`, `adopt_existing_on_create = False`.
При `terraform destroy` или удалении ресурса из манифеста:
- `suspend_on_destroy=true` — инстанс переводится в `Suspend` (не удаляется).
- `suspend_on_destroy=false` — Terraform удаляет ресурс только из state.
При `apply` флаг `adopt_existing_on_create` работает как авто-`import`:
- `false` — если ресурс уже есть, будет ошибка.
- `true` — Terraform может взять существующий инстанс под управление (`running` → adopt, `suspended` → resume+adopt при совпадении параметров).
Важно: один инстанс должен быть только в одном state. Иначе получите конфликт управления.