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

[Scaler] Kubernetes Events #165

Open
jeffhollan opened this issue May 9, 2019 · 2 comments
Open

[Scaler] Kubernetes Events #165

jeffhollan opened this issue May 9, 2019 · 2 comments
Labels
enhancement New feature or request feature All issues for new features that have been committed to help wanted Looking for support from community scaler

Comments

@jeffhollan
Copy link
Member

Especially interesting for the activation / deactivation

@jeffhollan jeffhollan added enhancement New feature or request help wanted Looking for support from community labels May 9, 2019
@patnaikshekhar
Copy link
Contributor

@jeffhollan @ahmelsayed I've created a pull request for this.

This is what the spec for the scaled object looks like:

spec:
  scaleTargetRef:
    deploymentName: keda-kubernetes-events-scaler-node
  triggers:
  - type: kubernetes-events
    metadata:
      fieldSelector: "metadata.namespace=events-sample,type=Warning" # Optional
      
      # Scale Down Period will check if an event has occured in the 
      # last n seconds and scale down if not
      scaleDownPeriodSeconds: "60" # Optional, Default: 60

      # Number of Events are the number of events that would be set as 
      # the target quantity of the HPA
      numberOfEvents: "3" # Optional, Defaults to 5.

It allows you to filter Kubernetes events based on a field selector. So you can filter by events with a reason such as ImagePullFailure or type such as Warning.

The Scale down period is what is used to check if there have been events in the last n seconds and based on that scale the deployment to zero. Additionally, the number of events parameter is what is used to scale up the pods and is used as the target avg value of the HPA.

preflightsiren pushed a commit to preflightsiren/keda that referenced this issue Nov 7, 2021
* Provide startingpoint for KEDA 2.0

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Use Major.Minor version

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>
@stale
Copy link

stale bot commented Nov 27, 2021

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 Nov 27, 2021
@stale stale bot removed the stale All issues that are marked as stale due to inactivity label Nov 29, 2021
@tomkerkhove tomkerkhove added feature All issues for new features that have been committed to scaler labels Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature All issues for new features that have been committed to help wanted Looking for support from community scaler
Projects
Status: To Do
Development

No branches or pull requests

3 participants