add piper, move to voice

This commit is contained in:
2024-05-06 10:35:23 +02:00
parent 49a268b196
commit 3b885c2966
10 changed files with 77 additions and 4 deletions

View File

@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: voice
resources:
- whisper
- piper
- namespace.yaml

View File

@ -1,4 +1,4 @@
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: whisper name: voice

View File

@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: piper
name: piper
spec:
replicas: 1
selector:
matchLabels:
app: piper
template:
metadata:
labels:
app: piper
spec:
containers:
- image: lscr.io/linuxserver/piper:latest
name: piper
env:
- name: TZ
value: Europe/Berlin
- name: PIPER_VOICE
value: en_US-hfc_female-medium
ports:
- name: http
containerPort: 10200
protocol: TCP
resources: {}
restartPolicy: Always

View File

@ -0,0 +1,15 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: piper
spec:
entryPoints:
- websecure-local
tls: {}
routes:
- match: Host(`piper.steffenillium.de`)
kind: Rule
services:
- name: piper
port: http

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: piper
name: piper
spec:
ports:
- name: http
port: 80
targetPort: http
selector:
app: piper

View File

@ -1,10 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: whisper
resources: resources:
- base/deployment.yaml - base/deployment.yaml
- base/ingress.yaml - base/ingress.yaml
- base/namespace.yaml
- base/service.yaml - base/service.yaml

View File

@ -20,6 +20,8 @@ spec:
env: env:
- name: TZ - name: TZ
value: Europe/Berlin value: Europe/Berlin
- name: WHISPER_MODEL
value: large-v3
ports: ports:
- name: http - name: http
containerPort: 10300 containerPort: 10300

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- base/deployment.yaml
- base/ingress.yaml
- base/service.yaml