From 3b885c2966b08ca7e28f427fb378cad2b46897db Mon Sep 17 00:00:00 2001 From: Steffen Illium Date: Mon, 6 May 2024 10:35:23 +0200 Subject: [PATCH] add piper, move to voice --- projects/voice/kustomization.yaml | 9 ++++++ .../{whisper/base => voice}/namespace.yaml | 2 +- projects/voice/piper/base/deployment.yaml | 30 +++++++++++++++++++ projects/voice/piper/base/ingress.yaml | 15 ++++++++++ projects/voice/piper/base/service.yaml | 13 ++++++++ .../piper}/kustomization.yaml | 3 -- .../{ => voice}/whisper/base/deployment.yaml | 2 ++ .../{ => voice}/whisper/base/ingress.yaml | 0 .../{ => voice}/whisper/base/service.yaml | 0 projects/voice/whisper/kustomization.yaml | 7 +++++ 10 files changed, 77 insertions(+), 4 deletions(-) create mode 100644 projects/voice/kustomization.yaml rename projects/{whisper/base => voice}/namespace.yaml (73%) create mode 100644 projects/voice/piper/base/deployment.yaml create mode 100644 projects/voice/piper/base/ingress.yaml create mode 100644 projects/voice/piper/base/service.yaml rename projects/{whisper => voice/piper}/kustomization.yaml (76%) rename projects/{ => voice}/whisper/base/deployment.yaml (89%) rename projects/{ => voice}/whisper/base/ingress.yaml (100%) rename projects/{ => voice}/whisper/base/service.yaml (100%) create mode 100644 projects/voice/whisper/kustomization.yaml diff --git a/projects/voice/kustomization.yaml b/projects/voice/kustomization.yaml new file mode 100644 index 0000000..f7d2dd6 --- /dev/null +++ b/projects/voice/kustomization.yaml @@ -0,0 +1,9 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: voice + +resources: +- whisper +- piper +- namespace.yaml diff --git a/projects/whisper/base/namespace.yaml b/projects/voice/namespace.yaml similarity index 73% rename from projects/whisper/base/namespace.yaml rename to projects/voice/namespace.yaml index a3fe282..cace587 100644 --- a/projects/whisper/base/namespace.yaml +++ b/projects/voice/namespace.yaml @@ -1,4 +1,4 @@ apiVersion: v1 kind: Namespace metadata: - name: whisper \ No newline at end of file + name: voice \ No newline at end of file diff --git a/projects/voice/piper/base/deployment.yaml b/projects/voice/piper/base/deployment.yaml new file mode 100644 index 0000000..1c7690d --- /dev/null +++ b/projects/voice/piper/base/deployment.yaml @@ -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 diff --git a/projects/voice/piper/base/ingress.yaml b/projects/voice/piper/base/ingress.yaml new file mode 100644 index 0000000..0fc0f1a --- /dev/null +++ b/projects/voice/piper/base/ingress.yaml @@ -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 + diff --git a/projects/voice/piper/base/service.yaml b/projects/voice/piper/base/service.yaml new file mode 100644 index 0000000..a93218c --- /dev/null +++ b/projects/voice/piper/base/service.yaml @@ -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 \ No newline at end of file diff --git a/projects/whisper/kustomization.yaml b/projects/voice/piper/kustomization.yaml similarity index 76% rename from projects/whisper/kustomization.yaml rename to projects/voice/piper/kustomization.yaml index 1cac248..08da9b9 100644 --- a/projects/whisper/kustomization.yaml +++ b/projects/voice/piper/kustomization.yaml @@ -1,10 +1,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization -namespace: whisper - resources: - base/deployment.yaml - base/ingress.yaml -- base/namespace.yaml - base/service.yaml diff --git a/projects/whisper/base/deployment.yaml b/projects/voice/whisper/base/deployment.yaml similarity index 89% rename from projects/whisper/base/deployment.yaml rename to projects/voice/whisper/base/deployment.yaml index 4a562d7..598d9bb 100644 --- a/projects/whisper/base/deployment.yaml +++ b/projects/voice/whisper/base/deployment.yaml @@ -20,6 +20,8 @@ spec: env: - name: TZ value: Europe/Berlin + - name: WHISPER_MODEL + value: large-v3 ports: - name: http containerPort: 10300 diff --git a/projects/whisper/base/ingress.yaml b/projects/voice/whisper/base/ingress.yaml similarity index 100% rename from projects/whisper/base/ingress.yaml rename to projects/voice/whisper/base/ingress.yaml diff --git a/projects/whisper/base/service.yaml b/projects/voice/whisper/base/service.yaml similarity index 100% rename from projects/whisper/base/service.yaml rename to projects/voice/whisper/base/service.yaml diff --git a/projects/voice/whisper/kustomization.yaml b/projects/voice/whisper/kustomization.yaml new file mode 100644 index 0000000..08da9b9 --- /dev/null +++ b/projects/voice/whisper/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- base/deployment.yaml +- base/ingress.yaml +- base/service.yaml