51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: whisper-api
|
|
namespace: curio
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: whisper-api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: whisper-api
|
|
spec:
|
|
containers:
|
|
- name: whisper
|
|
image: fedirzh/faster-whisper-server:latest-cpu # Force CPU mode for cluster stability
|
|
ports:
|
|
- containerPort: 8000
|
|
resources:
|
|
requests:
|
|
cpu: "250m"
|
|
memory: "512Mi"
|
|
limits:
|
|
cpu: "1"
|
|
memory: "2Gi" # Increased for safe model loading
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8000
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 10
|
|
env:
|
|
- name: WHISPER_MODEL
|
|
value: "tiny"
|
|
- name: WHISPER_TASK
|
|
value: "transcribe"
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: whisper-api
|
|
namespace: curio
|
|
spec:
|
|
selector:
|
|
app: whisper-api
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8000
|