From 0534797c7215fbba0c74388ffe962cc09efb1934 Mon Sep 17 00:00:00 2001 From: xwu2git <3871873+xwu2git@users.noreply.github.com> Date: Tue, 24 Aug 2021 16:21:53 -0700 Subject: [PATCH] remove memory-mapped /tmp/rec for stability --- .../kubernetes/helm/smtc/templates/analytics.yaml | 14 -------------- deployment/kubernetes/yaml/analytics.yaml.m4 | 14 -------------- 2 files changed, 28 deletions(-) diff --git a/deployment/kubernetes/helm/smtc/templates/analytics.yaml b/deployment/kubernetes/helm/smtc/templates/analytics.yaml index 10c711c89..4c84dd80e 100644 --- a/deployment/kubernetes/helm/smtc/templates/analytics.yaml +++ b/deployment/kubernetes/helm/smtc/templates/analytics.yaml @@ -69,26 +69,12 @@ spec: - mountPath: /etc/localtime name: timezone readOnly: true - - mountPath: /tmp/rec - name: recording {{- include "smtc.platform.mounts" $ }} - initContainers: - - image: busybox:latest - imagePullPolicy: IfNotPresent - name: init - command: ["/bin/chown","{{ $.Values.userId }}:{{ $.Values.groupId }}","/tmp/rec"] - volumeMounts: - - mountPath: /tmp/rec - name: recording volumes: - name: timezone hostPath: path: /etc/localtime type: File - - name: recording - emptyDir: - medium: Memory - sizeLimit: 150Mi {{- include "smtc.platform.volumes" $ }} {{ include "smtc.platform.accel-selector" $ }} diff --git a/deployment/kubernetes/yaml/analytics.yaml.m4 b/deployment/kubernetes/yaml/analytics.yaml.m4 index 345dee0a0..4069a41eb 100644 --- a/deployment/kubernetes/yaml/analytics.yaml.m4 +++ b/deployment/kubernetes/yaml/analytics.yaml.m4 @@ -60,26 +60,12 @@ ifelse(defn(`DISCOVER_IP_CAMERA'),`true',`dnl - mountPath: /etc/localtime name: timezone readOnly: true - - mountPath: /tmp/rec - name: recording defn(`PLATFORM_VOLUME_MOUNTS')dnl - initContainers: - - image: busybox:latest - imagePullPolicy: IfNotPresent - name: init - command: ["/bin/chown","defn(`USERID'):defn(`GROUPID')","/tmp/rec"] - volumeMounts: - - mountPath: /tmp/rec - name: recording volumes: - name: timezone hostPath: path: /etc/localtime type: File - - name: recording - emptyDir: - medium: Memory - sizeLimit: 150Mi defn(`PLATFORM_VOLUMES')dnl PLATFORM_NODE_SELECTOR(`VCAC-A')dnl ')dnl