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

kubernetes-workload scaler: ignore terminated pods #605

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion content/docs/2.6/scalers/kubernetes-workload.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title = "Kubernetes Workload"
layout = "scaler"
availability = "v2.4+"
maintainer = "Community"
description = "Scale applications based on the amount of pods which matches the given selectors."
description = "Scale applications based on the count of running pods that match the given selectors."
go_file = "kubernetes_workload_scaler"
+++

Expand All @@ -24,6 +24,8 @@ triggers:

> 💡 **Note:** The search scope is limited to the namespace where the `ScaledObject` is deployed.

The count excludes terminated pods, i.e. [pod status](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#podstatus-v1-core) `phase` equals `Succeeded` or `Failed`.

### Authentication Parameters

The own KEDA's identity is used to list the pods, so no extra configuration is needed here.
Expand Down