dcloud eks nodegroups update

Scale a node group or change its labels and taints

IAM eks:UpdateNodegroupConfigChanges stateAsks before it deletes (-y skips)

Scaling down drains the nodes it removes (respecting PodDisruptionBudgets) first.

Synopsis

dcloud eks nodegroups update cluster name [flags]

Arguments

  • <cluster>Required

    string

    Also accepted as --cluster. Constraints: /^(ewk-[0-9a-f]{12}|[a-z]([a-z0-9-]{0,38}[a-z0-9])?)$/

  • <name>Required

    string

    Also accepted as --name. Constraints: /^[a-z]([a-z0-9-]{0,30}[a-z0-9])?$/

Flags

  • --min-sizeOptional

    number

    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-sizeOptional

    number

    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-sizeOptional

    number

    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

  • --labelsOptional

    map 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

  • --taintsOptional

    array 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-typeOptional

    string

    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-minutesOptional

    number

    Upgrades: minutes a node’s drain may wait on PodDisruptionBudgets; default 60

    Constraints: integer, 5-1440

  • --force-after-timeoutOptional

    boolean (--force-after-timeout / --no-force-after-timeout)

    Upgrades: after the timeout, remove the node anyway (true) or pause the upgrade (false, default)

  • --autoscalingOptional

    boolean (--autoscaling / --no-autoscaling)

    Let the cluster autoscaler change desiredSize between minSize and maxSize (pending pods grow the group, underused nodes shrink it)

  • --zonesOptional

    array 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-typesOptional

    array 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-fallbackOptional

    object

    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 name

Generated from the API description, the same one the API checks requests against and the CLI is built from.