mirror of
https://github.com/lordmathis/dev-cluster.git
synced 2025-12-25 01:54:23 +00:00
Unify homelab proxies
This commit is contained in:
31
apps/prod/homelab-proxy/llamactl-ingress.yaml
Normal file
31
apps/prod/homelab-proxy/llamactl-ingress.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: llamactl-ingress
|
||||
namespace: llamactl
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
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}`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: llamactl-proxy
|
||||
port: ${LLAMACTL_INTERNAL_PORT}
|
||||
middlewares:
|
||||
- name: "auth-authelia@kubernetescrd"
|
||||
Reference in New Issue
Block a user