From bc8bc397c987a3f63dd5f454f19c029f887ac3c3 Mon Sep 17 00:00:00 2001 From: David Young Date: Mon, 20 May 2024 21:49:38 +1200 Subject: [PATCH] Apply fix to emby too Signed-off-by: David Young --- charts/other/myprecious/Chart.yaml | 2 +- charts/other/myprecious/values.yaml | 37 ++++++++++++++++++++++++----- 2 files changed, 32 insertions(+), 7 deletions(-) diff --git a/charts/other/myprecious/Chart.yaml b/charts/other/myprecious/Chart.yaml index c5607ef7e..f26313f1f 100644 --- a/charts/other/myprecious/Chart.yaml +++ b/charts/other/myprecious/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.32762-pre-04 +version: 1.0.32762-pre-05 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/other/myprecious/values.yaml b/charts/other/myprecious/values.yaml index 0e7f8848b..bedf5d37a 100644 --- a/charts/other/myprecious/values.yaml +++ b/charts/other/myprecious/values.yaml @@ -5375,15 +5375,10 @@ emby: volumeSpec: persistentVolumeClaim: claimName: config-emby-ssd - transcode-temp: - enabled: true - type: emptyDir - mountPath: /config/transcoding-temp - sizeLimit: 50Gi # Don't allow > 10GB in transcoding files transcode: # in case users use /tmp enabled: true type: custom - mountPath: /config/transcoding-temp + mountPath: /transcode volumeSpec: *volumespec_ephemeral_volume_50g elfbot: enabled: "true" @@ -5407,6 +5402,36 @@ emby: initContainers: bootstrap: *bootstrap update-dns: *update_dns_on_init + setup: + image: *tooling_image + command: + - /bin/bash + - -c + - | + set -x + set -e + + # Remove /config/transcode if it exists (could be old transcode data in there) + if [[ -f /config/transcode ]]; then + rm -rf /config/transcode + fi + + # Make symlinks for various variations of transcode paths to /transcode + ln -sf /transcode /config/transcodes + ln -sf /transcode /config/transcode + + # Also keep cache in /transcode + mkdir -p /transcode/cache + rm -rf /config/cache + ln -sf /transcode/cache /config/ + + volumeMounts: + - mountPath: /config + name: config + - mountPath: /transcode + name: transcode + securityContext: *default_securitycontext + resources: *default_resources additionalContainers: clean-up-dns: *clean_up_dns_on_termination ingress: