Compare commits

...

2 Commits

Author SHA1 Message Date
Morten Olsen
a96a622222 updates 2025-09-12 11:28:23 +02:00
Morten Olsen
249447b4ba enable external baikal 2025-09-11 22:19:25 +02:00
5 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
apiVersion: homelab.mortenolsen.pro/v1
kind: ExternalHttpService
metadata:
name: '{{ .Release.Name }}'
spec:
environment: '{{ .Values.globals.environment }}'
subdomain: '{{ .Values.subdomain }}'
destination:
host: '{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local'
port:
number: 80

View File

@@ -15,6 +15,7 @@ spec:
app: "{{ .Release.Name }}"
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: "{{ .Release.Name }}"

View File

@@ -0,0 +1,59 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Release.Name }}-piper"
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
app: "{{ .Release.Name }}-piper"
template:
metadata:
labels:
app: "{{ .Release.Name }}-piper"
spec:
hostNetwork: true
containers:
- name: "{{ .Release.Name }}-piper"
image: "{{ .Values.piper.image.repository }}:{{ .Values.piper.image.tag }}"
imagePullPolicy: "{{ .Values.piper.image.pullPolicy }}"
args:
- --piper
- /usr/share/piper/piper
- --data-dir
- /usr/share/piper-voices
- --voice
- "{{ .Values.piper.model }}"
env:
- name: TZ
value: "{{ .Values.globals.timezone }}"
ports:
- name: http
containerPort: 10200
protocol: TCP
livenessProbe:
tcpSocket:
port: http
readinessProbe:
tcpSocket:
port: http
---
apiVersion: v1
kind: Service
metadata:
name: "{{ .Release.Name }}-piper"
labels:
app: "{{ .Release.Name }}-piper"
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 10200
protocol: TCP
name: http
selector:
app: "{{ .Release.Name }}-piper"

View File

@@ -0,0 +1,57 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Release.Name }}-whisper"
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
app: "{{ .Release.Name }}-whisper"
template:
metadata:
labels:
app: "{{ .Release.Name }}-whisper"
spec:
hostNetwork: true
containers:
- name: "{{ .Release.Name }}-whisper"
image: "{{ .Values.whisper.image.repository }}:{{ .Values.piper.image.tag }}"
imagePullPolicy: "{{ .Values.whisper.image.pullPolicy }}"
args:
- --model
- "{{ .Values.whisper.model }}"
- --language
- "{{ .Values.whisper.language }}"
env:
- name: TZ
value: "{{ .Values.globals.timezone }}"
ports:
- name: http
containerPort: 10300
protocol: TCP
livenessProbe:
tcpSocket:
port: http
readinessProbe:
tcpSocket:
port: http
---
apiVersion: v1
kind: Service
metadata:
name: "{{ .Release.Name }}-whisper"
labels:
app: "{{ .Release.Name }}-whisper"
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 10300
protocol: TCP
name: http
selector:
app: "{{ .Release.Name }}-whisper"

View File

@@ -6,3 +6,16 @@ image:
tag: stable
pullPolicy: IfNotPresent
subdomain: home-assistant
piper:
image:
repository: ghcr.io/morten-olsen/glados-voice
tag: main
pullPolicy: Always
model: en_US-glados-medium
whisper:
image:
repository: rhasspy/wyoming-whisper
tag: latest
pullPolicy: IfNotPresent
model: tiny-int8
language: us