Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Setting up Yandex Cloud Terraform provider authentication
  • Solution library
    • Overview
    • Release notes
          • kubernetes_cluster
          • kubernetes_node_group

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Managed Services for Kubernetes
  4. Data Sources
  5. kubernetes_cluster

yandex_kubernetes_cluster (DataSource)

Written by
Yandex Cloud
Updated at September 23, 2026
View in Markdown
  • Example usage
  • Arguments & Attributes Reference

Get information about a Yandex Cloud Managed Kubernetes Cluster. For more information, see the official documentation.

Warning

One of cluster_id or name should be specified.

Example usageExample usage

//
// Get information about existing Managed Kubernetes Cluster (MK8S).
//
data "yandex_kubernetes_cluster" "my_cluster" {
  cluster_id = "some_k8s_cluster_id"
}

output "cluster_external_v4_endpoint" {
  value = data.yandex_kubernetes_cluster.my_cluster.master.0.external_v4_endpoint
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • cluster_id (String). ID of a specific Kubernetes cluster.
  • cluster_ipv4_range (Read-Only) (String). CIDR block. IP range for allocating pod addresses. It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be set up for this CIDR blocks in node subnets.
  • cluster_ipv6_range (Read-Only) (String). Identical to cluster_ipv4_range but for IPv6 protocol.
  • created_at (Read-Only) (String). The creation timestamp of the resource.
  • description (Read-Only) (String). The resource description.
  • folder_id (String). The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • health (Read-Only) (String). Health of the Kubernetes cluster.
  • id (String).
  • kms_provider (Read-Only) (List Of Object). Cluster KMS provider parameters.
    • key_id .
  • labels (Read-Only) (Map Of String). A set of key/value label pairs which assigned to resource.
  • log_group_id (Read-Only) (String). Log group where cluster stores cluster system logs, like audit, events, or control plane logs.
  • master (Read-Only) (List Of Object). Kubernetes master configuration options.
    • cluster_ca_certificate .
    • etcd_cluster_size .
    • external_v4_address .
    • external_v4_endpoint .
    • external_v6_address .
    • external_v6_endpoint .
    • internal_v4_address .
    • internal_v4_endpoint .
    • maintenance_policy .
      • auto_upgrade .
      • maintenance_window .
        • day .
        • duration .
        • start_time .
    • master_location .
      • subnet_id .
      • zone .
    • master_logging .
      • audit_enabled .
      • cluster_autoscaler_enabled .
      • enabled .
      • events_enabled .
      • folder_id .
      • kube_apiserver_enabled .
      • log_group_id .
    • public_ip .
    • regional .
      • region .
    • scale_policy .
      • auto_scale .
        • min_resource_preset_id .
    • security_group_ids .
    • version .
    • version_info .
      • current_version .
      • new_revision_available .
      • new_revision_summary .
      • version_deprecated .
    • zonal .
      • zone .
  • name (String). The resource name.
  • network_id (Read-Only) (String). The ID of the cluster network.
  • network_implementation (Read-Only) (List Of Object). Network Implementation options.
    • cilium .
      • routing_mode .
  • network_policy_provider (Read-Only) (String). Network policy provider for the cluster. Possible values: CALICO.
  • node_ipv4_cidr_mask_size (Read-Only) (Number). Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
  • node_service_account_id (Read-Only) (String). Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics.
  • release_channel (Read-Only) (String). Cluster release channel.
  • service_account_id (Read-Only) (String). Service account to be used for provisioning Compute Cloud and VPC resources for Kubernetes cluster. Selected service account should have edit role on the folder where the Kubernetes cluster will be located and on the folder where selected network resides.
  • service_ipv4_range (Read-Only) (String). CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. It should not overlap with any subnet in the network the Kubernetes cluster located in.
  • service_ipv6_range (Read-Only) (String). Identical to service_ipv4_range but for IPv6 protocol.
  • status (Read-Only) (String). Status of the Kubernetes cluster.
  • workload_identity_federation (Read-Only) (List Of Object). Workload Identity Federation configuration.
    • enabled .
    • issuer .
    • jwks_uri .

Was the article helpful?

Previous
ydb_topic
Next
kubernetes_node_group
© 2026 Direct Cursus Technology L.L.C.