From 1a8ec773a8f7a8eadd6f2450a15f1c94031d7a1c Mon Sep 17 00:00:00 2001 From: Mandeep Khinda Date: Thu, 17 May 2018 20:08:42 +0000 Subject: storing robot logs on the pv so we don't lose test history anymore after the pod restarts Issue-ID: OOM-875 Change-Id: Ic1e0eb0263f7a346866a58c674cab1da29e52608 Signed-off-by: Mandeep Khinda --- kubernetes/robot/templates/deployment.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'kubernetes/robot/templates/deployment.yaml') diff --git a/kubernetes/robot/templates/deployment.yaml b/kubernetes/robot/templates/deployment.yaml index 0b658093bf..e5cc1d3a0f 100644 --- a/kubernetes/robot/templates/deployment.yaml +++ b/kubernetes/robot/templates/deployment.yaml @@ -77,12 +77,14 @@ spec: subPath: sdngc_interface.robot - name: robot-resources mountPath: /var/opt/OpenECOMP_ETE/robot/resources/oof_interface.robot - subPath: oof_interface.robot + subPath: oof_interface.robot - name: robot-lighttpd-authorization mountPath: /etc/lighttpd/authorization subPath: authorization - name: demodir mountPath: /share + - name: robot-logs + mountPath: /share/logs resources: {{ toYaml .Values.resources | indent 12 }} {{- if .Values.nodeSelector }} @@ -94,6 +96,13 @@ spec: {{ toYaml .Values.affinity | indent 10 }} {{- end }} volumes: + {{- if .Values.persistence.enabled }} + - name: robot-logs + persistentVolumeClaim: + claimName: {{ include "common.fullname" . }} + {{- else }} + emptyDir: {} + {{- end }} - name: localtime hostPath: path: /etc/localtime -- cgit 1.2.3-korg