combine deployments

This commit is contained in:
Steffen Illium 2024-05-06 10:49:02 +02:00
parent 7357092c01
commit e0ba681143
11 changed files with 38 additions and 109 deletions

View File

@ -2,17 +2,17 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: piper
name: piper
app: voice
name: voice
spec:
replicas: 1
selector:
matchLabels:
app: piper
app: voice
template:
metadata:
labels:
app: piper
app: voice
spec:
containers:
- image: lscr.io/linuxserver/piper:latest
@ -23,8 +23,20 @@ spec:
- name: PIPER_VOICE
value: en_US-hfc_female-medium
ports:
- name: http
- name: piper
containerPort: 10200
protocol: TCP
resources: {}
- image: linuxserver/faster-whisper:latest
name: whisper
env:
- name: TZ
value: Europe/Berlin
- name: WHISPER_MODEL
value: large-v3
ports:
- name: whisper
containerPort: 10300
protocol: TCP
resources: {}
restartPolicy: Always

View File

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: voice
name: voice
spec:
ports:
- name: piper
port: 10200
targetPort: piper
- name: whisper
port: 10300
targetPort: whisper
selector:
app: voice
type: LoadBalancer

View File

@ -4,6 +4,7 @@ kind: Kustomization
namespace: voice
resources:
- whisper
- piper
- namespace.yaml
- base/deployment.yaml
- base/ingress.yaml
- base/service.yaml
- base/namespace.yaml

View File

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

View File

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

View File

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

View File

@ -1,30 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: whisper
name: whisper
spec:
replicas: 1
selector:
matchLabels:
app: whisper
template:
metadata:
labels:
app: whisper
spec:
containers:
- image: linuxserver/faster-whisper:latest
name: whisper
env:
- name: TZ
value: Europe/Berlin
- name: WHISPER_MODEL
value: large-v3
ports:
- name: http
containerPort: 10300
protocol: TCP
resources: {}
restartPolicy: Always

View File

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

View File

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

View File

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