About Xkops is an integrated solution that combines widely-adopted open-source utilities to simplify Kubernetes management, emphasizing the enhancement of observability, reliability, security, and cost control in cluster operations which help users optimize the deployment and management of Kubernetes clusters.
About Bug or problem
When you install XkOps after you have uninstalled it sometime before, the following things are not deleted and this results in issues in the installation process.
On deletion of xkops namespace the associated service account stack is not deleted from Cloud Formation.
XkOps-EBS-iam-role is not deleted when you uninstall XkOps
Amazon EBS CSI Driver is also not deleted and it prevents XkOps-EBS-iam-role from being deleted.
All the above mentioned things should be deleted by using cleaner.sh
[ ] In which environment bug or problem reported/observed?
EKS Cluster
[ ] Priority of reported bug
High
Steps to reproduce
First run the secret manager script to set up secrets for XkOps
Then use helm command to install XkOps
Then use command helm uninstall xkops
Then run the cleaner.sh, and remove xkops,robusta and kubecost namespaces
Now run the secret manager script again
Now when you install XkOps for the second time, it will not install as there is no xkops namespace, but it can not be created because the service account stack is still not deleted, so you need to remove it manually from Cloud Formation.
Now when you run the secret manager script again, the namespace for xkops will be created successfully.
Now when you install XkOps, the terraform init container fails because XkOps-EBS-iam-role and Amazon EBS CSI Driver are not cleared, and Amazon EBS CSI Driver also creates new XkOps-EBS-iam-role is you don't delete it before clearing the EBS CSI Driver.
So you have to manually delete EBS CSI Driver first and then delete XkOps-EBS-iam-role.
Now when you install XkOps it is installed succefully
Found the eksctl command to delete the Amazon EBS CSI Driver add-on
Found the AWS CLI command for deleting Cloud Formation stack and
Found the AWS CLI command for removing the managed policy and deleting the XkOps-EBS-iam-role, as you need to remove all policies attached to the iam role before you can delete it.
About Bug or problem When you install XkOps after you have uninstalled it sometime before, the following things are not deleted and this results in issues in the installation process.
All the above mentioned things should be deleted by using cleaner.sh
Steps to reproduce
helm uninstall xkops