forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqueues.yaml
More file actions
executable file
·117 lines (117 loc) · 3.58 KB
/
queues.yaml
File metadata and controls
executable file
·117 lines (117 loc) · 3.58 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
apiVersion: serving.knative.dev/v1 # Current version of Knative
kind: Service
metadata:
name: scan-queue
namespace: scanners
labels:
app: scanners
spec:
template:
metadata:
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9090'
# Knative concurrency-based autoscaling (default).
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: concurrency
autoscaling.knative.dev/minScale: "1"
autoscaling.knative.dev/maxScale: "1"
spec:
timeoutSeconds: 500
containers:
- name: scan-queue
image: gcr.io/track-compliance/services/queues/scan:master-aae5946-1627998662 # {"$imagepolicy": "flux-system:scan-queue"}
---
apiVersion: serving.knative.dev/v1 # Current version of Knative
kind: Service
metadata:
name: result-queue
namespace: scanners
labels:
app: scanners
spec:
template:
metadata:
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9090'
# Knative concurrency-based autoscaling (default).
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: concurrency
autoscaling.knative.dev/minScale: "1"
autoscaling.knative.dev/maxScale: "1"
spec:
timeoutSeconds: 500
containers:
- name: result-queue
image: gcr.io/track-compliance/services/queues/result:master-aae5946-1627998666 # {"$imagepolicy": "flux-system:result-queue"}
---
apiVersion: serving.knative.dev/v1 # Current version of Knative
kind: Service
metadata:
name: ots-scan-queue
namespace: scanners
labels:
app: scanners
spec:
template:
metadata:
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9090'
# Knative concurrency-based autoscaling (default).
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: concurrency
autoscaling.knative.dev/minScale: "1"
autoscaling.knative.dev/maxScale: "1"
spec:
timeoutSeconds: 500
containers:
- name: ots-scan-queue
image: gcr.io/track-compliance/services/queues/ots-scan:master-2cf17ff-1628180931 # {"$imagepolicy": "flux-system:ots-scan-queue"}
env:
- name: PUBSUB_HOST
valueFrom:
secretKeyRef:
name: scanners
key: REDIS_HOST
- name: PUBSUB_PORT
valueFrom:
secretKeyRef:
name: scanners
key: REDIS_PORT
---
apiVersion: serving.knative.dev/v1 # Current version of Knative
kind: Service
metadata:
name: ots-result-queue
namespace: scanners
labels:
app: scanners
spec:
template:
metadata:
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9090'
# Knative concurrency-based autoscaling (default).
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: concurrency
autoscaling.knative.dev/minScale: "1"
autoscaling.knative.dev/maxScale: "1"
spec:
timeoutSeconds: 500
containers:
- name: ots-result-queue
image: gcr.io/track-compliance/services/queues/ots-result:master-2cf17ff-1628180933 # {"$imagepolicy": "flux-system:ots-result-queue"}
env:
- name: PUBSUB_HOST
valueFrom:
secretKeyRef:
name: scanners
key: REDIS_HOST
- name: PUBSUB_PORT
valueFrom:
secretKeyRef:
name: scanners
key: REDIS_PORT