1
0
Fork 0

add ingress to emulate openai api

This commit is contained in:
Massaki Archambault 2024-12-05 00:22:50 -05:00
parent 59e87e0868
commit 042018c4b8
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: api
spec:
rules:
- host: openai.badjware.dev
http:
paths:
- path: /v1/audio/speech
pathType: Prefix
backend:
service:
name: openedai-speech-server
port:
name: http
- path: /v1
pathType: Prefix
backend:
service:
name: ollama-server
port:
name: http

View File

@ -1,5 +1,6 @@
resources: resources:
- namespace.yaml - namespace.yaml
- api-ingress.yaml
- ../../bases/ollama - ../../bases/ollama
- ../../bases/openedai-speech - ../../bases/openedai-speech
# - ../../bases/litellm # - ../../bases/litellm