-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding OpenShift Custom Metrics Autoscaler Operator to OpenShift Prod
The Ecological Forecasting project wishes to scale up their consumers of rabbitmq queues based on the number of messages in the queue. This is an out-of-the-box feature of the OpenShift Custom Metrics Autoscaler Operator. The ScaledObject CRD provided by this operator will allow us to specify the Deployment we wish to scale, the min and max replica count, and the RabbitMQ queue connection details.
- Loading branch information
Showing
3 changed files
with
20 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
15 changes: 15 additions & 0 deletions
15
clusters/nerc-ocp-prod/openshift-custom-metrics-autoscaler-controller/application.yaml
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,15 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: openshift-custom-metrics-autoscaler-controller | ||
labels: | ||
nerc.mghpcc.org/sync-policy: common | ||
spec: | ||
project: default | ||
source: | ||
repoURL: https://github.com/ocp-on-nerc/nerc-ocp-config.git | ||
targetRevision: HEAD | ||
path: openshift-custom-metrics-autoscaler-controller/overlays/nerc-ocp-prod | ||
destination: | ||
name: nerc-ocp-prod | ||
namespace: openshift-keda |
4 changes: 4 additions & 0 deletions
4
clusters/nerc-ocp-prod/openshift-custom-metrics-autoscaler-controller/kustomization.yaml
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,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- application.yaml |