Skip to content

Commit

Permalink
BC-5170 - change keda config
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenWaysDP committed Oct 24, 2023
1 parent 5e05e10 commit 1623cd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 26 deletions.
3 changes: 3 additions & 0 deletions ansible/roles/schulcloud-server-core/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,6 @@
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: preview-generator-scaled-object.yml.j2
when:
- KEDA_ENABLED is defined and KEDA_ENABLED|bool
- SCALED_PREVIEW_GENERATOR_ENABLED is defined and SCALED_PREVIEW_GENERATOR_ENABLED|bool
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
apiVersion: onepassword.com/v1
kind: OnePasswordItem
metadata:
name: keda-secret
namespace: {{ NAMESPACE }}
labels:
app: keda
spec:
itemPath: "vaults/{{ ONEPASSWORD_OPERATOR_VAULT }}/items/keda"
---
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
name: keda-trigger-auth-rabbitmq-conn
namespace: {{ NAMESPACE }}
spec:
secretTargetRef:
- parameter: host
name: keda-secret
key: amqp-url
---
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
Expand All @@ -27,11 +7,9 @@ metadata:
spec:
scaleTargetRef:
name: preview-generator-deployment
pollingInterval: 1
cooldownPeriod: 300
idleReplicaCount: 0
minReplicaCount: 0
maxReplicaCount: 1
idleReplicaCount: 1
minReplicaCount: 1
maxReplicaCount: 5
triggers:
- type: rabbitmq
metadata:
Expand All @@ -40,4 +18,4 @@ spec:
mode: QueueLength
value: "1"
authenticationRef:
name: keda-trigger-auth-rabbitmq-conn
name: rabbitmq-trigger-auth

0 comments on commit 1623cd5

Please sign in to comment.