Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UpdateClusterVersionCommand

Updates an Amazon EKS cluster to the specified Kubernetes version. Your cluster continues to function during the update. The response output includes an update ID that you can use to track the status of your cluster update with the DescribeUpdate API operation.

Cluster updates are asynchronous, and they should finish within a few minutes. During an update, the cluster status moves to UPDATING (this status transition is eventually consistent). When the update is complete (either Failed or Successful), the cluster status moves to Active.

If your cluster has managed node groups attached to it, all of your node groups’ Kubernetes versions must match the cluster’s Kubernetes version in order to update the cluster to a new Kubernetes version.

example

Use a bare-bones client and the command you need to make an API call.

import { EKSClient, UpdateClusterVersionCommand } from "@aws-sdk/client-eks"; // ES Modules import
// const { EKSClient, UpdateClusterVersionCommand } = require("@aws-sdk/client-eks"); // CommonJS import
const client = new EKSClient(config);
const command = new UpdateClusterVersionCommand(input);
const response = await client.send(command);
see

UpdateClusterVersionCommandInput for command's input shape.

see

UpdateClusterVersionCommandOutput for command's response shape.

see

config for EKSClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: UpdateClusterVersionCommandInput

Readonly middlewareStack