简体   繁体   English

在Google Container Engine上升级集群

[英]Upgrade cluster on Google Container Engine

I want to upgrade my cluster to use the newest version of Kubernetes. 我想升级群集以使用最新版本的Kubernetes。 I see Google Container Engine has the following tool: 我看到Google Container Engine具有以下工具:

https://cloud.google.com/container-engine/docs/clusters/upgrade?hl=en https://cloud.google.com/container-engine/docs/clusters/upgrade?hl=en

However, after I upgrade my cluster and everything finishes successfully, when I see my cluster on the web console I still see the old version (1.9.3). 但是,在升级群集并成功完成所有操作之后,当我在Web控制台上看到群集时,仍然看到旧版本(1.9.3)。 When you create a new cluster version is 1.0.1, so I expect my cluster to upgrade to that version. 当您创建一个新的集群版本是1.0.1时,因此我希望我的集群可以升级到该版本。 I also tried upgrading to 0.21.4 with the same results. 我还尝试了升级到0.21.4的结果。

Is there something I'm doing wrong? 我做错了什么吗?

The web console may be reporting your initial cluster version rather than the current version of you master and nodes. Web控制台可能会报告您的初始群集版本,而不是您的主服务器和节点的当前版本。 If you want to see all of the versions for your cluster, try running 如果要查看集群的所有版本,请尝试运行

gcloud beta container clusters --zone=<zone> describe <cluster-name> | grep -i version

and it should print out something like 它应该打印出类似

currentMasterVersion: 0.21.4
currentNodeVersion: 0.19.3
initialClusterVersion: 0.19.3

If your initial cluster version was 0.19.3 then your master won't have been upgraded to 1.0.x yet (but you should have received a notice that you will be upgraded soon). 如果您的初始群集版本是0.19.3,那么您的主服务器将尚未升级到1.0.x(但是您应该已经收到通知,即将升级)。

Once your master has been upgraded, you can follow the instructions at the link you found to upgrade your nodes to the same version as your master. 主节点升级后,可以按照找到的链接中的说明将节点升级到与主节点相同的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM