Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Kubeclarity Install fails on EKS v1.23 or later because it cannot bind volume if CSI Driver add ons are not installed #318

Open
pkalapat opened this issue Feb 7, 2023 · 5 comments
Labels

Comments

@pkalapat
Copy link

pkalapat commented Feb 7, 2023

Is your feature request related to a problem? Please describe.
Tried installing Kubeclarity on EKS 1.24, kubeclarity postgresql pod fails to start and gets stuck in pending state

Describe the solution you'd like
Add trouble shooting documentation to cover step by step process to install and get Kubeclarity up and running on latest versions on EKS clusters.

Describe alternatives you've considered
A troubleshooting section under readme or a separate documentation guide will be helpful

To resolve this issue it needs Amazon EBS CSI driver as an Amazon EKS add-on and setting up the driver with relevant IAMServiceAccount roles and policies. Post eks1.23 it is required to install add ons. Some useful references
https://docs.aws.amazon.com/eks/latest/userguide/ebs-csi.html
https://docs.aws.amazon.com/eks/latest/userguide/csi-iam-role.html

@pkalapat pkalapat changed the title Documentation: Kubeclarity Install fails on EKS 1.23 or later because it cannot Bind Volume with out CSI Driver add ons. Documentation: Kubeclarity Install fails on EKS 1.23 or later because it cannot Bind Volume Feb 7, 2023
@pkalapat pkalapat changed the title Documentation: Kubeclarity Install fails on EKS 1.23 or later because it cannot Bind Volume Documentation: Kubeclarity Install fails on EKS v1.23 or later because it cannot bind volume if CSI Driver add ons or not installed Feb 7, 2023
@pkalapat pkalapat changed the title Documentation: Kubeclarity Install fails on EKS v1.23 or later because it cannot bind volume if CSI Driver add ons or not installed Documentation: Kubeclarity Install fails on EKS v1.23 or later because it cannot bind volume if CSI Driver add ons are not installed Mar 24, 2023
@stale
Copy link

stale bot commented May 23, 2023

This issue has been automatically marked as stale because it has no recent activity in the last 60 days. It will be closed in 14 days if no further activity occurs. If this issue is still relevant please leave a comment to let us know and the stale label will be automatically removed. Thank you for your contributions.

@stale stale bot added the stale label May 23, 2023
@lelia lelia removed the stale label May 30, 2023
@stale
Copy link

stale bot commented Jul 29, 2023

This issue has been automatically marked as stale because it has no recent activity in the last 60 days. It will be closed in 14 days if no further activity occurs. If this issue is still relevant please leave a comment to let us know and the stale label will be automatically removed. Thank you for your contributions.

@stale stale bot added the stale label Jul 29, 2023
@github-actions
Copy link

This issue has been marked stale for 14 days, and is now closed due to inactivity. If the issue is still relevant, please re-open this issue or file a new one. Thank you!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 27, 2023
@schultyy
Copy link

schultyy commented Oct 9, 2023

Any chance we can reopen this issue? I'm running into the same problem /w EKS 1.28

Steps to get it working:

export cluster_name=<clustername>
oidc_id=$(aws eks describe-cluster --name $cluster_name --region <region> --query "cluster.identity.oidc.issuer" --output text | cut -d '/' -f 5)
echo $oidc_id
aws iam list-open-id-connect-providers | grep $oidc_id | cut -d "/" -f4
eksctl utils associate-iam-oidc-provider --cluster $cluster_name --region us-east-2 --approve #only run if previous command did not yield an ID

eksctl create iamserviceaccount \
    --name ebs-csi-controller-sa \
    --namespace kube-system \
    --cluster <cluster> \
    --region <region> \
    --role-name AmazonEKS_EBS_CSI_DriverRole \
    --role-only \
    --attach-policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy \
    --approve

Then, add the AWS plugin (Amazon EBS CSI Driver) via UI. Make sure to configure it with the AmazonEKS_EBS_CSI_DriverRole role

@akpsgit
Copy link
Contributor

akpsgit commented Oct 16, 2023

Hi @schultyy, thanks a lot for the detailed solution, reopening the task. The documentation will be available under the new KubeClarity documentation site. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants