当当前版本比最旧版本落后 2 个版本时,gke master 升级

当当前版本比最旧版本落后 2 个版本时,gke master 升级

我们有一个运行 1.12 作为主版本和节点版本的 gke 集群。我们原本应该今天升级到 1.14,但由于我们无法升级 2 个版本,而且 1.13 不再受支持,因此无法继续。

一个重要的细节是,我们的节点池仍在运行 1.10,但是在主升级节点升级到 1.14 中止之前,这些节点池已升级到 1.12。

    validMasterVersions:
    - 1.15.11-gke.12
    - 1.15.11-gke.11
    - 1.15.11-gke.9
    - 1.15.11-gke.5
    - 1.15.11-gke.3
    - 1.15.9-gke.24
    - 1.14.10-gke.37
    - 1.14.10-gke.36
    - 1.14.10-gke.34
    - 1.14.10-gke.32
    - 1.14.10-gke.31
    - 1.14.10-gke.27
$ gcloud container clusters upgrade production --master --zone northamerica-northeast1-a --cluster-version 1.14.10-gke.37
Master of cluster [production] will be upgraded from version
[1.12.10-gke.22] to version [1.14.10-gke.37]. This operation is
long-running and will block other operations on the cluster (including
 delete) until it has run to completion.
Do you want to continue (Y/n)?  y
ERROR: (gcloud.container.clusters.upgrade) ResponseError: code=400, message=Master cannot be upgraded to "1.14.10-gke.37": cannot upgrade the master more than a minor version at a time.


$ gcloud container clusters upgrade production --master --zone northamerica-northeast1-a --cluster-version 1.13.12-gke.30
Master of cluster [production] will be upgraded from version
[1.12.10-gke.22] to version [1.13.12-gke.30]. This operation is
long-running and will block other operations on the cluster (including
 delete) until it has run to completion.
Do you want to continue (Y/n)?  y
ERROR: (gcloud.container.clusters.upgrade) ResponseError: code=400, message=Master version "1.13.12-gke.30" is unsupported.

在这种情况下,如何升级到较新的版本?

答案1

大失所望!我已在所有节点池上启用自动升级,看看它是否会触发某些操作,结果确实如此。我的主节点在接下来的几分钟内已升级到 1.13,因此我可以继续升级到目标版本!

自动升级未启用,因为我们有某些 pod 无法处理它。

相关内容