mirror of
https://github.com/lordmathis/dev-cluster.git
synced 2025-12-22 16:44:24 +00:00
Enhance llamactl-proxy ingress configuration with additional route definitions and middleware
This commit is contained in:
@@ -7,8 +7,25 @@ spec:
|
|||||||
entryPoints:
|
entryPoints:
|
||||||
- websecure
|
- websecure
|
||||||
routes:
|
routes:
|
||||||
|
# Protected route for internal management API
|
||||||
|
- match: Host(`${LLAMACTL_DOMAIN}`) && PathPrefix(`/api/v1`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: llamactl-proxy
|
||||||
|
port: ${LLAMACTL_INTERNAL_PORT}
|
||||||
|
middlewares:
|
||||||
|
- name: "auth-authelia@kubernetescrd"
|
||||||
|
# Unprotected route for OpenAI compatible API (uses API keys)
|
||||||
|
- match: Host(`${LLAMACTL_DOMAIN}`) && PathPrefix(`/v1`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: llamactl-proxy
|
||||||
|
port: ${LLAMACTL_INTERNAL_PORT}
|
||||||
|
# Catch-all route
|
||||||
- match: Host(`${LLAMACTL_DOMAIN}`)
|
- match: Host(`${LLAMACTL_DOMAIN}`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: llamactl-proxy
|
- name: llamactl-proxy
|
||||||
port: ${LLAMACTL_INTERNAL_PORT}
|
port: ${LLAMACTL_INTERNAL_PORT}
|
||||||
|
middlewares:
|
||||||
|
- name: "auth-authelia@kubernetescrd"
|
||||||
Reference in New Issue
Block a user