gcloud container clusters update

1 개요[ | ]

gcloud container clusters update
$ gcloud container clusters list
NAME: cluster1
LOCATION: asia-northeast9-x
MASTER_VERSION: 1.19.14-gke.1900
MASTER_IP: 35.79.146.80
MACHINE_TYPE: e2-micro
NODE_VERSION: 1.19.14-gke.1900
NUM_NODES: 4
STATUS: RUNNING
$ gcloud container clusters update cluster1 --update-addons=GcePersistentDiskCsiDriver=ENABLED

ERROR: (gcloud.container.clusters.update) One of [--zone, --region] must be supplied: Please specify location.
$ gcloud container clusters update cluster1 --update-addons=GcePersistentDiskCsiDriver=ENABLED --zone asia-northeast9-x

Updating cluster1...working...
$ kubectl get no
The connection to the server 35.79.146.80 was refused - did you specify the right host or port?
$ gcloud container clusters update cluster1 --update-addons=GcePersistentDiskCsiDriver=ENABLED --zone asia-northeast9-x

Updating cluster1...done.
Updated [https://container.googleapis.com/v1/projects/hello-world-802/zones/asia-northeast9-x/clusters/cluster1].
To inspect the contents of your cluster, go to: https://console.cloud.google.com/kubernetes/workload_/gcloud/asia-northeast9-x/cluster1?project=hello-world-802
$ kubectl get ds -n kube-system | grep pdcsi
pdcsi-node                  4         4         4       4            4           kubernetes.io/os=linux                                                   61s
pdcsi-node-windows          0         0         0       0            0           kubernetes.io/os=windows                                                 61s
$ kubectl get sc
NAME                 PROVISIONER             RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
premium-rwo          pd.csi.storage.gke.io   Delete          WaitForFirstConsumer   true                   6m12s
standard (default)   kubernetes.io/gce-pd    Delete          Immediate              true                   704d
standard-rwo         pd.csi.storage.gke.io   Delete          WaitForFirstConsumer   true                   6m12s

2 start-credential-rotation[ | ]

$ gcloud container clusters update cluster1 --region asia-northeast3-b --start-credential-rotation
This will start an IP and Credentials Rotation on cluster [cluster1]. The master will be updated to serve on a new IP address in addition to the current IP address, and cluster credentials will  be rotated. Kubernetes Engine will then schedule recreation of all nodes (1 nodes) to point to the new IP address. If maintenence window is used, nodes are not recreated until a maintenance window occurs. See documentation https://cloud.google.com/kubernetes-engine/docs/how-to/credential-rotation on how to manually update nodes. 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)?
Updating cluster1...done.
Updated [https://container.googleapis.com/v1/projects/ultra-project-802/zones/asia-northeast3-b/clusters/cluster1].
To inspect the contents of your cluster, go to: https://console.cloud.google.com/kubernetes/workload_/gcloud/asia-northeast3-b/cluster1?project=ultra-project-802
kubeconfig entry generated for cluster1.
$ gcloud container clusters upgrade cluster1 --location=asia-northeast3-b
All nodes (1 node) of cluster [cluster1] will be upgraded from version [1.29.8-gke.1278000] to version [1.29.8-gke.1278000]. 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)?
Upgrading cluster1... Updating worker1, done with 0 out of 10 nodes (0.0%): 1 being processed...done.
Updated [https://container.googleapis.com/v1/projects/ultra-dimension-833/zones/asia-northeast3-b/clusters/cluster1].

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}