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

Keda operator does not install on AWS EKS Fargate #6340

Closed
gildas opened this issue Nov 18, 2024 · 4 comments
Closed

Keda operator does not install on AWS EKS Fargate #6340

gildas opened this issue Nov 18, 2024 · 4 comments
Labels
bug Something isn't working stale All issues that are marked as stale due to inactivity

Comments

@gildas
Copy link

gildas commented Nov 18, 2024

Report

Deploying KEDA on AWS EKS Fargate fails with Keda pods complaining anout untolerated taint (eks.amazonaws.com/compute-type: fargate).

Expected Behavior

Keda pods to run.

Actual Behavior

Keda pods stay at Pending with this kind of events:

   Type     Reason            Age   From               Message                                                                                                                                                                                                                                                      
   ----     ------            ----  ----               -------                                                                                                                                                                                                                                                      
   Warning  FailedScheduling  8s    default-scheduler  0/X nodes are available: X node(s) had untolerated taint {eks.amazonaws.com/compute-type: fargate}. preemption: 0/X nodes are available: X Preemption is not helpful for scheduling.                                                                     │

Steps to Reproduce the Problem

  1. Run an AWS EKS Fargate cluster
  2. install Keda with helm install --namespace keda --ceate-namespace --set clusterName=<my-cluster> keda kedacore/keda
  3. Watch the pods

Logs from KEDA operator

No logs available from Keda as it does not install

KEDA Version

2.16.0

Kubernetes Version

1.30

Platform

Amazon Web Services

Scaler Details

No response

Anything else?

No response

@gildas gildas added the bug Something isn't working label Nov 18, 2024
@omerap12
Copy link
Contributor

I think you just need to add toleration https://github.com/kedacore/charts/blob/main/keda/values.yaml#L508

@gildas
Copy link
Author

gildas commented Dec 2, 2024

I think you just need to add toleration https://github.com/kedacore/charts/blob/main/keda/values.yaml#L508

I already tried that while getting some help from the community on slack (https://kubernetes.slack.com/archives/CKZJ36A5D/p1730281617416029?thread_ts=1729833857.363939&cid=CKZJ36A5D)

in short, I get another error:

Too many pods. preemption: 0/X nodes are available: X No preemption victims found for incoming pod

Which makes sense, since on AWS EKS Fargate, 1 pod == 1 node. This is what allows them to scale "magically".

Copy link

stale bot commented Feb 2, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Feb 2, 2025
@github-project-automation github-project-automation bot moved this from To Triage to Ready To Ship in Roadmap - KEDA Core Feb 6, 2025
@tms2018
Copy link

tms2018 commented Feb 12, 2025

This is an issue with EKS Fargate configuration. For Fargate, you can specify Fargate profiles and it will determine which pods to schedule using Fargate. I was able to deploy KEDA just by adding the "keda" namespace to the selectors on the default Fargate profile for my cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale All issues that are marked as stale due to inactivity
Projects
Status: Ready To Ship
Development

No branches or pull requests

4 participants