Skip to content

Resource nubes_template · Service ID: 2 · Service Name: Темплейт k8s

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

Create params

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

IDCodeTypeDescriptionConstraints
813cluster_configurationmap-fixed
814startup_configurationmap-fixed
815access_configurationmap-fixed

clusterConfiguration (map-fixed)

IDCodeTypeRequiredDefaultDescriptionConstraints
175diskinteger**yes**5
172cpuinteger**yes**100
173memoryinteger**yes**128
174replicasinteger**yes**1

startupConfiguration (map-fixed)

IDCodeTypeRequiredDefaultDescriptionConstraints
176resource_realmstring**yes**value_list=iot-naeel, k8s-3-sandbox-nubes-ru, k8s-4-sandbox-nubes-ru, naeel-test-3

accessConfiguration (map-fixed)

IDCodeTypeRequiredDefaultDescriptionConstraints
182slave_access_listjson**yes**[]
177typestring**yes**ingressvalue_list=ingress, service
178domainstring**yes**abracadabra-26b2gcepregex=(?=^.{1,63}$)^[a-z0-9]([a-z0-9-]*[a-z0-9])?$
179master_ip_spacestring**yes**
180master_access_listjson**yes**[]
181slave_ip_spacestring**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. Иначе получите конфликт управления.