Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add details about HPA via KEDA
By default HPA can use details about memory or CPU consumption for autoscaling, but also it can use custom metrics as well. There are alot provides supports HPA via customer and one of them is KEDA project. Here it is done with help of Prometheus Scaler Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
- Loading branch information
Showing
2 changed files
with
46 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
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,19 @@ | ||
apiVersion: keda.k8s.io/v1alpha1 | ||
kind: ScaledObject | ||
metadata: | ||
name: rgw-scale | ||
namespace: rook-ceph | ||
spec: | ||
scaleTargetRef: | ||
kind: Deployment | ||
deploymentName: rook-ceph-rgw-my-store-a | ||
minReplicaCount: 1 | ||
maxReplicaCount: 5 | ||
triggers: | ||
- type: prometheus | ||
metadata: | ||
serverAddress: http://rook-prometheus.rook-ceph.svc:9090 | ||
metricName: ceph_rgw_put_collector | ||
query: | | ||
sum(rate(ceph_rgw_put[2m])) | ||
threshold: "90" |