From 81e845cc61fb8c9b3fcf04e0ae1792b8071656a8 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Tue, 4 Mar 2025 15:36:19 +0100 Subject: [PATCH] Whisper-webui default-parameters writable 5 --- whisper-webui/app-deployment.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/whisper-webui/app-deployment.yaml b/whisper-webui/app-deployment.yaml index af31fe9..2ac1e16 100644 --- a/whisper-webui/app-deployment.yaml +++ b/whisper-webui/app-deployment.yaml @@ -25,12 +25,12 @@ spec: initContainers: - name: config-init image: busybox - command: ['sh', '-c', 'cp /config-readonly/default_parameters.yaml /config-writable/'] + command: ['sh', '-c', 'mkdir -p /whisper-configs && cp /config-readonly/default_parameters.yaml /whisper-configs/ && chmod 666 /whisper-configs/default_parameters.yaml'] volumeMounts: - - name: config-volume-readonly + - name: config-volume mountPath: /config-readonly - - name: config-volume-writable - mountPath: /config-writable + - name: configs-dir + mountPath: /whisper-configs containers: - command: - python @@ -51,7 +51,7 @@ spec: name: app-claim0 - mountPath: /Whisper-WebUI/outputs name: app-claim1 - - name: config-volume-writable + - name: configs-dir mountPath: /Whisper-WebUI/configs restartPolicy: Always volumes: @@ -61,8 +61,8 @@ spec: - name: app-claim1 persistentVolumeClaim: claimName: app-claim1 - - name: config-volume-readonly + - name: config-volume configMap: name: whisper-webui-config - - name: config-volume-writable + - name: configs-dir emptyDir: {} \ No newline at end of file