review wyoming-whisper to use metallb on chimera
Some checks failed
/ deploy-to-homesrv01 (push) Failing after 10s

This commit is contained in:
2025-10-05 05:34:31 +00:00
parent 61babd87c5
commit b3683c2cf3
3 changed files with 42 additions and 22 deletions

View File

@@ -0,0 +1,49 @@
# currently hosted on chimera k3s cluster
# Add nodeSelector to schedule the pod on specific nodes
# Example: only schedule on nodes labeled with kubernetes.io/hostname=chimera
# Adjust the key/value as needed for your cluster
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: casa-services
name: wyoming-whisper
labels:
app: wyoming-whisper
spec:
replicas: 1
selector:
matchLabels:
app: wyoming-whisper
template:
metadata:
labels:
app: wyoming-whisper
spec:
nodeSelector:
kubernetes.io/hostname: chimera-flashgordon
tolerations:
- key: "dedicated"
value: "reserved"
effect: "NoSchedule"
containers:
- name: wyoming-whisper
image: rhasspy/wyoming-whisper
volumeMounts:
- mountPath: /data
name: data
args:
- --model
- small-int8
- --language
- pt
- --beam-size
- "4"
- --debug
ports:
- containerPort: 10300
volumes:
- name: data
persistentVolumeClaim:
claimName: wyoming-whisper

View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: wyoming-whisper
namespace: casa-services
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: wyoming-whisper
namespace: casa-services
labels:
app: wyoming-whisper
spec:
type: LoadBalancer
loadBalancerIP: 192.168.14.201 # requires metallb
selector:
app: wyoming-whisper
ports:
- port: 10300
targetPort: 10300