Skip to content

Commit

Permalink
Add Keda to knowledge list
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjith-ka committed Aug 8, 2023
1 parent ea61eb9 commit df12f97
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions minikube/dev/kedaScale.yaml
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
4 changes: 4 additions & 0 deletions minikube/keda/Readme.md
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.

0 comments on commit df12f97

Please sign in to comment.