mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
* feat(lens): simplify deployment and first trace setup * test(lens): keep setup fixtures within lint budgets * fix(lens): preserve setup state and harden bundled storage startup * fix(lens): handle setup recovery and Helm endpoint boundaries
84 lines
2.8 KiB
YAML
84 lines
2.8 KiB
YAML
suite: Lens endpoint defaults
|
|
templates:
|
|
- deployment.yaml
|
|
- configmap-litellm.yaml
|
|
set:
|
|
lensWorker.enabled: true
|
|
ingress.enabled: true
|
|
ingress.hosts: [{host: gateway.example, paths: [{path: /, pathType: Prefix}]}]
|
|
ingress.tls:
|
|
- hosts: [gateway.example]
|
|
secretName: tls
|
|
tests:
|
|
- it: derives the trace endpoint from the deployment hostname and TLS
|
|
template: deployment.yaml
|
|
asserts:
|
|
- contains:
|
|
path: spec.template.spec.containers[0].env
|
|
content:
|
|
name: LITELLM_LENS_PUBLIC_URL
|
|
value: https://gateway.example/lens-ingest
|
|
- it: preserves an explicitly configured public address
|
|
set:
|
|
lensWorker.publicUrl: https://custom.example/prefix
|
|
template: deployment.yaml
|
|
asserts:
|
|
- contains:
|
|
path: spec.template.spec.containers[0].env
|
|
content:
|
|
name: LITELLM_LENS_PUBLIC_URL
|
|
value: https://custom.example/prefix
|
|
- it: uses the dedicated Lens ingress when configured
|
|
set:
|
|
lensWorker.ingress.enabled: true
|
|
lensWorker.ingress.host: traces.example
|
|
lensWorker.ingress.tls:
|
|
- hosts: [traces.example]
|
|
secretName: traces-tls
|
|
template: deployment.yaml
|
|
asserts:
|
|
- contains:
|
|
path: spec.template.spec.containers[0].env
|
|
content:
|
|
name: LITELLM_LENS_PUBLIC_URL
|
|
value: https://traces.example
|
|
- it: uses HTTPS for a dedicated ALB ingress with certificate annotations
|
|
set:
|
|
lensWorker.ingress.enabled: true
|
|
lensWorker.ingress.host: traces.example
|
|
lensWorker.ingress.className: alb
|
|
lensWorker.ingress.tls: []
|
|
lensWorker.ingress.annotations:
|
|
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-west-2:123456789012:certificate/test
|
|
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP":80},{"HTTPS":443}]'
|
|
alb.ingress.kubernetes.io/ssl-redirect: "443"
|
|
template: deployment.yaml
|
|
asserts:
|
|
- contains:
|
|
path: spec.template.spec.containers[0].env
|
|
content:
|
|
name: LITELLM_LENS_PUBLIC_URL
|
|
value: https://traces.example
|
|
- it: uses HTTP for a dedicated ingress without its own TLS
|
|
set:
|
|
lensWorker.ingress.enabled: true
|
|
lensWorker.ingress.host: traces.example
|
|
lensWorker.ingress.tls: []
|
|
lensWorker.ingress.annotations: {}
|
|
template: deployment.yaml
|
|
asserts:
|
|
- contains:
|
|
path: spec.template.spec.containers[0].env
|
|
content:
|
|
name: LITELLM_LENS_PUBLIC_URL
|
|
value: http://traces.example
|
|
- it: uses HTTP when ingress has no TLS
|
|
set:
|
|
ingress.tls: []
|
|
template: deployment.yaml
|
|
asserts:
|
|
- contains:
|
|
path: spec.template.spec.containers[0].env
|
|
content:
|
|
name: LITELLM_LENS_PUBLIC_URL
|
|
value: http://gateway.example/lens-ingest
|