Increase /dev/shm size to fix chrome crashes
[oom.git] / kubernetes / robot / templates / deployment.yaml
index cebc7f5..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
@@ -57,7 +59,7 @@ spec:
         - name: robot-logs
           mountPath: /share/logs
         resources:
-{{ toYaml .Values.resources | indent 12 }}
+{{ include "common.resources" . | indent 12 }}
         {{- if .Values.nodeSelector }}
         nodeSelector:
 {{ toYaml .Values.nodeSelector | indent 10 }}
@@ -74,6 +76,9 @@ spec:
     {{- else }}
         emptyDir: {}
     {{- end }}
+      - name: dshm
+        emptyDir:
+          medium: Memory
       - name: localtime
         hostPath:
           path: /etc/localtime