summaryrefslogtreecommitdiffstats
path: root/kubernetes/robot/templates/deployment.yaml
diff options
context:
space:
mode:
authorMandeep Khinda <Mandeep.Khinda@amdocs.com>2018-06-27 13:59:09 +0000
committerGerrit Code Review <gerrit@onap.org>2018-06-27 13:59:09 +0000
commitc0937f9b63acb4d86ec445f73e6ffe3dfb96d7a3 (patch)
tree1bdbd4ad92426f4798614638ce570343c0c8bb21 /kubernetes/robot/templates/deployment.yaml
parent1869736aef02d1a37a210f7c29d6f1c04c5c1fc6 (diff)
parent1a8ec773a8f7a8eadd6f2450a15f1c94031d7a1c (diff)
Merge "storing robot logs on the pv"
Diffstat (limited to 'kubernetes/robot/templates/deployment.yaml')
-rw-r--r--kubernetes/robot/templates/deployment.yaml11
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