Resource nubes_template · v2.1.0 · Service ID: 2 · Service Name: Темплейт k8s¶
Manual · Create params · Modify params · Output params · Operations · Example
Create params¶
| Параметр | Тип | Обязательный | По умолчанию | Описание | Ограничения |
|---|---|---|---|---|---|
cluster_configuration |
map-fixed |
да | Развернуть ↓ | ||
startup_configuration |
map-fixed |
да | Развернуть ↓ | ||
access_configuration |
map-fixed |
да | Развернуть ↓ |
clusterConfiguration (map-fixed)¶
| Code | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
cpu |
integer |
yes | 100 |
||
memory |
integer |
yes | 128 |
||
replicas |
integer |
yes | 1 |
||
disk |
integer |
yes | 5 |
startupConfiguration (map-fixed)¶
| Code | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
resource_realm |
string |
yes | Допустимые значения: devclustername, k8s-3-sandbox-nubes-ru, k8s-4-sandbox-nubes-ru |
accessConfiguration (map-fixed)¶
| Code | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
type |
string |
yes | ingress |
Допустимые значения: ingress, service | |
domain |
string |
yes | abracadabra-zxbbrbbe |
regex=(?=^.{1,63}$)^a-z0-9?$ | |
master_ip_space |
string |
yes | |||
master_access_list |
json |
yes | [] |
||
slave_ip_space |
string |
yes | |||
slave_access_list |
json |
yes | [] |
Важно: поведение при destroy
По умолчанию: suspend_on_destroy = True, adopt_existing_on_create = False, keep_on_destroy = False.
При terraform destroy или удалении ресурса из манифеста:
- suspend_on_destroy=true — инстанс переводится в suspend (в облаке остаётся усыплённым, удаления нет); из Terraform-state ресурс убирается.
- suspend_on_destroy=false — выполняется операция delete: инстанс удаляется в облаке. ⚠️ Доступно только для работающего (running) инстанса; усыплённый (suspend) из Terraform удалить нельзя — операция delete для него недоступна, удаляйте его вручную в Личном кабинете.
- keep_on_destroy=true — операция не отправляется: облако не меняется, ресурс только убирается из состояния (state_only). Приоритетнее suspend_on_destroy.
При apply флаг adopt_existing_on_create работает как авто-import:
- false — если ресурс уже есть, будет ошибка.
- true — Terraform может взять существующий инстанс под управление.
Важно: один инстанс должен быть только в одном state. Иначе получите конфликт управления.