deinstapel / eks-rolling-update

EKS Rolling Update is a utility for updating the launch configuration of worker nodes in an EKS cluster.
Apache License 2.0
3 stars 4 forks source link

Edited cli adding logging and changed default config variables #29

Closed agustinbava closed 1 month ago

agustinbava commented 1 month ago

This is part of a set of 2 PR. This is only the first part to review the changes made on cli.py and config.py. cli.py is where the main login of this script resides. config.py stores the variables to be setup to run this script.

I adapted the variables to TD-3067 needs.

To be highlighted:

it will not update the nodes with the label in EXCLUDE_NODE_LABEL_KEYS. Default: 'ara.app/tier=storage' so longhorn nodes are not updated

it will only update nodes which ASG names contain the words listed in this variable: K8S_WORKER_GROUPS_ORDER. Default: '["redis", "deployments", "plugins", "monitoring"]' and it will do it in that order as well.