Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Доступны в регионе
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • ИИ для бизнеса
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Партнёрская программа
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Истории успеха
  • Документация
  • Блог
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»
Terraform в Yandex Cloud
  • Начало работы
  • Библиотека решений
    • Обзор
    • История изменений (англ.)
          • kubernetes_cluster
          • kubernetes_node_group

В этой статье:

  • Example usage
  • Schema
  • Optional
  • Read-Only
  • Nested Schema for allocation_policy
  • Nested Schema for allocation_policy.location
  • Nested Schema for deploy_policy
  • Nested Schema for instance_template
  • Nested Schema for instance_template.boot_disk
  • Nested Schema for instance_template.container_network
  • Nested Schema for instance_template.container_runtime
  • Nested Schema for instance_template.gpu_settings
  • Nested Schema for instance_template.network_interface
  • Nested Schema for instance_template.network_interface.ipv4_dns_records
  • Nested Schema for instance_template.network_interface.ipv6_dns_records
  • Nested Schema for instance_template.placement_policy
  • Nested Schema for instance_template.resources
  • Nested Schema for instance_template.scheduling_policy
  • Nested Schema for maintenance_policy
  • Nested Schema for maintenance_policy.maintenance_window
  • Nested Schema for scale_policy
  • Nested Schema for scale_policy.auto_scale
  • Nested Schema for scale_policy.fixed_scale
  • Nested Schema for version_info
  1. Справочник Terraform
  2. Ресурсы (англ.)
  3. Managed Service for Kubernetes (MK8S)
  4. Data Sources
  5. kubernetes_node_group

yandex_kubernetes_node_group (Data Source)

Статья создана
Yandex Cloud
Обновлена 11 сентября 2025 г.
  • Example usage
  • Schema
    • Optional
    • Read-Only
    • Nested Schema for allocation_policy
    • Nested Schema for allocation_policy.location
    • Nested Schema for deploy_policy
    • Nested Schema for instance_template
    • Nested Schema for instance_template.boot_disk
    • Nested Schema for instance_template.container_network
    • Nested Schema for instance_template.container_runtime
    • Nested Schema for instance_template.gpu_settings
    • Nested Schema for instance_template.network_interface
    • Nested Schema for instance_template.network_interface.ipv4_dns_records
    • Nested Schema for instance_template.network_interface.ipv6_dns_records
    • Nested Schema for instance_template.placement_policy
    • Nested Schema for instance_template.resources
    • Nested Schema for instance_template.scheduling_policy
    • Nested Schema for maintenance_policy
    • Nested Schema for maintenance_policy.maintenance_window
    • Nested Schema for scale_policy
    • Nested Schema for scale_policy.auto_scale
    • Nested Schema for scale_policy.fixed_scale
    • Nested Schema for version_info

Get information about a Yandex Kubernetes Node Group. For more information, see the official documentation.

Важно

One of node_group_id or name should be specified.

Example usageExample usage

//
// Get information about existing Managed Kubernetes Node Group.
//
data "yandex_kubernetes_node_group" "my_node_group" {
  node_group_id = "some_k8s_node_group_id"
}

output "my_node_group.status" {
  value = data.yandex_kubernetes_node_group.my_node_group.status
}

SchemaSchema

OptionalOptional

  • folder_id (String) The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • name (String) The resource name.
  • node_group_id (String) ID of a specific Kubernetes node group.

Read-OnlyRead-Only

  • allocation_policy (List of Object) (see below for nested schema)
  • allowed_unsafe_sysctls (List of String) A list of allowed unsafe sysctl parameters for this node group. For more details see documentation.
  • cluster_id (String) The ID of the Kubernetes cluster that this node group belongs to.
  • created_at (String) The creation timestamp of the resource.
  • deploy_policy (List of Object) (see below for nested schema)
  • description (String) The resource description.
  • id (String) The ID of this resource.
  • instance_group_id (String) ID of instance group that is used to manage this Kubernetes node group.
  • instance_template (List of Object) (see below for nested schema)
  • labels (Map of String) A set of key/value label pairs which assigned to resource.
  • maintenance_policy (List of Object) (see below for nested schema)
  • node_labels (Map of String) A set of key/value label pairs, that are assigned to all the nodes of this Kubernetes node group.
  • node_taints (List of String) A list of Kubernetes taints, that are applied to all the nodes of this Kubernetes node group.
  • scale_policy (List of Object) (see below for nested schema)
  • status (String) Status of the Kubernetes node group.
  • version_info (List of Object) (see below for nested schema)

Nested Schema for Nested Schema for allocation_policy

Read-Only:

  • location (Block List) Repeated field, that specify subnets (zones), that will be used by node group compute instances. Subnet specified by subnet_id should be allocated in zone specified by 'zone' argument. (see below for nested schema)

Nested Schema for Nested Schema for allocation_policy.location

Read-Only:

  • subnet_id (String) ID of the subnet, that will be used by one compute instance in node group.

  • zone (String) ID of the availability zone where for one compute instance in node group.

Nested Schema for Nested Schema for deploy_policy

Read-Only:

  • max_expansion (Number) The maximum number of instances that can be temporarily allocated above the group's target size during the update.

  • max_unavailable (Number) The maximum number of running instances that can be taken offline during update.

Nested Schema for Nested Schema for instance_template

Read-Only:

  • boot_disk (Block List, Max: 1) The specifications for boot disks that will be attached to the instance. (see below for nested schema)

  • container_network (Block List, Max: 1) Container network configuration. (see below for nested schema)

  • container_runtime (Block List, Max: 1) Container runtime configuration. (see below for nested schema)

  • gpu_settings (Block List, Max: 1) GPU settings. (see below for nested schema)

  • labels (Map of String) Labels that will be assigned to compute nodes (instances), created by the Node Group.

  • metadata (Map of String) The set of metadata key:value pairs assigned to this instance template. This includes custom metadata and predefined keys. Note: key user-data won't be provided into instances. It reserved for internal activity in kubernetes_node_group resource.

  • name (String) Name template of the instance. In order to be unique it must contain at least one of instance unique placeholders:

  • nat (Boolean) Enables NAT for node group compute instances.

  • network_acceleration_type (String) Type of network acceleration. Values: standard, software_accelerated.

  • network_interface (Block List) An array with the network interfaces that will be attached to the instance. (see below for nested schema)

  • placement_policy (Block List, Max: 1) The placement policy configuration. (see below for nested schema)

  • platform_id (String) The ID of the hardware platform configuration for the node group compute instances.

  • resources (List of Object) (see below for nested schema)

  • scheduling_policy (Block List, Max: 1) The scheduling policy for the instances in node group. (see below for nested schema)

Nested Schema for Nested Schema for instance_template.boot_disk

Read-Only:

  • size (Number) The size of the disk in GB. Allowed minimal size: 64 GB.

  • type (String) The disk type.

Nested Schema for Nested Schema for instance_template.container_network

Read-Only:

  • pod_mtu (Number) MTU for pods.

Nested Schema for Nested Schema for instance_template.container_runtime

Read-Only:

  • type (String) Type of container runtime. Values: docker, containerd.

Nested Schema for Nested Schema for instance_template.gpu_settings

Read-Only:

  • gpu_cluster_id (String) GPU cluster id.

  • gpu_environment (String) GPU environment. Values: runc, runc_drivers_cuda.

Nested Schema for Nested Schema for instance_template.network_interface

Read-Only:

  • ipv4 (Boolean) Allocate an IPv4 address for the interface. The default value is true.

  • ipv4_dns_records (Block List) List of configurations for creating ipv4 DNS records. (see below for nested schema)

  • ipv6 (Boolean) If true, allocate an IPv6 address for the interface. The address will be automatically assigned from the specified subnet.

  • ipv6_dns_records (Block List) List of configurations for creating ipv6 DNS records. (see below for nested schema)

  • nat (Boolean) A public address that can be used to access the internet over NAT.

  • security_group_ids (Set of String) Security group IDs for network interface.

  • subnet_ids (Set of String) The IDs of the subnets.

Nested Schema for Nested Schema for instance_template.network_interface.ipv4_dns_records

Read-Only:

  • dns_zone_id (String) DNS zone ID (if not set, private zone is used).

  • fqdn (String) DNS record FQDN.

  • ptr (Boolean) When set to true, also create a PTR DNS record.

  • ttl (Number) DNS record TTL (in seconds).

Nested Schema for Nested Schema for instance_template.network_interface.ipv6_dns_records

Read-Only:

  • dns_zone_id (String) DNS zone ID (if not set, private zone is used).

  • fqdn (String) DNS record FQDN.

  • ptr (Boolean) When set to true, also create a PTR DNS record.

  • ttl (Number) DNS record TTL (in seconds).

Nested Schema for Nested Schema for instance_template.placement_policy

Read-Only:

  • placement_group_id (String) Specifies the id of the Placement Group to assign to the instances.

Nested Schema for Nested Schema for instance_template.resources

Read-Only:

  • core_fraction (Number) Baseline core performance as a percent.

  • cores (Number) Number of CPU cores allocated to the instance.

  • gpus (Number) Number of GPU cores allocated to the instance.

  • memory (Number) The memory size allocated to the instance.

Nested Schema for Nested Schema for instance_template.scheduling_policy

Read-Only:

  • preemptible (Boolean) Specifies if the instance is preemptible. Defaults to false.

Nested Schema for Nested Schema for maintenance_policy

Read-Only:

  • auto_repair (Boolean) Flag that specifies if node group can be repaired automatically. When omitted, default value is true.

  • auto_upgrade (Boolean) Flag specifies if node group can be upgraded automatically. When omitted, default value is true.

  • maintenance_window (Block Set) Set of day intervals, when maintenance is allowed for this node group. When omitted, it defaults to any time. (see below for nested schema)

Nested Schema for Nested Schema for maintenance_policy.maintenance_window

Read-Only:

  • day (String)
  • duration (String)
  • start_time (String)

Nested Schema for Nested Schema for scale_policy

Read-Only:

  • auto_scale (Block List, Max: 1) Scale policy for an autoscaled node group. (see below for nested schema)

  • fixed_scale (Block List, Max: 1) Scale policy for a fixed scale node group. (see below for nested schema)

Nested Schema for Nested Schema for scale_policy.auto_scale

Read-Only:

  • initial (Number) Initial number of instances in the node group.

  • max (Number) Maximum number of instances in the node group.

  • min (Number) Minimum number of instances in the node group.

Nested Schema for Nested Schema for scale_policy.fixed_scale

Read-Only:

  • size (Number) The number of instances in the node group.

Nested Schema for Nested Schema for version_info

Read-Only:

  • current_version (String)
  • new_revision_available (Boolean)
  • new_revision_summary (String)
  • version_deprecated (Boolean)

Была ли статья полезна?

Предыдущая
kubernetes_cluster
Следующая
kubernetes_cluster
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»