Skip to content

Commit a5fe058

Browse files
committed
kube: aks: Add daily Trigger service
This change adds a daily Trigger service to the K8s-based deployment which is used in e.g. Maestro Production instance. Configuration values in use provide an actual fix to the user-reported issue instead of being arbitrarily chosen for testing purposes as in the case of Docker Compose-based deployment. This change might need a revisit to fold copied and pasted container configuration for the Trigger service into a reusable template. Resolves: kernelci/kernelci-core#2857 Signed-off-by: Paweł Wieczorek <pawiecz@collabora.com>
1 parent e28f9d4 commit a5fe058

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

kube/aks/trigger.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
- --settings=/secrets/kernelci.toml
3939
- --yaml-config=/config
4040
- run
41-
- --trees=!kernelci
41+
- --trees=!kernelci,chromiumos
4242
- --name=trigger
4343
env:
4444
- name: KCI_API_TOKEN
@@ -55,6 +55,32 @@ spec:
5555
mountPath: /secrets
5656
- name: config-volume
5757
mountPath: /config
58+
- name: trigger_daily
59+
image: kernelci/kernelci:pipeline@sha256:bb01424c4dedcd2ffa87cef225b09116cf874bc2b91fc63ed6d993d6fc5c43cb
60+
imagePullPolicy: Always
61+
command:
62+
- ./src/trigger.py
63+
- --settings=/secrets/kernelci.toml
64+
- --yaml-config=/config
65+
- run
66+
- --poll-period=86400
67+
- --trees=chromiumos
68+
- --name=trigger_daily
69+
env:
70+
- name: KCI_API_TOKEN
71+
valueFrom:
72+
secretKeyRef:
73+
name: kernelci-api-token
74+
key: token
75+
resources:
76+
requests:
77+
memory: "128Mi"
78+
cpu: "500m"
79+
volumeMounts:
80+
- name: secrets
81+
mountPath: /secrets
82+
- name: config-volume
83+
mountPath: /config
5884
volumes:
5985
- name: secrets
6086
secret:

0 commit comments

Comments
 (0)