Cluster is upgraded and the nodes are updated as required.
Current Behaviour
Upgrade fails after preflights and cluster upgrade in the node eviction stage.
ERROR:eksupgrade.src.k8s_client:Exception encountered while attempting to drain nodes! Node: ip-*-*-*-*.ec2.internal Cluster: eksup-cluster - Error: module 'kubernetes.client.models' has no attribute 'v1beta1_eviction'
ERROR:eksupgrade.starter:Error encountered during actual update! Exception: Unable to Delete the Node
ERROR:eksupgrade.starter:Exception encountered in main method - Error: Unable to Delete the Node
Reference Kubernetes module installed from the project
pip show kubernetes
Name: kubernetes
Version: 24.2.0
2. Installed eksupgrade using `pip install eksupgrade`
3. Ran the eksupgrade command to upgrade the version to 1.22 `eksupgrade eksup-cluster 1.22 us-east-1`
Expected Behaviour
Cluster is upgraded and the nodes are updated as required.
Current Behaviour
Upgrade fails after preflights and cluster upgrade in the node eviction stage.
Code snippet
Possible Solution
Update the reference to v1_eviction
Steps to Reproduce
eksctl create cluster -f cluster.yaml
. Config yaml belowmetadata: name: eksup-cluster region: us-east-1 version: "1.21" nodeGroups:
Amazon EKS upgrade version
0.4.0
Python runtime version
3.9
Packaging format used
PyPi
Debugging logs