refactor ingresses

This commit is contained in:
Roger Oriol
2026-06-23 00:26:29 +02:00
parent ce178d06c0
commit 153cf16194
32 changed files with 367 additions and 386 deletions

24
litellm/ingress.yaml Normal file
View File

@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: litellm
namespace: litellm
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
ingressClassName: traefik
tls:
- hosts:
- litellm.rogi.casa
secretName: litellm-tls
rules:
- host: litellm.rogi.casa
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: litellm-service
port:
number: 80

View File

@@ -1,7 +1,13 @@
apiVersion: v1
kind: Namespace
metadata:
name: litellm
---
apiVersion: v1
kind: ConfigMap
metadata:
name: litellm-config-file
namespace: litellm
data:
config.yaml: |
model_list:
@@ -50,6 +56,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: litellm-deployment
namespace: litellm
labels:
app: litellm
spec:
@@ -88,7 +95,7 @@ apiVersion: v1
kind: Service
metadata:
name: litellm-service
namespace: default
namespace: litellm
spec:
type: ClusterIP
selector:

View File

@@ -18,6 +18,7 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: postgres-volume-claim
namespace: litellm
labels:
app: postgres
spec:
@@ -32,6 +33,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: postgres
namespace: litellm
spec:
replicas: 1
selector:
@@ -63,6 +65,7 @@ apiVersion: v1
kind: Service
metadata:
name: postgres
namespace: litellm
labels:
app: postgres
spec: