From e90c36f25550a99b1ce6a5813a368b0dc7a05470 Mon Sep 17 00:00:00 2001 From: Jiffin Tony Thottan Date: Tue, 18 Jan 2022 18:32:47 +0530 Subject: [PATCH] docs: update scaledobject.yaml for applicable with keda v2.5 Even though mention about keda 2.x version, the scaledObject.yaml or rgw-keda.yaml referring to older keda CRs Signed-off-by: Jiffin Tony Thottan --- Documentation/ceph-monitoring.md | 6 +++--- deploy/examples/monitoring/keda-rgw.yaml | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Documentation/ceph-monitoring.md b/Documentation/ceph-monitoring.md index 97b553ec2..579ad4c25 100644 --- a/Documentation/ceph-monitoring.md +++ b/Documentation/ceph-monitoring.md @@ -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: diff --git a/deploy/examples/monitoring/keda-rgw.yaml b/deploy/examples/monitoring/keda-rgw.yaml index de24eea28..915cea4d2 100644 --- a/deploy/examples/monitoring/keda-rgw.yaml +++ b/deploy/examples/monitoring/keda-rgw.yaml @@ -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"