mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 10:35:03 +00:00
58 lines
1.9 KiB
Text
58 lines
1.9 KiB
Text
NAME
|
|
gcloud container node-pools delete - delete an existing node pool in a
|
|
running cluster
|
|
|
|
SYNOPSIS
|
|
gcloud container node-pools delete NAME [--async] [--cluster=CLUSTER]
|
|
[--region=REGION | --zone=ZONE, -z ZONE] [GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
gcloud container node-pools delete deletes a node pool from a Google
|
|
Kubernetes Engine cluster. This command does not gracefully drain the nodes
|
|
prior to deleting them. Use "kubectl drain NODE_NAME" to drain each node to
|
|
have containers running on these nodes terminate gracefully.
|
|
|
|
EXAMPLES
|
|
To delete the "node-pool-1" node pool from the cluster "sample-cluster",
|
|
run:
|
|
|
|
$ gcloud container node-pools delete node-pool-1 \
|
|
--cluster=sample-cluster
|
|
|
|
POSITIONAL ARGUMENTS
|
|
NAME
|
|
The name of the node pool to delete.
|
|
|
|
FLAGS
|
|
--async
|
|
Return immediately, without waiting for the operation in progress to
|
|
complete.
|
|
|
|
--cluster=CLUSTER
|
|
The cluster from which to delete the node pool. Overrides the default
|
|
container/cluster property value for this command invocation.
|
|
|
|
At most one of these can be specified:
|
|
|
|
--region=REGION
|
|
Compute region (e.g. us-central1) for the cluster.
|
|
|
|
--zone=ZONE, -z ZONE
|
|
Compute zone (e.g. us-central1-a) for the cluster. Overrides the
|
|
default compute/zone property value for this command invocation.
|
|
|
|
GCLOUD WIDE FLAGS
|
|
These flags are available to all commands: --access-token-file, --account,
|
|
--billing-project, --configuration, --flags-file, --flatten, --format,
|
|
--help, --impersonate-service-account, --log-http, --project, --quiet,
|
|
--trace-token, --user-output-enabled, --verbosity.
|
|
|
|
Run $ gcloud help for details.
|
|
|
|
NOTES
|
|
These variants are also available:
|
|
|
|
$ gcloud alpha container node-pools delete
|
|
|
|
$ gcloud beta container node-pools delete
|
|
|