Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
autoscaling-microservices
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mohamadbashar.disoki
autoscaling-microservices
Commits
a9009d87
Commit
a9009d87
authored
Oct 07, 2023
by
Mohamad Bashar Desoki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ADD KEDA and test it (general case)
parent
08d8655c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
README.md
k8s/Cluster/KEDA/README.md
+17
-0
hpa-nginx-ingress-requests.yaml
k8s/Cluster/KEDA/hpa-nginx-ingress-requests.yaml
+19
-0
img.png
k8s/Cluster/KEDA/img.png
+0
-0
No files found.
k8s/Cluster/KEDA/README.md
0 → 100644
View file @
a9009d87
## Deploy KEDA via Helm
Install
[
Helm3
](
https://helm.sh/docs/intro/install/
)
on your local environment
Install KEDA component in the KEDA namespace on kubernetes cluster
```
# https://keda.sh/docs/2.6/deploy/#helm
kubectl create ns keda
helm repo add kedacore https://kedacore.github.io/charts
helm repo update
helm upgrade --install keda kedacore/keda -n keda
```
![
https://blog.cloudacode.com/how-to-autoscale-kubernetes-pods-based-on-ingress-request-prometheus-keda-and-k6-84ae4250a9f3
](
img.png
)
k8s/Cluster/KEDA/hpa-nginx-ingress-requests.yaml
0 → 100644
View file @
a9009d87
apiVersion
:
keda.sh/v1alpha1
kind
:
ScaledObject
metadata
:
name
:
v1-ingress-requests
spec
:
scaleTargetRef
:
kind
:
Deployment
# Optional. Default: Deployment
name
:
ms-demo
# Mandatory. Must be in the same namespace as the ScaledObject
pollingInterval
:
5
# Optional. Default: 30 seconds
cooldownPeriod
:
15
# Optional. Default: 300 seconds
minReplicaCount
:
1
# Optional. Default: 0
maxReplicaCount
:
5
# Optional. Default: 100
triggers
:
-
type
:
prometheus
metadata
:
serverAddress
:
http://prometheus-service.monitoring.svc:9090
metricName
:
nginx_ingress_controller_nginx_process_requests_total
threshold
:
'
5'
query
:
sum(rate(nginx_ingress_controller_requests{path="/fib"}[2m]))
\ No newline at end of file
k8s/Cluster/KEDA/img.png
0 → 100644
View file @
a9009d87
156 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment