add ingress to emulate openai api
This commit is contained in:
parent
59e87e0868
commit
042018c4b8
|
@ -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
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue