99 lines
2.3 KiB
YAML
99 lines
2.3 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: whisper
|
|
app.kubernetes.io/name: whisper
|
|
app.kubernetes.io/part-of: home-assistant
|
|
name: whisper
|
|
spec:
|
|
ports:
|
|
- port: 10300
|
|
name: wyoming
|
|
selector:
|
|
app.kubernetes.io/component: whisper
|
|
app.kubernetes.io/name: whisper
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: whisper
|
|
app.kubernetes.io/name: whisper
|
|
app.kubernetes.io/part-of: home-assistant
|
|
name: whisper
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: whisper
|
|
app.kubernetes.io/name: whisper
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: whisper
|
|
app.kubernetes.io/name: whisper
|
|
app.kubernetes.io/part-of: home-assistant
|
|
spec:
|
|
affinity:
|
|
nodeAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 100
|
|
preference:
|
|
matchExpressions:
|
|
- key: kubernetes.io/arch
|
|
operator: In
|
|
values:
|
|
- amd64
|
|
containers:
|
|
- name: whisper
|
|
image: docker.io/rhasspy/wyoming-whisper:1.0.0
|
|
args:
|
|
- --model=base
|
|
- --language=en
|
|
env:
|
|
- name: HF_HOME
|
|
value: /data/hf.cache
|
|
ports:
|
|
- containerPort: 10300
|
|
name: wyoming
|
|
readinessProbe: &probe
|
|
tcpSocket:
|
|
port: 10300
|
|
failureThreshold: 3
|
|
periodSeconds: 60
|
|
successThreshold: 1
|
|
timeoutSeconds: 1
|
|
startupProbe:
|
|
<<: *probe
|
|
failureThreshold: 30
|
|
periodSeconds: 3
|
|
initialDelaySeconds: 3
|
|
securityContext:
|
|
readOnlyRootFilesystem: true
|
|
runAsUser: 300
|
|
runAsGroup: 300
|
|
volumeMounts:
|
|
- mountPath: /tmp
|
|
name: tmp
|
|
subPath: tmp
|
|
- name: whisper-data
|
|
mountPath: /data
|
|
subPath: data
|
|
securityContext:
|
|
fsGroup: 300
|
|
volumes:
|
|
- name: tmp
|
|
emptyDir: {}
|
|
- name: whisper-data
|
|
ephemeral:
|
|
volumeClaimTemplate:
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 5Gi
|
|
|