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.
Yandex Managed Service for Kubernetes
  • Comparing with other Yandex Cloud services
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
    • API authentication
      • Overview
        • Overview
        • Get
        • List
        • Create
        • Update
        • Delete
        • Stop
        • Start
        • RescheduleMaintenance
        • ListNodeGroups
        • ListNodes
        • ListOperations
        • ListAccessBindings
        • SetAccessBindings
        • UpdateAccessBindings
  • Monitoring metrics
  • Audit Trails events
  • Release notes

In this article:

  • gRPC request
  • CreateClusterRequest
  • MasterSpec
  • ZonalMasterSpec
  • InternalAddressSpec
  • ExternalAddressSpec
  • RegionalMasterSpec
  • MasterLocation
  • LocationSpec
  • MasterMaintenancePolicy
  • MaintenanceWindow
  • AnytimeMaintenanceWindow
  • DailyMaintenanceWindow
  • WeeklyMaintenanceWindow
  • DaysOfWeekMaintenanceWindow
  • MasterScalePolicySpec
  • AutoScale
  • MasterLogging
  • IPAllocationPolicy
  • NetworkPolicy
  • KMSProvider
  • Cilium
  • WorkloadIdentityFederationSpec
  • operation.Operation
  1. API reference
  2. Managed Service for Kubernetes gRPC
  3. Cluster
  4. Create

Managed Services for Kubernetes API, gRPC: ClusterService.Create

Written by
Yandex Cloud
Improved by
Tania L.
Updated at July 21, 2026
View in Markdown
  • gRPC request
  • CreateClusterRequest
  • MasterSpec
  • ZonalMasterSpec
  • InternalAddressSpec
  • ExternalAddressSpec
  • RegionalMasterSpec
  • MasterLocation
  • LocationSpec
  • MasterMaintenancePolicy
  • MaintenanceWindow
  • AnytimeMaintenanceWindow
  • DailyMaintenanceWindow
  • WeeklyMaintenanceWindow
  • DaysOfWeekMaintenanceWindow
  • MasterScalePolicySpec
  • AutoScale
  • MasterLogging
  • IPAllocationPolicy
  • NetworkPolicy
  • KMSProvider
  • Cilium
  • WorkloadIdentityFederationSpec
  • operation.Operation

Creates a Kubernetes cluster in the specified folder.

gRPC requestgRPC request

rpc Create (CreateClusterRequest) returns (operation.Operation)

CreateClusterRequestCreateClusterRequest

{
  "folder_id": "string",
  "name": "string",
  "description": "string",
  "labels": "map<string, string>",
  "network_id": "string",
  "master_spec": {
    // Includes only one of the fields `zonal_master_spec`, `regional_master_spec`
    "zonal_master_spec": {
      "zone_id": "string",
      "internal_v4_address_spec": {
        "subnet_id": "string"
      },
      "external_v4_address_spec": {
        "address": "string"
      }
    },
    "regional_master_spec": {
      "region_id": "string",
      "locations": [
        {
          "zone_id": "string",
          "internal_v4_address_spec": {
            "subnet_id": "string"
          }
        }
      ],
      "external_v4_address_spec": {
        "address": "string"
      },
      "external_v6_address_spec": {
        "address": "string"
      }
    },
    // end of the list of possible fields
    "locations": [
      {
        "zone_id": "string",
        "subnet_id": "string"
      }
    ],
    "etcd_cluster_size": "int64",
    "external_v4_address_spec": {
      "address": "string"
    },
    "external_v6_address_spec": {
      "address": "string"
    },
    "version": "string",
    "maintenance_policy": {
      "auto_upgrade": "bool",
      "maintenance_window": {
        // Includes only one of the fields `anytime`, `daily_maintenance_window`, `weekly_maintenance_window`
        "anytime": "AnytimeMaintenanceWindow",
        "daily_maintenance_window": {
          "start_time": "google.type.TimeOfDay",
          "duration": "google.protobuf.Duration"
        },
        "weekly_maintenance_window": {
          "days_of_week": [
            {
              "days": [
                "DayOfWeek"
              ],
              "start_time": "google.type.TimeOfDay",
              "duration": "google.protobuf.Duration"
            }
          ]
        }
        // end of the list of possible fields
      }
    },
    "scale_policy": {
      // Includes only one of the fields `auto_scale`
      "auto_scale": {
        "min_resource_preset_id": "string"
      }
      // end of the list of possible fields
    },
    "security_group_ids": [
      "string"
    ],
    "master_logging": {
      "enabled": "bool",
      // Includes only one of the fields `log_group_id`, `folder_id`
      "log_group_id": "string",
      "folder_id": "string",
      // end of the list of possible fields
      "audit_enabled": "bool",
      "cluster_autoscaler_enabled": "bool",
      "kube_apiserver_enabled": "bool",
      "events_enabled": "bool"
    }
  },
  "ip_allocation_policy": {
    "cluster_ipv4_cidr_block": "string",
    "node_ipv4_cidr_mask_size": "int64",
    "service_ipv4_cidr_block": "string",
    "cluster_ipv6_cidr_block": "string",
    "service_ipv6_cidr_block": "string"
  },
  // Includes only one of the fields `gateway_ipv4_address`
  "gateway_ipv4_address": "string",
  // end of the list of possible fields
  "service_account_id": "string",
  "node_service_account_id": "string",
  "release_channel": "ReleaseChannel",
  "network_policy": {
    "provider": "Provider"
  },
  "kms_provider": {
    "key_id": "string"
  },
  // Includes only one of the fields `cilium`
  "cilium": {
    "routing_mode": "RoutingMode"
  },
  // end of the list of possible fields
  "workload_identity_federation": {
    "enabled": "bool"
  }
}

Field

Description

folder_id

string

Required field. ID of the folder to create a Kubernetes cluster in.
To get the folder ID use a yandex.cloud.resourcemanager.v1.FolderService.List request.

name

string

Name of the Kubernetes cluster.
The name must be unique within the folder.

Value must match the regular expression |[a-z]([-a-z0-9]{0,61}[a-z0-9])?.

description

string

Description of the Kubernetes cluster.

The maximum string length in characters is 256.

labels

object (map<string, string>)

Resource labels as key:value pairs.

The maximum string length in characters for each value is 63. The string length in characters for each key must be 1-63. Each key must match the regular expression [a-z][-_0-9a-z]*. Each value must match the regular expression [-_0-9a-z]*. No more than 64 per resource.

network_id

string

ID of the network.
This field is required.

master_spec

MasterSpec

Required field. Master specification of the Kubernetes cluster.

ip_allocation_policy

IPAllocationPolicy

IP allocation policy of the Kubernetes cluster.

gateway_ipv4_address

string

Gateway IPv4 address.

The maximum string length in characters is 15.

Includes only one of the fields gateway_ipv4_address.

service_account_id

string

Required field. 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.

node_service_account_id

string

Required field. 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

enum ReleaseChannel

Release channel for the master.

  • RAPID: Minor updates with new functions and improvements are often added.
    You can't disable automatic updates in this channel, but you can specify a time period for automatic updates.
  • REGULAR: New functions and improvements are added in chunks shortly after they appear on RAPID.
  • STABLE: Only updates related to bug fixes or security improvements are added.

network_policy

NetworkPolicy

kms_provider

KMSProvider

KMS provider configuration.

cilium

Cilium

Includes only one of the fields cilium.

workload_identity_federation

WorkloadIdentityFederationSpec

MasterSpecMasterSpec

Field

Description

zonal_master_spec

ZonalMasterSpec

Specification of the zonal master.

Includes only one of the fields zonal_master_spec, regional_master_spec.

regional_master_spec

RegionalMasterSpec

Specification of the regional master.

Includes only one of the fields zonal_master_spec, regional_master_spec.

locations[]

LocationSpec

Locations specification for Kubernetes control-plane (master) instances.
Works in conjunction with etcd_cluster_size. See it's documentation for details.
Possible combinations:

  • 1 location and etcd_cluster_size = 1 - a single node cluster whose availability is limited by the availability of a single Compute Instance; downtime is expected during cluster updates.
  • 1 location and etcd_cluster_size = 3 - a highly available cluster within a single availability zone; can survive the failure of a Compute Instance, a server, or an individual server rack.
  • 3 location and etcd_cluster_size = 3 - a highly available cluster with each etcd instance located within separate availability zone; can survive the failure of a single availability zone.

etcd_cluster_size

int64

Number of etcd nodes in cluster.
Works in conjunction with locations. See it's documentation for details.
Optional. If not set, will be assumed equal to the number of locations.

external_v4_address_spec

ExternalAddressSpec

Specification of parameters for external IPv4 networking.

external_v6_address_spec

ExternalAddressSpec

Specification of parameters for external IPv6 networking.

version

string

Version of Kubernetes components that runs on the master.

maintenance_policy

MasterMaintenancePolicy

Maintenance policy of the master.

scale_policy

MasterScalePolicySpec

Scale policy of the master.

security_group_ids[]

string

Master security groups.

master_logging

MasterLogging

Cloud Logging for master components.

ZonalMasterSpecZonalMasterSpec

Field

Description

zone_id

string

Required field. ID of the availability zone.

internal_v4_address_spec

InternalAddressSpec

Specification of parameters for internal IPv4 networking.

external_v4_address_spec

ExternalAddressSpec

Specification of parameters for external IPv4 networking.

InternalAddressSpecInternalAddressSpec

Field

Description

subnet_id

string

ID of the subnet. If no ID is specified, and there only one subnet in specified zone, an address in this subnet will be allocated.

ExternalAddressSpecExternalAddressSpec

Field

Description

address

string

IP address.

RegionalMasterSpecRegionalMasterSpec

Field

Description

region_id

string

Required field. ID of the availability zone where the master resides.

locations[]

MasterLocation

List of locations where the master will be allocated.

external_v4_address_spec

ExternalAddressSpec

Specify to allocate a static public IP for the master.

external_v6_address_spec

ExternalAddressSpec

Specification of parameters for external IPv6 networking.

MasterLocationMasterLocation

Field

Description

zone_id

string

Required field. ID of the availability zone.

internal_v4_address_spec

InternalAddressSpec

If not specified and there is a single subnet in specified zone, address
in this subnet will be allocated.

LocationSpecLocationSpec

Field

Description

zone_id

string

Required field. ID of the availability zone where the master resides.

subnet_id

string

ID of the VPC network's subnet where the master resides.
If not specified and there is a single subnet in specified zone, address in this subnet will be allocated.

MasterMaintenancePolicyMasterMaintenancePolicy

Field

Description

auto_upgrade

bool

If set to true, automatic updates are installed in the specified period of time with no interaction from the user.
If set to false, automatic upgrades are disabled.

maintenance_window

MaintenanceWindow

Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
The time is set in UTC.

MaintenanceWindowMaintenanceWindow

Field

Description

anytime

AnytimeMaintenanceWindow

Updating the master at any time.

Includes only one of the fields anytime, daily_maintenance_window, weekly_maintenance_window.

Maintenance policy.

daily_maintenance_window

DailyMaintenanceWindow

Updating the master on any day during the specified time window.

Includes only one of the fields anytime, daily_maintenance_window, weekly_maintenance_window.

Maintenance policy.

weekly_maintenance_window

WeeklyMaintenanceWindow

Updating the master on selected days during the specified time window.

Includes only one of the fields anytime, daily_maintenance_window, weekly_maintenance_window.

Maintenance policy.

AnytimeMaintenanceWindowAnytimeMaintenanceWindow

Field

Description

Empty

DailyMaintenanceWindowDailyMaintenanceWindow

Field

Description

start_time

google.type.TimeOfDay

Required field. Window start time, in the UTC timezone.

duration

google.protobuf.Duration

Window duration.

WeeklyMaintenanceWindowWeeklyMaintenanceWindow

Field

Description

days_of_week[]

DaysOfWeekMaintenanceWindow

Days of the week and the maintenance window for these days when automatic updates are allowed.

The number of elements must be in the range 1-7.

DaysOfWeekMaintenanceWindowDaysOfWeekMaintenanceWindow

Field

Description

days[]

enum DayOfWeek

Days of the week when automatic updates are allowed.

The number of elements must be in the range 1-7.

  • MONDAY: The day-of-week of Monday.
  • TUESDAY: The day-of-week of Tuesday.
  • WEDNESDAY: The day-of-week of Wednesday.
  • THURSDAY: The day-of-week of Thursday.
  • FRIDAY: The day-of-week of Friday.
  • SATURDAY: The day-of-week of Saturday.
  • SUNDAY: The day-of-week of Sunday.

start_time

google.type.TimeOfDay

Required field. Window start time, in the UTC timezone.

duration

google.protobuf.Duration

Window duration.

MasterScalePolicySpecMasterScalePolicySpec

Field

Description

auto_scale

AutoScale

Includes only one of the fields auto_scale.

AutoScaleAutoScale

Scalable master instance resources.

Field

Description

min_resource_preset_id

string

Required field. Preset of computing resources to be used as lower boundary for scaling.

MasterLoggingMasterLogging

Field

Description

enabled

bool

Identifies whether Cloud Logging is enabled for master components.

log_group_id

string

ID of the log group where logs of master components should be stored.

Value must match the regular expression ([a-zA-Z][-a-zA-Z0-9_.]{0,63})?.

Includes only one of the fields log_group_id, folder_id.

The destination of master components' logs.

folder_id

string

ID of the folder where logs should be stored (in default group).

Value must match the regular expression ([a-zA-Z][-a-zA-Z0-9_.]{0,63})?.

Includes only one of the fields log_group_id, folder_id.

The destination of master components' logs.

audit_enabled

bool

Identifies whether Cloud Logging is enabled for audit logs.

cluster_autoscaler_enabled

bool

Identifies whether Cloud Logging is enabled for cluster-autoscaler.

kube_apiserver_enabled

bool

Identifies whether Cloud Logging is enabled for kube-apiserver.

events_enabled

bool

Identifies whether Cloud Logging is enabled for events.

IPAllocationPolicyIPAllocationPolicy

Field

Description

cluster_ipv4_cidr_block

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.

node_ipv4_cidr_mask_size

int64

Size of the masks that are assigned for each node in the cluster.
If not specified, 24 is used.

service_ipv4_cidr_block

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.

cluster_ipv6_cidr_block

string

IPv6 range for allocating pod IP addresses.

service_ipv6_cidr_block

string

IPv6 range for allocating Kubernetes service IP addresses

NetworkPolicyNetworkPolicy

Field

Description

provider

enum Provider

  • CALICO

KMSProviderKMSProvider

Field

Description

key_id

string

KMS key ID for secrets encryption.
To obtain a KMS key ID use a yandex.cloud.kms.v1.SymmetricKeyService.List request.

CiliumCilium

Field

Description

routing_mode

enum RoutingMode

  • TUNNEL

WorkloadIdentityFederationSpecWorkloadIdentityFederationSpec

Field

Description

enabled

bool

Identifies whether Workload Identity Federation is enabled.

operation.Operationoperation.Operation

{
  "id": "string",
  "description": "string",
  "created_at": "google.protobuf.Timestamp",
  "created_by": "string",
  "modified_at": "google.protobuf.Timestamp",
  "done": "bool",
  "metadata": "google.protobuf.Any",
  // Includes only one of the fields `error`, `response`
  "error": "google.rpc.Status",
  "response": "google.protobuf.Any"
  // end of the list of possible fields
}

An Operation resource. For more information, see Operation.

Field

Description

id

string

ID of the operation.

description

string

Description of the operation. 0-256 characters long.

created_at

google.protobuf.Timestamp

Creation timestamp.

created_by

string

ID of the user or service account who initiated the operation.

modified_at

google.protobuf.Timestamp

The time when the Operation resource was last modified.

done

bool

If the value is false, it means the operation is still in progress.
If true, the operation is completed, and either error or response is available.

metadata

google.protobuf.Any

Service-specific metadata associated with the operation.
It typically contains the ID of the target resource that the operation is performed on.
Any method that returns a long-running operation should document the metadata type, if any.

error

google.rpc.Status

The error result of the operation in case of failure or cancellation.

Includes only one of the fields error, response.

The operation result.
If done == false and there was no failure detected, neither error nor response is set.
If done == false and there was a failure detected, error is set.
If done == true, exactly one of error or response is set.

response

google.protobuf.Any

The normal response of the operation in case of success.
If the original method returns no data on success, such as Delete,
the response is google.protobuf.Empty.
If the original method is the standard Create/Update,
the response should be the target resource of the operation.
Any method that returns a long-running operation should document the response type, if any.

Includes only one of the fields error, response.

The operation result.
If done == false and there was no failure detected, neither error nor response is set.
If done == false and there was a failure detected, error is set.
If done == true, exactly one of error or response is set.

Was the article helpful?

Previous
List
Next
Update
© 2026 Direct Cursus Technology L.L.C.