Skip to content

Commit

Permalink
Merge pull request #787 from xwu2git/master
Browse files Browse the repository at this point in the history
remove memory-mapped /tmp/rec for stability
  • Loading branch information
xwu2git authored Aug 24, 2021
2 parents 1cfedb4 + 0534797 commit b774b2b
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 b774b2b

Please sign in to comment.