mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4691ab1139 |
@@ -15,6 +15,7 @@ spec:
|
|||||||
app: "{{ .Release.Name }}"
|
app: "{{ .Release.Name }}"
|
||||||
spec:
|
spec:
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: "{{ .Release.Name }}"
|
- name: "{{ .Release.Name }}"
|
||||||
|
|||||||
59
charts/apps/home-assistant/templates/piper.yaml
Normal file
59
charts/apps/home-assistant/templates/piper.yaml
Normal 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"
|
||||||
57
charts/apps/home-assistant/templates/whisper.yaml
Normal file
57
charts/apps/home-assistant/templates/whisper.yaml
Normal 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.whisper.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"
|
||||||
@@ -6,3 +6,16 @@ image:
|
|||||||
tag: stable
|
tag: stable
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
subdomain: home-assistant
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user