Merge pull request #9596 from thotz/update-keda-latest-keda-vers
docs: update scaledobject.yaml for applicable with keda v2.5
This commit is contained in:
2 files changed
+10
-10
No files matched your search
@@ -213,11 +213,11 @@ spec:
|
||||
|
||||
### Horizontal Pod Scaling using Kubernetes Event-driven Autoscaling (KEDA)
|
||||
|
||||
Using metrics exported from the Prometheus service, the horizontal pod scaling can use the custom metrics other than CPU and memory consumption. It can be done with help of Prometheus Scaler provided by the [KEDA](https://keda.sh/docs/2.4/scalers/prometheus/). See the [KEDA deployment guide](https://keda.sh/docs/2.4/deploy/) for details.
|
||||
Using metrics exported from the Prometheus service, the horizontal pod scaling can use the custom metrics other than CPU and memory consumption. It can be done with help of Prometheus Scaler provided by the [KEDA](https://keda.sh/docs/2.5/scalers/prometheus/). See the [KEDA deployment guide](https://keda.sh/docs/2.5/deploy/) for details.
|
||||
|
||||
Following is an example to autoscale RGW:
|
||||
```YAML
|
||||
apiVersion: keda.k8s.io/v1alpha1
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: rgw-scale
|
||||
@@ -225,7 +225,7 @@ metadata:
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
kind: Deployment
|
||||
deploymentName: rook-ceph-rgw-my-store-a # deployment for the autoscaling
|
||||
name: rook-ceph-rgw-my-store-a # deployment for the autoscaling
|
||||
minReplicaCount: 1
|
||||
maxReplicaCount: 5
|
||||
triggers:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
apiVersion: keda.k8s.io/v1alpha1
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: rgw-scale
|
||||
@@ -6,14 +6,14 @@ metadata:
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
kind: Deployment
|
||||
deploymentName: rook-ceph-rgw-my-store-a
|
||||
name: 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"
|
||||
serverAddress: http://rook-prometheus.rook-ceph.svc:9090
|
||||
metricName: ceph_rgw_put_collector
|
||||
query: |
|
||||
sum(rate(ceph_rgw_put[2m]))
|
||||
threshold: "90"
|
||||
Reference in new issue
Block a user