-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployone.yml
61 lines (60 loc) · 1.07 KB
/
deployone.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
apiVersion: v1
kind: Service
metadata:
name: durable-keda
namespace: default
spec:
selector:
app: durable-keda
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: durable-keda
namespace: default
labels:
app: durable-keda
spec:
replicas: 1
selector:
matchLabels:
app: durable-keda
template:
metadata:
labels:
app: durable-keda
spec:
containers:
- name: durable-keda
image: kedacore/durable-keda:latest
ports:
- containerPort: 80
env:
envFrom:
- secretRef:
name: durable-keda
---
apiVersion: keda.k8s.io/v1alpha1
kind: ScaledObject
metadata:
name: durable-keda
namespace: default
labels:
deploymentName: durable-keda
spec:
scaleTargetRef:
deploymentName: durable-keda
pollingInterval: 5
cooldownPeriod: 30
minReplicaCount: 1
triggers:
- type: external
metadata:
scalerAddress: durable-external-scaler-service.keda.svc.cluster.local:5000
---