Azure Kubernetes Service (AKS) 中支援的 Kubernetes 版本Supported Kubernetes versions in Azure Kubernetes Service (AKS)

Kubernetes 社群大約每隔三個月就會發行次要版本。The Kubernetes community releases minor versions roughly every three months. 這些版本均包含新功能和增強功能。These releases include new features and improvements. 修補程式版本會更頻繁地發行 (有時每週),而且僅適用於次要版本中的重要 Bug 修正。Patch releases are more frequent (sometimes weekly) and are only intended for critical bug fixes in a minor version. 這些修補程式版本包括對於安全性弱點或主要 Bug 的修正,這些安全性弱點或主要 Bug 會影響到根據 Kubernetes 在生產環境中執行的大量客戶和產品。These patch releases include fixes for security vulnerabilities or major bugs impacting a large number of customers and products running in production based on Kubernetes.

AKS 的目標是要認證和可能的版次的穩定性的上游發行的 30 天內發行新的 Kubernetes 版本。AKS aims to certify and release new Kubernetes versions within 30 days of an upstream release, subject to the stability of the release.

Kubernetes 版本Kubernetes versions

Kubernetes 使用標準語意版本設定版本設定配置。Kubernetes uses the standard Semantic Versioning versioning scheme. 這表示,每個版本的 Kubernetes 會遵循這個編號配置:This means that each version of Kubernetes follows this numbering scheme:

[major].[minor].[patch]

Example:
  1.12.14
  1.12.15
  1.13.7

在版本中的每個數字會指出與先前版本的一般相容性:Each number in the version indicates general compatibility with the previous version:

  • 主要版本變更時不相容的 API 變更,或向後相容性可能會中斷。Major versions change when incompatible API changes or backwards compatibility may be broken.
  • 進行回溯相容至其他的次要版本的功能變更時,就會變更次要版本。Minor versions change when functionality changes are made that are backwards compatible to the other minor releases.
  • 修補程式的版本進行變更時與舊版相容的 bug 修正。Patch versions change when backwards-compatible bug fixes are made.

一般情況下,使用者應該儘可能執行它們執行,例如,如果您的生產環境叢集上的次要版本的最新修補程式版本1.13.61.13.7是最新可用的修補程式適用於版本1.13系列中,您應該升級至1.13.7 ,您就可以確保您的叢集是完全經過修補與支援。In general, users should endeavor to run the latest patch release of the minor version they are running, for example if your production cluster is on 1.13.6 and 1.13.7 is the latest available patch version available for the 1.13 series, you should upgrade to 1.13.7 as soon as you are able to ensure your cluster is fully patched and supported.

Kubernetes 版本支援原則Kubernetes version support policy

AKS 支援 Kubernetes 的四個次要版本:AKS supports four minor versions of Kubernetes:

  • 目前的次要版本已發行在 AKS (N)The current minor version that is released in AKS (N)
  • 三個先前的次要版本。Three previous minor versions. 每個支援的次要版本也支援兩個穩定的修補程式。Each supported minor version also supports two stable patches.

這稱為 「 N-3"-(N (最新版本)-3 (次要版本))。This is known as "N-3" - (N (Latest release) - 3 (minor versions)).

例如,如果導入了 AKS 1.13.x今日,為提供的支援下列版本:For example, if AKS introduces 1.13.x today, support is provided for the following versions:

新的次要版本New minor version 支援的版本清單Supported Version List
1.13.x1.13.x 1.12.a、 1.12.b、 1.11.a、 1.11.b、 1.10.a、 1.10.b1.12.a, 1.12.b, 1.11.a, 1.11.b, 1.10.a, 1.10.b

其中"x"和".a"和"1).b 」 是具代表性的修補程式版本。Where "x" and ".a" and ".b" are representative patch versions.

如需有關變更版本和預期的通訊的詳細資訊,請參閱 「 通訊 」 下方。For details on communications regarding version changes and expectations, see "Communications" below.

引入新的次要版本時,最舊次要版本和修補程式版本中已被取代,且移除。When a new minor version is introduced, the oldest minor version and patch releases supported are deprecated and removed. 例如,如果目前支援的版本清單為:For example if the current supported version list is:

支援的版本清單Supported Version List

1.12.a、 1.12.b、 1.11.a、 1.11.b、 1.10.a、 1.10.b、 1.9.a、 1.9.b1.12.a, 1.12.b, 1.11.a, 1.11.b, 1.10.a, 1.10.b, 1.9.a, 1.9.b

AKS 釋放 1.13.x,這表示將會移除 1.9.x 版本 (所有 1.9 版) 和不受支援。And AKS releases 1.13.x, this means that the 1.9.x versions (all 1.9 versions) will be removed and out of support.

注意

請注意,,是否客戶正在執行不受支援的 Kubernetes 版本,會要求他們時要求支援叢集升級。Please note, that if customers are running an unsupported Kubernetes version, they will be asked to upgrade when requesting support for the cluster. 執行不受支援的 Kubernetes 版本的叢集未涵蓋AKS 是否支援原則Clusters running unsupported Kubernetes releases are not covered by the AKS support policies.

除了上述項目上的次要版本,AKS 支援兩個最新修補程式* 指定的次要版本的版本。In addition to the above on minor versions, AKS supports the two latest patch* releases of a given minor version. 例如,假設下列支援的版本:For example, given the following supported versions:

支援的版本清單Supported Version List

1.12.1, 1.12.2, 1.11.4, 1.11.51.12.1, 1.12.2, 1.11.4, 1.11.5

如果上游 Kubernetes 發行 1.12.3 和 1.11.6 而且 AKS 釋放這些修補程式版本、 被取代最舊的修補程式版本,並將其移除,並支援的版本清單也會變成:If upstream Kubernetes released 1.12.3 and 1.11.6 and AKS releases those patch versions, the oldest patch versions are deprecated and removed, and the supported version list becomes:

支援的版本清單Supported Version List

1.12.2, 1.12.3, 1.11.5, 1.11.61.12.2, 1.12.3, 1.11.5, 1.11.6

注意

建立叢集、 CI 或其他自動化的工作特定的修補程式版本,客戶應該不會將釘選。Customers should not pin cluster creation, CI or other automated jobs to specific patch releases.

通訊Communications

  • 對新次要的 Kubernetes 版本For new minor versions of Kubernetes
    • 所有使用者會收到都通知公開的新版本,而且將會移除哪一個版本。All users are notified publicly of the new version and what version will be removed.
    • 新的修補程式版本發行時,會移除最舊的修補程式版本,在相同的時間。When a new patch version is released, the oldest patch release is removed at the same time.
    • 客戶有60 天從公用通知日期,若要升級至支援的次要版本發行。Customers have 60 days from the public notification date to upgrade to a supported minor version release.
  • 對新修補程式的 Kubernetes 版本For new patch versions of Kubernetes
    • 正在發行的新修補程式版本和升級至最新的修補程式版本,則所有使用者會收到都通知。All users are notified of the new patch version being released and to upgrade to the latest patch release.
    • 使用者擁有30 天升級至較新且支援的修補程式版本。Users have 30 days to upgrade to a newer, supported patch release. 使用者擁有30 天之前移除最舊,升級至支援的修補程式版本。Users have 30 days to upgrade to a supported patch release before the oldest is removed.

AKS 會定義 「 發行 」 為正式運作後,啟用所有的 SLO / 品質的服務的度量,可在所有區域。AKS defines "released" as general availability, enabled in all SLO / Quality of Service measurements and available in all regions.

注意

新的版本,且棄用功能,次要的版本時已被取代/移除的使用者都升級至支援的版本各有 60 天,客戶會收到通知的 Kubernetes。Customers are notified of Kubernetes version releases and deprecations, when a minor version is deprecated/removed users are given 60 days to upgrade to a supported release. 修補程式版本中,如果客戶有 30 天內升級至支援的版本。In the case of patch releases, customers are given 30 days to upgrade to a supported release.

透過傳送通知:Notifications are sent via:

原則的例外狀況Policy Exceptions

AKS 會保留新增或移除新的/現有的版本已找出有影響的 bug 或安全性問題,而不需要事先通知的一或多個重要的生產的權限。AKS reserves the right to add or remove new/existing versions that have been identified to have one or more critical production impacting bugs or security issues without advance notice.

可能會略過特定的修補程式版本,或首展加速視錯誤或安全性問題的嚴重性而定。Specific patch releases may be skipped, or rollout accelerated depending on the severity of the bug or security issue.

Azure 入口網站和 CLI 預設版本Azure portal and CLI default versions

當您部署 AKS 叢集入口網站中,或使用 Azure CLI 時,叢集一律設為最新修補程式的 N-1 次要版本。When you deploy an AKS cluster in the portal or with the Azure CLI, the cluster is always set to the N-1 minor version and latest patch. 例如,如果支援 AKS 1.13.x1.12.a + 1.12.b1.11.a + 1.11.b1.10.a + 1.10b,為新叢集的預設版本1.12.bFor example, if AKS supports 1.13.x, 1.12.a + 1.12.b, 1.11.a + 1.11.b, 1.10.a + 1.10b, the default version for new clusters is 1.12.b.

AKS 會預設為 N-1 (minor.latestPatch,例如 1.12.b) 提供客戶已知,穩定,而且根據預設,修補版本。AKS defaults to N-1 (minor.latestPatch, eg 1.12.b) to provide customers a known, stable and patched version by default.

列出目前支援的版本List currently supported versions

若要找出目前可供您訂用帳戶和區域使用的版本,請使用 az aks get-versions 命令。To find out what versions are currently available for your subscription and region, use the az aks get-versions command. 下列範例會列出 EastUS 區域的可用 Kubernetes 版本:The following example lists the available Kubernetes versions for the EastUS region:

az aks get-versions --location eastus --output table

輸出會類似下列的範例中,會顯示該 Kubernetes 版本1.13.5可用的最新版本:The output is similar to the following example, which shows that Kubernetes version 1.13.5 is the most recent version available:

KubernetesVersion    Upgrades
-------------------  ------------------------
1.13.5               None available
1.12.7               1.13.5
1.12.6               1.12.7, 1.13.5
1.11.9               1.12.6, 1.12.7
1.11.8               1.11.9, 1.12.6, 1.12.7
1.10.13              1.11.8, 1.11.9
1.10.12              1.10.13, 1.11.8, 1.11.9

常見問題集FAQ

當客戶使用不支援的次要版本升級 Kubernetes 叢集時,會發生什麼事?What happens when a customer upgrades a Kubernetes cluster with a minor version that is not supported?

如果您是在n-4版本,您的支援以外,並將要求升級。If you are on the n-4 version, you are outside of support and will be asked to upgrade. 如果成功從版本到 n-4 升級至 n-3,現在您已在我們的支援原則。If your upgrade from version n-4 to n-3 succeeds, you are now within our support policies. 例如:For example:

  • 如果支援的版本的 AKS 1.13.x1.12.a + 1.12.b1.11.c + 1.11 d,和1.10.eIf the supported AKS versions are 1.13.x, 1.12.a + 1.12.b, 1.11.c + 1.11d, and 1.10.e + 1.10f上,而且1.9.g或是1.9.h,即支援之外。+ 1.10f and you are on 1.9.g or 1.9.h, you are outside of support.
  • 如果從升級1.9.g或是1.9.h1.10.eIf the upgrade from 1.9.g or 1.9.h to 1.10.e 或是1.10.f成功,您已回到我們的支援原則。or 1.10.f succeeds, you are back in the within our support policies.

不支援升級到早於 n-4 的版本。Upgrades to versions older than n-4 are not supported. 在這類情況下,我們建議客戶建立新的 AKS 叢集,並重新部署其工作負載。In such cases, we recommend customers create new AKS clusters and redeploy their workloads.

[支援 Out] 代表什麼意思What does 'Out of Support' mean

'之外支援 表示您正在執行的版本超出支援的版本 清單中,而且系統會要求您要求支援時,將叢集升級至支援的版本。'Outside of Support' means that the version you are running is outside of the supported versions list, and you will be asked to upgrade the cluster to a supported version when requesting support. 此外,AKS 不提供任何執行階段或叢集支援的版本清單之外的其他保證。Additionally, AKS does not make any runtime or other guarantees for clusters outside of the supported versions list.

當客戶使用不支援的次要版本調整 Kubernetes 叢集時,會發生什麼事?What happens when a customer scales a Kubernetes cluster with a minor version that is not supported?

對於 AKS 不支援的次要版本,相應縮小或放大都會繼續運作,而且不會產生任何問題。For minor versions not supported by AKS, scaling in or out continues to work without any issues.

客戶可以永遠停留在某個 Kubernetes 版本嗎?Can a customer stay on a Kubernetes version forever?

是。Yes. 不過,如果叢集不在其中一個 AKS 所支援的版本中,叢集就會超出 AKS 支援原則。However, if the cluster is not on one of the versions supported by AKS, the cluster is out of the AKS support policies. Azure 不會自動升級您的叢集或刪除它。Azure does not automatically upgrade your cluster or delete it.

如果代理程式叢集不在某個支援的 AKS 版本中,主要叢集會支援哪個版本?What version does the master support if the agent cluster is not in one of the supported AKS versions?

主要叢集會自動更新為最新支援版本。The master is automatically updated to the latest supported version.

後續步驟Next steps

如需如何升級叢集的相關資訊,請參閱升級 Azure Kubernetes Service (AKS) 叢集For information on how to upgrade your cluster, see Upgrade an Azure Kubernetes Service (AKS) cluster.