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
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • 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:

  • HTTP request
  • Body parameters
  • MasterSpec
  • ZonalMasterSpec
  • InternalAddressSpec
  • ExternalAddressSpec
  • RegionalMasterSpec
  • MasterLocation
  • LocationSpec
  • MasterMaintenancePolicy
  • MaintenanceWindow
  • DailyMaintenanceWindow
  • TimeOfDay
  • WeeklyMaintenanceWindow
  • DaysOfWeekMaintenanceWindow
  • MasterScalePolicySpec
  • AutoScale
  • MasterLogging
  • IPAllocationPolicy
  • NetworkPolicy
  • KMSProvider
  • Cilium
  • WorkloadIdentityFederationSpec
  • Response
  • Status
  1. API reference
  2. Managed Service for Kubernetes REST
  3. Cluster
  4. Create

Managed Services for Kubernetes API, REST: Cluster.Create

Written by
Yandex Cloud
Improved by
Tania L.
Updated at November 6, 2026
View in Markdown
  • HTTP request
  • Body parameters
  • MasterSpec
  • ZonalMasterSpec
  • InternalAddressSpec
  • ExternalAddressSpec
  • RegionalMasterSpec
  • MasterLocation
  • LocationSpec
  • MasterMaintenancePolicy
  • MaintenanceWindow
  • DailyMaintenanceWindow
  • TimeOfDay
  • WeeklyMaintenanceWindow
  • DaysOfWeekMaintenanceWindow
  • MasterScalePolicySpec
  • AutoScale
  • MasterLogging
  • IPAllocationPolicy
  • NetworkPolicy
  • KMSProvider
  • Cilium
  • WorkloadIdentityFederationSpec
  • Response
  • Status

Creates a Kubernetes cluster in the specified folder.

HTTP requestHTTP request

POST https://mks.api.cloud.yandex.net/managed-kubernetes/v1/clusters

Body parametersBody parameters

{
  "folderId": "string",
  "name": "string",
  "description": "string",
  "labels": "object",
  "networkId": "string",
  "masterSpec": {
    // Includes only one of the fields `zonalMasterSpec`, `regionalMasterSpec`
    "zonalMasterSpec": {
      "zoneId": "string",
      "internalV4AddressSpec": {
        "subnetId": "string"
      },
      "externalV4AddressSpec": {
        "address": "string"
      }
    },
    "regionalMasterSpec": {
      "regionId": "string",
      "locations": [
        {
          "zoneId": "string",
          "internalV4AddressSpec": {
            "subnetId": "string"
          }
        }
      ],
      "externalV4AddressSpec": {
        "address": "string"
      },
      "externalV6AddressSpec": {
        "address": "string"
      }
    },
    // end of the list of possible fields
    "locations": [
      {
        "zoneId": "string",
        "subnetId": "string"
      }
    ],
    "etcdClusterSize": "string",
    "externalV4AddressSpec": {
      "address": "string"
    },
    "externalV6AddressSpec": {
      "address": "string"
    },
    "version": "string",
    "maintenancePolicy": {
      "autoUpgrade": "boolean",
      "maintenanceWindow": {
        // Includes only one of the fields `anytime`, `dailyMaintenanceWindow`, `weeklyMaintenanceWindow`
        "anytime": "object",
        "dailyMaintenanceWindow": {
          "startTime": {
            "hours": "integer",
            "minutes": "integer",
            "seconds": "integer",
            "nanos": "integer"
          },
          "duration": "string"
        },
        "weeklyMaintenanceWindow": {
          "daysOfWeek": [
            {
              "days": [
                "string"
              ],
              "startTime": {
                "hours": "integer",
                "minutes": "integer",
                "seconds": "integer",
                "nanos": "integer"
              },
              "duration": "string"
            }
          ]
        }
        // end of the list of possible fields
      }
    },
    "scalePolicy": {
      // Includes only one of the fields `autoScale`
      "autoScale": {
        "minResourcePresetId": "string"
      }
      // end of the list of possible fields
    },
    "securityGroupIds": [
      "string"
    ],
    "masterLogging": {
      "enabled": "boolean",
      // Includes only one of the fields `logGroupId`, `folderId`
      "logGroupId": "string",
      "folderId": "string",
      // end of the list of possible fields
      "auditEnabled": "boolean",
      "clusterAutoscalerEnabled": "boolean",
      "kubeApiserverEnabled": "boolean",
      "eventsEnabled": "boolean"
    }
  },
  "ipAllocationPolicy": {
    "clusterIpv4CidrBlock": "string",
    "nodeIpv4CidrMaskSize": "string",
    "serviceIpv4CidrBlock": "string",
    "clusterIpv6CidrBlock": "string",
    "serviceIpv6CidrBlock": "string",
    "clusterIpv4CidrBlocks": [
      "string"
    ],
    "clusterIpv6CidrBlocks": [
      "string"
    ]
  },
  // Includes only one of the fields `gatewayIpv4Address`
  "gatewayIpv4Address": "string",
  // end of the list of possible fields
  "serviceAccountId": "string",
  "nodeServiceAccountId": "string",
  "releaseChannel": "string",
  "networkPolicy": {
    "provider": "string"
  },
  "kmsProvider": {
    "keyId": "string"
  },
  // Includes only one of the fields `cilium`
  "cilium": {
    "routingMode": "string"
  },
  // end of the list of possible fields
  "workloadIdentityFederation": {
    "enabled": "boolean"
  }
}

Field

Description

folderId

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.

networkId

string

ID of the network.
This field is required.

masterSpec

MasterSpec

Required field. Master specification of the Kubernetes cluster.

ipAllocationPolicy

IPAllocationPolicy

IP allocation policy of the Kubernetes cluster.

gatewayIpv4Address

string

Gateway IPv4 address.

The maximum string length in characters is 15.

Includes only one of the fields gatewayIpv4Address.

serviceAccountId

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.

nodeServiceAccountId

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.

releaseChannel

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.

networkPolicy

NetworkPolicy

kmsProvider

KMSProvider

KMS provider configuration.

cilium

Cilium

Includes only one of the fields cilium.

workloadIdentityFederation

WorkloadIdentityFederationSpec

MasterSpecMasterSpec

Field

Description

zonalMasterSpec

ZonalMasterSpec

Specification of the zonal master.

Includes only one of the fields zonalMasterSpec, regionalMasterSpec.

regionalMasterSpec

RegionalMasterSpec

Specification of the regional master.

Includes only one of the fields zonalMasterSpec, regionalMasterSpec.

locations[]

LocationSpec

Locations specification for Kubernetes control-plane (master) instances.
Works in conjunction with etcdClusterSize. 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.

etcdClusterSize

string (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.

externalV4AddressSpec

ExternalAddressSpec

Specification of parameters for external IPv4 networking.

externalV6AddressSpec

ExternalAddressSpec

Specification of parameters for external IPv6 networking.

version

string

Version of Kubernetes components that runs on the master.

maintenancePolicy

MasterMaintenancePolicy

Maintenance policy of the master.

scalePolicy

MasterScalePolicySpec

Scale policy of the master.

securityGroupIds[]

string

Master security groups.

masterLogging

MasterLogging

Export configuration of master logs.

ZonalMasterSpecZonalMasterSpec

Field

Description

zoneId

string

Required field. ID of the availability zone.

internalV4AddressSpec

InternalAddressSpec

Specification of parameters for internal IPv4 networking.

externalV4AddressSpec

ExternalAddressSpec

Specification of parameters for external IPv4 networking.

InternalAddressSpecInternalAddressSpec

Field

Description

subnetId

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

regionId

string

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

locations[]

MasterLocation

List of locations where the master will be allocated.

externalV4AddressSpec

ExternalAddressSpec

Specify to allocate a static public IP for the master.

externalV6AddressSpec

ExternalAddressSpec

Specification of parameters for external IPv6 networking.

MasterLocationMasterLocation

Field

Description

zoneId

string

Required field. ID of the availability zone.

internalV4AddressSpec

InternalAddressSpec

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

LocationSpecLocationSpec

Field

Description

zoneId

string

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

subnetId

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

autoUpgrade

boolean

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.

maintenanceWindow

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

object

Updating the master at any time.

Includes only one of the fields anytime, dailyMaintenanceWindow, weeklyMaintenanceWindow.

Maintenance policy.

dailyMaintenanceWindow

DailyMaintenanceWindow

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

Includes only one of the fields anytime, dailyMaintenanceWindow, weeklyMaintenanceWindow.

Maintenance policy.

weeklyMaintenanceWindow

WeeklyMaintenanceWindow

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

Includes only one of the fields anytime, dailyMaintenanceWindow, weeklyMaintenanceWindow.

Maintenance policy.

DailyMaintenanceWindowDailyMaintenanceWindow

Field

Description

startTime

TimeOfDay

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

duration

string (duration)

Window duration.

TimeOfDayTimeOfDay

Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are google.type.Date and google.protobuf.Timestamp.

Field

Description

hours

integer (int32)

Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
to allow the value "24:00:00" for scenarios like business closing time.

minutes

integer (int32)

Minutes of hour of day. Must be from 0 to 59.

seconds

integer (int32)

Seconds of minutes of the time. Must normally be from 0 to 59. An API may
allow the value 60 if it allows leap-seconds.

nanos

integer (int32)

Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.

WeeklyMaintenanceWindowWeeklyMaintenanceWindow

Field

Description

daysOfWeek[]

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.

startTime

TimeOfDay

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

duration

string (duration)

Window duration.

MasterScalePolicySpecMasterScalePolicySpec

Field

Description

autoScale

AutoScale

Includes only one of the fields autoScale.

AutoScaleAutoScale

Scalable master instance resources.

Field

Description

minResourcePresetId

string

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

MasterLoggingMasterLogging

Field

Description

enabled

boolean

Specifies whether master logs should be exported.

logGroupId

string

ID of the log group where logs of master components should be stored.
Deprecated: Cloud Logging is no longer supported; this field has no effect.

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

Includes only one of the fields logGroupId, folderId.

The destination of master components' logs.

folderId

string

ID of the folder where logs should be stored.

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

Includes only one of the fields logGroupId, folderId.

The destination of master components' logs.

auditEnabled

boolean

Specifies whether audit logs should be exported
when master log delivery is enabled.

clusterAutoscalerEnabled

boolean

Specifies whether cluster-autoscaler logs should be exported
when master log delivery is enabled.

kubeApiserverEnabled

boolean

Specifies whether kube-apiserver logs should be exported
when master log delivery is enabled.

eventsEnabled

boolean

Specifies whether Kubernetes events should be exported
when master log delivery is enabled.

IPAllocationPolicyIPAllocationPolicy

Field

Description

clusterIpv4CidrBlock

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.
Deprecated: use cluster_ipv4_cidr_blocks instead.

nodeIpv4CidrMaskSize

string (int64)

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

serviceIpv4CidrBlock

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.

clusterIpv6CidrBlock

string

IPv6 range for allocating pod IP addresses.
Deprecated: use cluster_ipv6_cidr_blocks instead.

serviceIpv6CidrBlock

string

IPv6 range for allocating Kubernetes service IP addresses

clusterIpv4CidrBlocks[]

string

IP ranges for allocating pod addresses (multiple CIDRs for dual-stack or extended address space).
If set, takes precedence over cluster_ipv4_cidr_block.

clusterIpv6CidrBlocks[]

string

IPv6 ranges for allocating pod addresses (multiple CIDRs).
If set, takes precedence over cluster_ipv6_cidr_block.

NetworkPolicyNetworkPolicy

Field

Description

provider

enum (Provider)

  • CALICO

KMSProviderKMSProvider

Field

Description

keyId

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

routingMode

enum (RoutingMode)

  • TUNNEL

WorkloadIdentityFederationSpecWorkloadIdentityFederationSpec

Field

Description

enabled

boolean

Identifies whether Workload Identity Federation is enabled.

ResponseResponse

HTTP Code: 200 - OK

{
  "id": "string",
  "description": "string",
  "createdAt": "string",
  "createdBy": "string",
  "modifiedAt": "string",
  "done": "boolean",
  "metadata": "object",
  // Includes only one of the fields `error`, `response`
  "error": {
    "code": "integer",
    "message": "string",
    "details": [
      "object"
    ]
  },
  "response": "object"
  // 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.

createdAt

string (date-time)

Creation timestamp.

String in RFC3339 text format. The range of possible values is from
0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z, i.e. from 0 to 9 digits for fractions of a second.

To work with values in this field, use the APIs described in the
Protocol Buffers reference.
In some languages, built-in datetime utilities do not support nanosecond precision (9 digits).

createdBy

string

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

modifiedAt

string (date-time)

The time when the Operation resource was last modified.

String in RFC3339 text format. The range of possible values is from
0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z, i.e. from 0 to 9 digits for fractions of a second.

To work with values in this field, use the APIs described in the
Protocol Buffers reference.
In some languages, built-in datetime utilities do not support nanosecond precision (9 digits).

done

boolean

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

object

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

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

object

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.

StatusStatus

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

Field

Description

code

integer (int32)

Error code. An enum value of google.rpc.Code.

message

string

An error message.

details[]

object

A list of messages that carry the error details.

Was the article helpful?

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