digitalocean / doctl

The official command line interface for the DigitalOcean API.
https://docs.digitalocean.com/reference/doctl/
Apache License 2.0
3.27k stars 396 forks source link

Upgrading node pools #1105

Open drobit opened 2 years ago

drobit commented 2 years ago

What is the problem this feature would solve? Please describe.

Ability to upgrade a node pool

Describe the solution you'd like

Upgrade or downgrade for a DOKS cluster its nodes via doctl.

doctl kubernetes cluster upgrade <cluser id> --node-pool  <name of node pool> --version <k8s version>

or

doctl kubernetes cluster node-pool upgrade <cluster-id|cluster-name> --version <k8s version>
andrewsomething commented 2 years ago

Hi @drobit ,

doctl supports upgrading a cluster's version using doctl kubernetes cluster upgrade <UUID> --version <version>

See: https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/upgrade/

This will upgrade both the control plane and all node pools to the same version. DOKS does not support managing the Kubernetes version of a node pool separately from the control plane.

I'd love to better understand your need for this feature. Could you expand on the problem you are trying to solve? I'll pass your feedback on to the DOKS team.

drobit commented 2 years ago

Hey, @andrewsomething, and thanks for your response.

Yeah, it's more about achieving zero downtime with Upgrading node pools or adding a node pool to DOKS cluster with the new k8s version.

Regards, Serhii