Skip to content

Commit ef82e55

Browse files
authored
Update gke queues.yaml to match bases
1 parent 4885f3f commit ef82e55

1 file changed

Lines changed: 78 additions & 4 deletions

File tree

app/gke/knative/config/queues.yaml

Lines changed: 78 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ spec:
1515
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
1616
autoscaling.knative.dev/metric: concurrency
1717
autoscaling.knative.dev/minScale: "1"
18-
autoscaling.knative.dev/maxScale: "2"
18+
autoscaling.knative.dev/maxScale: "1"
1919
spec:
2020
timeoutSeconds: 500
2121
containers:
2222
- name: scan-queue
23-
image: gcr.io/track-compliance/services/scan-queue
23+
image: gcr.io/track-compliance/services/scan-queue:master-7039d40-1625850351 # {"$imagepolicy": "flux-system:scan-queue"}
2424

2525
---
2626

@@ -41,9 +41,83 @@ spec:
4141
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
4242
autoscaling.knative.dev/metric: concurrency
4343
autoscaling.knative.dev/minScale: "1"
44-
autoscaling.knative.dev/maxScale: "2"
44+
autoscaling.knative.dev/maxScale: "1"
4545
spec:
4646
timeoutSeconds: 500
4747
containers:
4848
- name: result-queue
49-
image: gcr.io/track-compliance/services/result-queue
49+
image: gcr.io/track-compliance/services/result-queue:master-7039d40-1625850351 # {"$imagepolicy": "flux-system:result-queue"}
50+
51+
---
52+
53+
apiVersion: serving.knative.dev/v1 # Current version of Knative
54+
kind: Service
55+
metadata:
56+
name: ots-scan-queue
57+
namespace: scanners
58+
labels:
59+
app: scanners
60+
spec:
61+
template:
62+
metadata:
63+
annotations:
64+
prometheus.io/scrape: 'true'
65+
prometheus.io/port: '9090'
66+
# Knative concurrency-based autoscaling (default).
67+
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
68+
autoscaling.knative.dev/metric: concurrency
69+
autoscaling.knative.dev/minScale: "1"
70+
autoscaling.knative.dev/maxScale: "1"
71+
spec:
72+
timeoutSeconds: 500
73+
containers:
74+
- name: ots-scan-queue
75+
image: gcr.io/track-compliance/services/ots-scan-queue:master-7039d40-1625850351 # {"$imagepolicy": "flux-system:ots-scan-queue"}
76+
env:
77+
- name: REDIS_HOST
78+
valueFrom:
79+
secretKeyRef:
80+
name: scanners
81+
key: REDIS_HOST
82+
- name: REDIS_PORT
83+
valueFrom:
84+
secretKeyRef:
85+
name: scanners
86+
key: REDIS_PORT
87+
88+
---
89+
90+
apiVersion: serving.knative.dev/v1 # Current version of Knative
91+
kind: Service
92+
metadata:
93+
name: ots-result-queue
94+
namespace: scanners
95+
labels:
96+
app: scanners
97+
spec:
98+
template:
99+
metadata:
100+
annotations:
101+
prometheus.io/scrape: 'true'
102+
prometheus.io/port: '9090'
103+
# Knative concurrency-based autoscaling (default).
104+
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
105+
autoscaling.knative.dev/metric: concurrency
106+
autoscaling.knative.dev/minScale: "1"
107+
autoscaling.knative.dev/maxScale: "1"
108+
spec:
109+
timeoutSeconds: 500
110+
containers:
111+
- name: ots-result-queue
112+
image: gcr.io/track-compliance/services/ots-result-queue:master-7039d40-1625850351 # {"$imagepolicy": "flux-system:ots-result-queue"}
113+
env:
114+
- name: REDIS_HOST
115+
valueFrom:
116+
secretKeyRef:
117+
name: scanners
118+
key: REDIS_HOST
119+
- name: REDIS_PORT
120+
valueFrom:
121+
secretKeyRef:
122+
name: scanners
123+
key: REDIS_PORT

0 commit comments

Comments
 (0)