Skip to content

Commit

Permalink
feat: add openwakeword
Browse files Browse the repository at this point in the history
  • Loading branch information
muhlba91 committed Nov 23, 2024
1 parent fb5300f commit 13138d2
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 0 deletions.
1 change: 1 addition & 0 deletions home-assistant/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ resources:
- ./node-red/
- ./faster-whisper/
- ./piper/
- ./openwakeword/
12 changes: 12 additions & 0 deletions home-assistant/openwakeword/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./templates/repository.yaml
- ./templates/release.yaml
configMapGenerator:
- name: home-assistant-openwakeword-values
files:
- values.yaml=values.yaml
configurations:
- kustomizeconfig.yml
7 changes: 7 additions & 0 deletions home-assistant/openwakeword/kustomizeconfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
nameReference:
- kind: ConfigMap
version: v1
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease
21 changes: 21 additions & 0 deletions home-assistant/openwakeword/templates/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: home-assistant-openwakeword
spec:
releaseName: home-assistant-openwakeword
targetNamespace: home-assistant-openwakeword
chart:
spec:
chart: app-template
version: 3.5.1
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: openwakeword
namespace: flux-system
valuesFrom:
- kind: ConfigMap
name: home-assistant-openwakeword-values
valuesKey: values.yaml
9 changes: 9 additions & 0 deletions home-assistant/openwakeword/templates/repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: openwakeword
namespace: flux-system
spec:
interval: 10m
url: https://bjw-s.github.io/helm-charts
55 changes: 55 additions & 0 deletions home-assistant/openwakeword/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.3.0/charts/library/common/values.schema.json
controllers:
main:
type: deployment
containers:
openwakeword:
image:
repository: rhasspy/wyoming-openwakeword
pullPolicy: IfNotPresent
tag: 1.1.0

args:
- --preload-model
- ok_nabu

resources:
requests:
cpu: 10m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi

probes:
liveness:
enabled: true
readiness:
enabled: true
startup:
enabled: true
spec:
failureThreshold: 30
periodSeconds: 5

serviceAccount:
create: true

defaultPodOptions:
automountServiceAccountToken: false

service:
openwakeword:
controller: main
enabled: true
type: LoadBalancer
ipFamilyPolicy: PreferDualStack
annotations:
metallb.universe.tf/loadBalancerIPs: "10.0.73.22,2a01:aea0:dd3:25a:1000:3:4:22"
external-dns.alpha.kubernetes.io/provider: internal
external-dns.alpha.kubernetes.io/hostname: openwakeword.iot.internal.muehlbachler.io
ports:
http:
port: 10400
targetPort: 10400

0 comments on commit 13138d2

Please sign in to comment.