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
    • 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
  • Path parameters
  • Body parameters
  • MasterUpdateSpec
  • UpdateVersionSpec
  • MasterMaintenancePolicy
  • MaintenanceWindow
  • DailyMaintenanceWindow
  • TimeOfDay
  • WeeklyMaintenanceWindow
  • DaysOfWeekMaintenanceWindow
  • MasterLogging
  • LocationSpec
  • ExternalAddressSpec
  • MasterScalePolicySpec
  • AutoScale
  • NetworkPolicy
  • IPAllocationPolicy
  • WorkloadIdentityFederationSpec
  • Response
  • Status
  1. API reference
  2. Managed Service for Kubernetes REST
  3. Cluster
  4. Update

Managed Services for Kubernetes API, REST: Cluster.Update

Written by
Yandex Cloud
Improved by
Tania L.
Updated at November 6, 2026
View in Markdown
  • HTTP request
  • Path parameters
  • Body parameters
  • MasterUpdateSpec
  • UpdateVersionSpec
  • MasterMaintenancePolicy
  • MaintenanceWindow
  • DailyMaintenanceWindow
  • TimeOfDay
  • WeeklyMaintenanceWindow
  • DaysOfWeekMaintenanceWindow
  • MasterLogging
  • LocationSpec
  • ExternalAddressSpec
  • MasterScalePolicySpec
  • AutoScale
  • NetworkPolicy
  • IPAllocationPolicy
  • WorkloadIdentityFederationSpec
  • Response
  • Status

Updates the specified Kubernetes cluster.

HTTP requestHTTP request

PATCH https://mks.api.cloud.yandex.net/managed-kubernetes/v1/clusters/{clusterId}

Path parametersPath parameters

Field

Description

clusterId

string

Required field. ID of the Kubernetes cluster to update.
To get the Kubernetes cluster ID use a ClusterService.List request.

Body parametersBody parameters

{
  "updateMask": "string",
  "name": "string",
  "description": "string",
  "labels": "object",
  "masterSpec": {
    "version": {
      // Includes only one of the fields `version`, `latestRevision`
      "version": "string",
      "latestRevision": "boolean"
      // end of the list of possible fields
    },
    "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
      }
    },
    "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"
    },
    "locations": [
      {
        "zoneId": "string",
        "subnetId": "string"
      }
    ],
    "externalV6AddressSpec": {
      "address": "string"
    },
    "scalePolicy": {
      // Includes only one of the fields `autoScale`
      "autoScale": {
        "minResourcePresetId": "string"
      }
      // end of the list of possible fields
    }
  },
  // Includes only one of the fields `gatewayIpv4Address`
  "gatewayIpv4Address": "string",
  // end of the list of possible fields
  "serviceAccountId": "string",
  "nodeServiceAccountId": "string",
  "networkPolicy": {
    "provider": "string"
  },
  "ipAllocationPolicy": {
    "clusterIpv4CidrBlock": "string",
    "nodeIpv4CidrMaskSize": "string",
    "serviceIpv4CidrBlock": "string",
    "clusterIpv6CidrBlock": "string",
    "serviceIpv6CidrBlock": "string",
    "clusterIpv4CidrBlocks": [
      "string"
    ],
    "clusterIpv6CidrBlocks": [
      "string"
    ]
  },
  "workloadIdentityFederation": {
    "enabled": "boolean"
  }
}

Field

Description

updateMask

string (field-mask)

A comma-separated names off ALL fields to be updated.
Only the specified fields will be changed. The others will be left untouched.
If the field is specified in updateMask and no value for that field was sent in the request,
the field's value will be reset to the default. The default value for most fields is null or 0.

If updateMask is not sent in the request, all fields' values will be updated.
Fields specified in the request will be updated to provided values.
The rest of the fields will be reset to the default.

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.
Existing set of labels is completely replaced by the provided set.

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.

masterSpec

MasterUpdateSpec

Specification of the master update.

gatewayIpv4Address

string

Gateway IPv4 address.

The maximum string length in characters is 15.

Includes only one of the fields gatewayIpv4Address.

serviceAccountId

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.

nodeServiceAccountId

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.

networkPolicy

NetworkPolicy

ipAllocationPolicy

IPAllocationPolicy

workloadIdentityFederation

WorkloadIdentityFederationSpec

MasterUpdateSpecMasterUpdateSpec

Field

Description

version

UpdateVersionSpec

Specification of the master update.

maintenancePolicy

MasterMaintenancePolicy

Maintenance policy of the master.

securityGroupIds[]

string

Master security groups.

masterLogging

MasterLogging

Export configuration of master logs.

locations[]

LocationSpec

Update master instance locations.

externalV6AddressSpec

ExternalAddressSpec

Specification of parameters for external IPv6 networking.

scalePolicy

MasterScalePolicySpec

Scale policy of the master.

UpdateVersionSpecUpdateVersionSpec

Field

Description

version

string

Request update to a newer version of Kubernetes (1.x -> 1.y).

Includes only one of the fields version, latestRevision.

latestRevision

boolean

Request update to the latest revision for the current version.

Includes only one of the fields version, latestRevision.

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.

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.

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.

ExternalAddressSpecExternalAddressSpec

Field

Description

address

string

IP address.

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.

NetworkPolicyNetworkPolicy

Field

Description

provider

enum (Provider)

  • CALICO

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.

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
Create
Next
Delete
© 2026 Direct Cursus Technology L.L.C.