Whisper-webui default-parameters writable

This commit is contained in:
Ruben Hensen
2025-03-04 15:30:54 +01:00
parent 6bbb876170
commit 0480251f9f
+13 -5
View File
@@ -22,6 +22,15 @@ spec:
labels: labels:
io.kompose.service: app io.kompose.service: app
spec: spec:
initContainers:
- name: config-init
image: busybox
command: ['sh', '-c', 'cp /config-readonly/default_parameters.yaml /Whisper-WebUI/configs/default_parameters.yaml']
volumeMounts:
- name: config-volume-readonly
mountPath: /config-readonly
- name: config-volume-writable
mountPath: /config-writable
containers: containers:
- command: - command:
- python - python
@@ -42,9 +51,8 @@ spec:
name: app-claim0 name: app-claim0
- mountPath: /Whisper-WebUI/outputs - mountPath: /Whisper-WebUI/outputs
name: app-claim1 name: app-claim1
- name: config-volume - name: config-volume-writable
mountPath: /Whisper-WebUI/configs/default_parameters.yaml mountPath: /Whisper-WebUI/configs
subPath: default_parameters.yaml
restartPolicy: Always restartPolicy: Always
volumes: volumes:
- name: app-claim0 - name: app-claim0
@@ -53,6 +61,6 @@ spec:
- name: app-claim1 - name: app-claim1
persistentVolumeClaim: persistentVolumeClaim:
claimName: app-claim1 claimName: app-claim1
- name: config-volume - name: config-volume-readonly
configMap: configMap:
name: whisper-webui-config name: whisper-webui-config