combine deployments
This commit is contained in:
parent
7357092c01
commit
e0ba681143
@ -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
|
17
projects/voice/base/service.yaml
Normal file
17
projects/voice/base/service.yaml
Normal 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
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
@ -1,7 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- base/deployment.yaml
|
||||
- base/ingress.yaml
|
||||
- base/service.yaml
|
@ -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
|
@ -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
|
||||
|
@ -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
|
@ -1,7 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- base/deployment.yaml
|
||||
- base/ingress.yaml
|
||||
- base/service.yaml
|
Loading…
x
Reference in New Issue
Block a user