Files
k8scd/whisper-webui/app-deployment.yaml
T
2025-03-04 15:36:19 +01:00

68 lines
1.9 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.34.0 (cbf2835db)
labels:
io.kompose.service: app
name: app
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: app
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.34.0 (cbf2835db)
labels:
io.kompose.service: app
spec:
initContainers:
- name: config-init
image: busybox
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
mountPath: /config-readonly
- name: configs-dir
mountPath: /whisper-configs
containers:
- command:
- python
- app.py
- --server_port
- "7860"
- --server_name
- 0.0.0.0
image: hebury/whisper-webui:latest
name: app
ports:
- containerPort: 7860
protocol: TCP
stdin: true
tty: true
volumeMounts:
- mountPath: /Whisper-WebUI/models
name: app-claim0
- mountPath: /Whisper-WebUI/outputs
name: app-claim1
- name: configs-dir
mountPath: /Whisper-WebUI/configs
restartPolicy: Always
volumes:
- name: app-claim0
persistentVolumeClaim:
claimName: app-claim0
- name: app-claim1
persistentVolumeClaim:
claimName: app-claim1
- name: config-volume
configMap:
name: whisper-webui-config
- name: configs-dir
emptyDir: {}