-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauto-scaler.yml
38 lines (38 loc) · 963 Bytes
/
auto-scaler.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: keda.k8s.io/v1alpha1
kind: TriggerAuthentication
metadata:
name: trigger-auth-service-bus-orders
spec:
secretTargetRef:
- parameter: connection
name: secrets-order-management
key: servicebus-order-management-connectionstring
---
apiVersion: v1
kind: Secret
metadata:
name: secrets-order-management
labels:
app: order-processor
data:
servicebus-order-management-connectionstring: <COLOCA_TU_CADENA_DE_AZURE_SERVICE_BUS_AQUI_EN_BASE64>
---
apiVersion: keda.k8s.io/v1alpha1
kind: ScaledObject
metadata:
name: order-processor-scaler
labels:
app: order-processor
deploymentName: order-processor
spec:
scaleTargetRef:
deploymentName: order-processor
minReplicaCount: 0
maxReplicaCount: 6
triggers:
- type: azure-servicebus
metadata:
queueName: orders
queueLength: "5"
authenticationRef:
name: trigger-auth-service-bus-orders