dcloud eks nodegroups updateScale a node group or change its labels and taints
Scaling down drains the nodes it removes (respecting PodDisruptionBudgets) first.
Synopsis
dcloud eks nodegroups update cluster name [flags]Arguments
<cluster>Requiredstring
Also accepted as
--cluster. Constraints: /^(ewk-[0-9a-f]{12}|[a-z]([a-z0-9-]{0,38}[a-z0-9])?)$/<name>Requiredstring
Also accepted as
--name. Constraints: /^[a-z]([a-z0-9-]{0,30}[a-z0-9])?$/
Flags
--min-sizeOptionalnumber
Fewest nodes, 0–100; the cluster autoscaler never goes below it. minSize ≤ desiredSize ≤ maxSize, else 400, checked against the sizes not sent. Unchanged when absent
Constraints: integer, 0-100
--desired-sizeOptionalnumber
Nodes to run now, 0–100; with autoscaling on, the cluster autoscaler changes it between minSize and maxSize. Scaling down drains the nodes it removes. Unchanged when absent
Constraints: integer, 0-100
--max-sizeOptionalnumber
Most nodes, 1–100; what the quotas count (nodes per node group, and nodes per cluster summed over its node groups; 20 and 50 by default): 409 QuotaExceeded above them; only growth is checked, shrinking is always allowed. Unchanged when absent
Constraints: integer, 1-100
--labelsOptionalmap of string
Replaces the node labels as a whole; at most 20, kubernetes.io/, k8s.io/ and eks.ews.cloud/ keys refused (400). {} removes them all. Unchanged when absent
Constraints: key=value
--taintsOptionalarray of json
Replaces the node taints as a whole: { key, value?, effect: NoSchedule | PreferNoSchedule | NoExecute }; at most 10. [] removes them all. Unchanged when absent
--instance-typeOptionalstring
Instance type for nodes created from now on, e.g. performance-4 (provider names still accepted, deprecated); nodes already running keep theirs until they are replaced. A group stopped after failed nodes starts again
Constraints: 1-32 chars
--drain-timeout-minutesOptionalnumber
Upgrades: minutes a node’s drain may wait on PodDisruptionBudgets; default 60
Constraints: integer, 5-1440
--force-after-timeoutOptionalboolean (--force-after-timeout / --no-force-after-timeout)
Upgrades: after the timeout, remove the node anyway (true) or pause the upgrade (false, default)
--autoscalingOptionalboolean (--autoscaling / --no-autoscaling)
Let the cluster autoscaler change desiredSize between minSize and maxSize (pending pods grow the group, underused nodes shrink it)
--zonesOptionalarray of string
Availability zones the nodes spread over, balanced (e.g. ["de1a","de1b"]); default the region’s default zone. Applies to nodes created from then on
Constraints: /^[a-z]+[0-9]+[a-z]$/
--instance-typesOptionalarray of string
Instance types to buy, in order, when instanceType is sold out in a zone (same CPU architecture), e.g. performance-8
Constraints: /^[a-z0-9-]{2,24}$/
--capacity-fallbackOptionalobject
Stock fallback; default off. otherZones: zones outside `zones` may be used; equivalentTypes: an equivalent server type may be bought
Constraints: JSON
Example
dcloud eks nodegroups update cluster nameGenerated from the API description, the same one the API checks requests against and the CLI is built from.