Condividi tramite


UpgradeChannel Class

public final class UpgradeChannel
extends ExpandableStringEnum<UpgradeChannel>

The upgrade channel for auto upgrade. The default is 'none'. For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster\#set-auto-upgrade-channel).

Field Summary

Modifier and Type Field and Description
static final UpgradeChannel NODE_IMAGE

Automatically upgrade the node image to the latest version available.

static final UpgradeChannel NONE

Disables auto-upgrades and keeps the cluster at its current version of Kubernetes.

static final UpgradeChannel PATCH

Automatically upgrade the cluster to the latest supported patch version when it becomes available while keeping the minor version the same.

static final UpgradeChannel RAPID

Automatically upgrade the cluster to the latest supported patch release on the latest supported minor version.

static final UpgradeChannel STABLE

Automatically upgrade the cluster to the latest supported patch release on minor version N-1, where N is the latest supported minor version.

Constructor Summary

Constructor Description
UpgradeChannel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of UpgradeChannel value.

Method Summary

Modifier and Type Method and Description
static UpgradeChannel fromString(String name)

Creates or finds a UpgradeChannel from its string representation.

static Collection<UpgradeChannel> values()

Gets known UpgradeChannel values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

NODE_IMAGE

public static final UpgradeChannel NODE_IMAGE

Automatically upgrade the node image to the latest version available. Consider using nodeOSUpgradeChannel instead as that allows you to configure node OS patching separate from Kubernetes version patching.

NONE

public static final UpgradeChannel NONE

Disables auto-upgrades and keeps the cluster at its current version of Kubernetes.

PATCH

public static final UpgradeChannel PATCH

Automatically upgrade the cluster to the latest supported patch version when it becomes available while keeping the minor version the same. For example, if a cluster is running version 1.17.7 and versions 1.17.9, 1.18.4, 1.18.6, and 1.19.1 are available, your cluster is upgraded to 1.17.9.

RAPID

public static final UpgradeChannel RAPID

Automatically upgrade the cluster to the latest supported patch release on the latest supported minor version. In cases where the cluster is at a version of Kubernetes that is at an N-2 minor version where N is the latest supported minor version, the cluster first upgrades to the latest supported patch version on N-1 minor version. For example, if a cluster is running version 1.17.7 and versions 1.17.9, 1.18.4, 1.18.6, and 1.19.1 are available, your cluster first is upgraded to 1.18.6, then is upgraded to 1.19.1.

STABLE

public static final UpgradeChannel STABLE

Automatically upgrade the cluster to the latest supported patch release on minor version N-1, where N is the latest supported minor version. For example, if a cluster is running version 1.17.7 and versions 1.17.9, 1.18.4, 1.18.6, and 1.19.1 are available, your cluster is upgraded to 1.18.6.

Constructor Details

UpgradeChannel

@Deprecated
public UpgradeChannel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of UpgradeChannel value.

Method Details

fromString

public static UpgradeChannel fromString(String name)

Creates or finds a UpgradeChannel from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding UpgradeChannel.

values

public static Collection<UpgradeChannel> values()

Gets known UpgradeChannel values.

Returns:

known UpgradeChannel values.

Applies to