Resource nubes_kafka · Service ID: 116 · Service Name: ApacheKafka¶
Manual · Create params · Modify params · Output params · Operations · Example
Create params¶
Обязательные параметры (вводимые пользователем)
| ID | Code | Type | Description | Constraints |
|---|---|---|---|---|
| 1084 | startup_configuration | map-fixed | ||
| 1085 | cluster_configuration | map-fixed | ||
| 1086 | access_configuration | map-fixed |
startupConfiguration (map-fixed)¶
| ID | Code | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|---|
| 579 | resource_realm | string | **yes** | Кластер Kubernetes, на котором будет развернут экземпляр | value_list=iot-naeel, k8s-3-sandbox-nubes-ru, k8s-4-sandbox-nubes-ru, naeel-test-3 |
clusterConfiguration (map-fixed)¶
| ID | Code | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|---|
| 580 | cpu | integer | **yes** | 2000 | Указывается в Milicores `1000` Mili == `1` Ядро | |
| 581 | memory | integer | **yes** | 2048 | ||
| 582 | replicas | integer | **yes** | value_list=1, 3, 5, 7 | ||
| 583 | disk | integer | **yes** | 1 |
accessConfiguration (map-fixed)¶
| ID | Code | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|---|
| 584 | allocation_external | boolean | **yes** | false | value_list=false, true | |
| 585 | master_access_list | json | **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. Иначе получите конфликт управления.