Skip to content

Commit

Permalink
feat: add piper
Browse files Browse the repository at this point in the history
  • Loading branch information
muhlba91 committed Nov 23, 2024
1 parent 5428db7 commit fb5300f
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 1 deletion.
2 changes: 1 addition & 1 deletion home-assistant/faster-whisper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ controllers:
repository: quay.io/linuxserver.io/faster-whisper
pullPolicy: IfNotPresent
tag: 2.0.0-gpu

env:
- name: NVIDIA_DRIVER_CAPABILITIES
value: compute,utility
Expand Down
1 change: 1 addition & 0 deletions home-assistant/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ resources:
- ./home-assistant/
- ./node-red/
- ./faster-whisper/
- ./piper/
12 changes: 12 additions & 0 deletions home-assistant/piper/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-piper-values
files:
- values.yaml=values.yaml
configurations:
- kustomizeconfig.yml
7 changes: 7 additions & 0 deletions home-assistant/piper/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/piper/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-piper
spec:
releaseName: home-assistant-piper
targetNamespace: home-assistant-piper
chart:
spec:
chart: app-template
version: 3.5.1
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: piper
namespace: flux-system
valuesFrom:
- kind: ConfigMap
name: home-assistant-piper-values
valuesKey: values.yaml
9 changes: 9 additions & 0 deletions home-assistant/piper/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: piper
namespace: flux-system
spec:
interval: 10m
url: https://bjw-s.github.io/helm-charts
65 changes: 65 additions & 0 deletions home-assistant/piper/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
# 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:
piper:
image:
repository: quay.io/linuxserver.io/piper
pullPolicy: IfNotPresent
tag: 1.4.0

env:
- name: PIPER_VOICE
value: en_US-lessac-medium
- name: PIPER_LENGTH
value: "1.5"
- name: PIPER_NOISE
value: "0.667"
- name: PIPER_NOISEW
value: "0.333"
- name: PIPER_SPEAKER
value: "0"
- name: PIPER_PROCS
value: "1"

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:
piper:
controller: main
enabled: true
type: LoadBalancer
ipFamilyPolicy: PreferDualStack
annotations:
metallb.universe.tf/loadBalancerIPs: "10.0.73.21,2a01:aea0:dd3:25a:1000:3:4:21"
external-dns.alpha.kubernetes.io/provider: internal
external-dns.alpha.kubernetes.io/hostname: piper.iot.internal.muehlbachler.io
ports:
http:
port: 10200
targetPort: 10200

0 comments on commit fb5300f

Please sign in to comment.