doctl kubernetes cluster node-pool update

Go to Navigation

Usage

doctl kubernetes cluster node-pool update <cluster-id|cluster-name> <pool-id|pool-name> [flags]

Aliases

u

Description

Updates a node pool in a cluster. You can update any value for which there is a flag.

Example

The following example updates a node pool named example-pool in a cluster named example-cluster:

doctl kubernetes cluster node-pool update example-cluster example-pool --count 5 --taint "key1=value1:NoSchedule" --taint "key2:NoExecute"

Flags

Option Description
--auto-scale Enables auto-scaling on the node pool
Default: false
--count The number of nodes in the node pool
Default: 0
--help , -h Help for this command
--label A label in key=value notation to apply to the node pool. Repeat this flag to specify additional labels. Existing labels are removed from the node pool if they are not specified in the updated value.
--max-nodes The maximum number of nodes in the node pool when autoscaling is enabled
Default: 0
--min-nodes The minimum number of nodes in the node pool when autoscaling is enabled
Default: 0
--name The name of the node pool
--tag A tag to apply to the node pool. Repeat this flag to specify additional tags. An existing tag is removed from the node pool if it is not specified by any flag.
--taint Taint in key=value:effect notation to apply to the node pool. Repeat this flag to specify additional taints. Set to an empty string ("") to clear all taints. An existing taint is removed from the node pool if it is not specified by any flag.
Command Description
doctl kubernetes cluster node-pool Display commands for managing node pools

Global Flags

Option Description
--access-token, -t API V2 access token
--api-url, -u Override default API endpoint
--config, -c Specify a custom config file
Default:
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--context Specify a custom authentication context name
--http-retry-max Set maximum number of retries for requests that fail with a 429 or 500-level error
Default: 5
--http-retry-wait-max Set the minimum number of seconds to wait before retrying a failed request
Default: 30
--http-retry-wait-min Set the maximum number of seconds to wait before retrying a failed request
Default: 1
--interactive Enable interactive behavior. Defaults to true if the terminal supports it (default false)
Default: false
--output, -o Desired output format [text|json]
Default: text
--trace Show a log of network activity while performing a command
Default: false
--verbose, -v Enable verbose output
Default: false