Skip to content

Commit

Permalink
remove memory-mapped /tmp/rec for stability
Browse files Browse the repository at this point in the history
  • Loading branch information
xwu2git committed Aug 24, 2021
1 parent 1cfedb4 commit 0534797
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
14 changes: 0 additions & 14 deletions deployment/kubernetes/helm/smtc/templates/analytics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" $ }}

Expand Down
14 changes: 0 additions & 14 deletions deployment/kubernetes/yaml/analytics.yaml.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0534797

Please sign in to comment.