diff options
author | Mandeep Khinda <Mandeep.Khinda@amdocs.com> | 2018-06-27 13:59:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-06-27 13:59:09 +0000 |
commit | c0937f9b63acb4d86ec445f73e6ffe3dfb96d7a3 (patch) | |
tree | 1bdbd4ad92426f4798614638ce570343c0c8bb21 /kubernetes/robot/templates/deployment.yaml | |
parent | 1869736aef02d1a37a210f7c29d6f1c04c5c1fc6 (diff) | |
parent | 1a8ec773a8f7a8eadd6f2450a15f1c94031d7a1c (diff) |
Merge "storing robot logs on the pv"
Diffstat (limited to 'kubernetes/robot/templates/deployment.yaml')
-rw-r--r-- | kubernetes/robot/templates/deployment.yaml | 11 |
1 files changed, 10 insertions, 1 deletions
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 |