From 2256cdf9ddbb86ad01c808cc48f91687bc33430c Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Fri, 21 Jun 2024 18:40:09 -0400 Subject: [PATCH] Add faster-whisper service --- api/fast-whisper/fast-whisper-service.yaml | 14 ++++++++++++++ api/fast-whisper/fast-whisper.yaml | 4 ++-- api/{ => general-api}/api-service.yaml | 4 ---- 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 api/fast-whisper/fast-whisper-service.yaml rename api/{ => general-api}/api-service.yaml (76%) diff --git a/api/fast-whisper/fast-whisper-service.yaml b/api/fast-whisper/fast-whisper-service.yaml new file mode 100644 index 0000000..d270e7c --- /dev/null +++ b/api/fast-whisper/fast-whisper-service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: fast-whisper-service + namespace: api-ns +spec: + type: LoadBalancer + ports: + - name: faster-whisper + port: 8000 + targetPort: 8000 + + selector: + app: fast-whisper diff --git a/api/fast-whisper/fast-whisper.yaml b/api/fast-whisper/fast-whisper.yaml index 2ddfab2..53ea3ba 100644 --- a/api/fast-whisper/fast-whisper.yaml +++ b/api/fast-whisper/fast-whisper.yaml @@ -9,11 +9,11 @@ spec: replicas: 1 selector: matchLabels: - app: api-apps + app: fast-whisper template: metadata: labels: - app: api-apps + app: fast-whisper spec: containers: - name: fast-whisper diff --git a/api/api-service.yaml b/api/general-api/api-service.yaml similarity index 76% rename from api/api-service.yaml rename to api/general-api/api-service.yaml index c6a0404..7cee1e7 100644 --- a/api/api-service.yaml +++ b/api/general-api/api-service.yaml @@ -9,9 +9,5 @@ spec: - name: general-api port: 8080 targetPort: 80 - - name: faster-whisper - port: 8000 - targetPort: 8000 - selector: app: api-apps