Skip to content

Resource nubes_kafka · Service ID: 116 · Service Name: ApacheKafka

Manual · Create params · Modify params · Output params · Operations · Example

Create params

Обязательные параметры (вводимые пользователем)

IDCodeTypeDescriptionConstraints
1084startup_configurationmap-fixed
1085cluster_configurationmap-fixed
1086access_configurationmap-fixed

startupConfiguration (map-fixed)

IDCodeTypeRequiredDefaultDescriptionConstraints
579resource_realmstring**yes**Кластер Kubernetes, на котором будет развернут экземплярvalue_list=iot-naeel, k8s-3-sandbox-nubes-ru, k8s-4-sandbox-nubes-ru, naeel-test-3

clusterConfiguration (map-fixed)

IDCodeTypeRequiredDefaultDescriptionConstraints
580cpuinteger**yes**2000Указывается в Milicores
`1000` Mili == `1` Ядро
581memoryinteger**yes**2048
582replicasinteger**yes**value_list=1, 3, 5, 7
583diskinteger**yes**1

accessConfiguration (map-fixed)

IDCodeTypeRequiredDefaultDescriptionConstraints
584allocation_externalboolean**yes**falsevalue_list=false, true
585master_access_listjson**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. Иначе получите конфликт управления.