mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 06:47:12 +00:00
gcloud: Wed Jan 25 10:09:52 UTC 2023
This commit is contained in:
parent
1248f773ec
commit
6dc17bdd4a
218 changed files with 6694 additions and 2033 deletions
|
|
@ -11,35 +11,36 @@ SYNOPSIS
|
|||
DESCRIPTION
|
||||
Upgrades the Kubernetes version of an existing container cluster.
|
||||
|
||||
This command upgrades the Kubernetes version of the nodes or master of a
|
||||
cluster. Note that the Kubernetes version of the cluster's master is also
|
||||
This command upgrades the Kubernetes version of the node pools or master of
|
||||
a cluster. Note that the Kubernetes version of the cluster's master is also
|
||||
periodically upgraded automatically as new releases are available.
|
||||
|
||||
If desired cluster version is omitted, node upgrades default to the current
|
||||
master version and master upgrades default to the default cluster version,
|
||||
which can be found in the server config.
|
||||
If desired cluster version is omitted, node pool upgrades default to the
|
||||
current master version and master upgrades default to the default cluster
|
||||
version, which can be found in the server config.
|
||||
|
||||
By running this command, all of the cluster's nodes will be deleted and
|
||||
recreated one at a time. While persistent Kubernetes resources, such as
|
||||
pods backed by replication controllers, will be rescheduled onto new nodes,
|
||||
a small cluster may experience a few minutes where there are insufficient
|
||||
nodes available to run all of the scheduled Kubernetes resources.
|
||||
During node pool upgrades, nodes will be deleted and recreated. While
|
||||
persistent Kubernetes resources, such as Pods backed by replication
|
||||
controllers, will be rescheduled onto new nodes, a small cluster may
|
||||
experience a few minutes where there are insufficient nodes available to
|
||||
run all of the scheduled Kubernetes resources.
|
||||
|
||||
Please ensure that any data you wish to keep is stored on a persistent disk
|
||||
before upgrading the cluster. Ephemeral Kubernetes resources--in
|
||||
particular, pods without replication controllers--will be lost, while
|
||||
particular, Pods without replication controllers--will be lost, while
|
||||
persistent Kubernetes resources will get rescheduled.
|
||||
|
||||
EXAMPLES
|
||||
Upgrade the nodes of sample-cluster to the Kubernetes version of the
|
||||
cluster's master.
|
||||
Upgrade the node pool pool-1 of sample-cluster to the Kubernetes version of
|
||||
the cluster's master.
|
||||
|
||||
$ gcloud container clusters upgrade sample-cluster
|
||||
$ gcloud container clusters upgrade sample-cluster --node-pool=pool-1
|
||||
|
||||
Upgrade the nodes of sample-cluster to Kubernetes version 1.14.7-gke.14:
|
||||
Upgrade the node pool pool-1 of sample-cluster to Kubernetes version
|
||||
1.14.7-gke.14:
|
||||
|
||||
$ gcloud container clusters upgrade sample-cluster \
|
||||
--cluster-version="1.14.7-gke.14"
|
||||
--node-pool=pool-1 --cluster-version="1.14.7-gke.14"
|
||||
|
||||
Upgrade the master of sample-cluster to the default cluster version:
|
||||
|
||||
|
|
@ -55,10 +56,11 @@ FLAGS
|
|||
complete.
|
||||
|
||||
--cluster-version=CLUSTER_VERSION
|
||||
The Kubernetes release version to which to upgrade the cluster's nodes.
|
||||
The GKE release version to which to upgrade the cluster's node pools or
|
||||
master.
|
||||
|
||||
If desired cluster version is omitted, node upgrades default to the
|
||||
current master version and master upgrades default to the default
|
||||
If desired cluster version is omitted, node pool upgrades default to
|
||||
the current master version and master upgrades default to the default
|
||||
cluster version, which can be found in the server config.
|
||||
|
||||
You can find the list of allowed versions for upgrades by running:
|
||||
|
|
@ -81,8 +83,7 @@ FLAGS
|
|||
$ gcloud container get-server-config
|
||||
|
||||
--master
|
||||
Upgrade the cluster's master to the latest version of Kubernetes
|
||||
supported on Kubernetes Engine. Nodes cannot be upgraded at the same
|
||||
Upgrade the cluster's master. Node pools cannot be upgraded at the same
|
||||
time as the master.
|
||||
|
||||
--node-pool=NODE_POOL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue