Skip to content

Commit 03e64e0

Browse files
committed
Prevent warning for MOJO_TMPDIR in webui logs
create a mount point for /var/lib/openqa/share/factory which is always initialize an empty dir. Otherwise the openqa-webui service reports that the file already exists. Also add some delay for the readinessProbe to let some time to service to get ready. Signed-off-by: Ioannis Bonatakis <[email protected]>
1 parent 1729472 commit 03e64e0

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed
111 Bytes
Binary file not shown.
Binary file not shown.

container/helm/charts/webui/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ spec:
105105
- name: config
106106
mountPath: /data/conf
107107
readOnly: true
108+
- name: share-factory
109+
mountPath: /var/lib/openqa/share/factory
108110
env:
109111
- name: MODE
110112
value: "webui"
@@ -117,10 +119,16 @@ spec:
117119
readinessProbe:
118120
exec:
119121
command: ["curl", "-f", "http://localhost:9526"]
122+
# Give the app 15 seconds to start before probing
123+
initialDelaySeconds: 15
124+
# Give the probe 5 seconds to respond
125+
timeoutSeconds: 5
120126
restartPolicy: Always
121127
volumes:
122128
- name: data
123129
emptyDir: {}
130+
- name: share-factory
131+
emptyDir: {}
124132
- name: config
125133
configMap:
126134
name: {{ include "webui.fullname" . }}-configmap

0 commit comments

Comments
 (0)