-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea61eb9
commit df12f97
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: keda.sh/v1alpha1 | ||
kind: ScaledObject | ||
metadata: | ||
name: prometheus-scaledobject | ||
namespace: deafult | ||
spec: | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: dev | ||
triggers: | ||
- type: prometheus | ||
metadata: | ||
# Required | ||
serverAddress: http://prometheus-server.default.svc.cluster.local:80 | ||
metricName: promhttp_metric_handler_requests_total | ||
threshold: '50' | ||
query: sum(promhttp_metric_handler_requests_total{code="200",app_kubernetes_io_instance="dev"}) | ||
idleReplicaCount: 0 | ||
minReplicaCount: 2 | ||
maxReplicaCount: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
### KEDA | ||
|
||
KEDA is a Kubernetes-based Event Driven Autoscaler. With KEDA, you can drive the scaling of any container in Kubernetes based on the number of events needing to be processed. | ||
|