Increase /dev/shm size to fix chrome crashes 95/71195/2
authorGary Wu <gary.i.wu@huawei.com>
Wed, 24 Oct 2018 23:12:53 +0000 (16:12 -0700)
committerGary Wu <gary.i.wu@huawei.com>
Wed, 24 Oct 2018 23:19:11 +0000 (23:19 +0000)
Chrome was randomly crashing while running Portal ETE
test suites.  This appears to be caused by /dev/shm being
too small in the container.  This patch increases the
size of /dev/shm in the robot container.

Change-Id: I79b6c3b05cc817b59db68327978800d7f80bd3f9
Issue-ID: INT-586
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
kubernetes/robot/templates/deployment.yaml

index e50620f..e230f4c 100644 (file)
@@ -49,6 +49,8 @@ spec:
           initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
           periodSeconds: {{ .Values.readiness.periodSeconds }}
         volumeMounts:
+        - name: dshm
+          mountPath: /dev/shm
         - name: localtime
           mountPath: /etc/localtime
           readOnly: true
@@ -74,6 +76,9 @@ spec:
     {{- else }}
         emptyDir: {}
     {{- end }}
+      - name: dshm
+        emptyDir:
+          medium: Memory
       - name: localtime
         hostPath:
           path: /etc/localtime