[VID] Create an empty dir for cache 76/119376/5
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Tue, 16 Mar 2021 14:06:33 +0000 (15:06 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 24 Mar 2021 06:27:09 +0000 (06:27 +0000)
VID needs a cache folder.
Currently, this caching feature doesn't work as cache folder can't be
accessed.
This patch allows the cache to be accessed.

Issue-ID: VID-960
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: Iea442f115e01919e82b14674249695d21c3197fe

kubernetes/vid/templates/deployment.yaml

index d1b4bcd..478b442 100644 (file)
@@ -141,6 +141,8 @@ spec:
           - mountPath: /tmp/logback.xml
             name: vid-logback
             subPath: logback.xml
+          - mountPath: /opt/app/vid
+            name: vid-cache
           resources:
 {{ include "common.resources" . | indent 12 }}
         {{- if .Values.nodeSelector }}
@@ -170,6 +172,8 @@ spec:
         - name: filebeat-conf
           configMap:
             name: {{ include "common.fullname" . }}-filebeat-configmap
+        - name: vid-cache
+          emptyDir: {}
         - name: vid-logs
           emptyDir: {}
         - name: vid-data-filebeat