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

[Help] eksctl CRD's installation #7995

Closed
raghu-manne opened this issue Oct 10, 2024 · 6 comments
Closed

[Help] eksctl CRD's installation #7995

raghu-manne opened this issue Oct 10, 2024 · 6 comments
Labels
kind/help Request for help stale

Comments

@raghu-manne
Copy link

What help do you need?

I am trying to setup ALB LoadBalancer Controlller using this , while doing this setup I am facing issue which is already raised here #7987.

Workaround mentioned in #7987 has a config file used with eksctl to create service account, I tried to create the ClusterConfig with both the policies but the eksctl CRD's are missing. How do I install the eksctl CRD's?

eksctl command executed: eksctl create iamserviceaccount --cluster=cluster_name --namespace=kube-system --name=aws-load-balancer-controller --attach-policy-arn=arn:aws:iam:${AWS_ACCOUNT_ID}:policy/AWSLoadBalancerControllerIAMPolicy --override-existing-serviceaccounts --region us-east-1 --approve

ClusterConfig File:

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
  name: cluster_name
  region: us-east-1
iam:
  withOIDC: true
  serviceAccounts:
  - metadata:
      name: aws-load-balancer-controller
      namespace: kube-system
    attachPolicyARNs:
    - arn:aws:iam:${AWS_ACCOUNT_ID}:policy/AWSLoadBalancerControllerIAMPolicy
    attachPolicy: |
      Version: "2012-10-17"
      Statement:
        - Effect: Allow
           Action:
             - elasticloadbalancing:DescribeListenerAttribute
             - elasticloadbalancing:ModifyListenerAttribute
           Resource: "*"
    wellKnownPolicies:
      awsLoadBalancerController: true

Error while applying the file:

$ k apply -f alb-lbc-irsa-eksctl.yml
error: resource mapping not found for name: "test-2" namespace: "" from "alb-lbc-irsa-eksctl.yml": no matches for kind "ClusterConfig" in version "eksctl.io/v1alpha5"ensure CRDs are installed first

Help needed in installing eksctl CRD's, TIA!

@raghu-manne raghu-manne added the kind/help Request for help label Oct 10, 2024
Copy link
Contributor

Hello raghu-manne 👋 Thank you for opening an issue in eksctl project. The team will review the issue and aim to respond within 1-5 business days. Meanwhile, please read about the Contribution and Code of Conduct guidelines here. You can find out more information about eksctl on our website

@jonathanfoster
Copy link
Contributor

@raghu-manne You need to use eksctl to apply the cluster config, not kubectl. See the getting started docs for more info.

@raghu-manne
Copy link
Author

raghu-manne commented Oct 10, 2024

I didn't created my cluster with eksctl.
So, now I can't create new serviceaccounts with ClusterConfig or any other CRD using eksctl?

@jonathanfoster
Copy link
Contributor

@raghu-manne Check out the IAM Roles for Service Accounts docs.

Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Nov 11, 2024
Copy link
Contributor

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/help Request for help stale
Projects
None yet
Development

No branches or pull requests

2 participants