78 lines
2.1 KiB
YAML
78 lines
2.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: langfuse
|
|
namespace: unt
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: langfuse
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: langfuse
|
|
spec:
|
|
containers:
|
|
- name: langfuse
|
|
image: langfuse/langfuse:3
|
|
ports:
|
|
- containerPort: 3000
|
|
env:
|
|
- name: DATABASE_URL
|
|
value: "postgresql://langfuse:langfuse@postgres:5432/langfuse"
|
|
- name: CLICKHOUSE_URL
|
|
value: "http://clickhouse:8123"
|
|
- name: CLICKHOUSE_MIGRATION_URL
|
|
value: "clickhouse://clickhouse:9000"
|
|
- name: CLICKHOUSE_USER
|
|
value: "default"
|
|
- name: CLICKHOUSE_PASSWORD
|
|
value: "clickhouse"
|
|
- name: CLICKHOUSE_CLUSTER_ENABLED
|
|
value: "false"
|
|
- name: LANGFUSE_S3_EVENT_UPLOAD_ENABLED
|
|
value: "false"
|
|
- name: LANGFUSE_S3_EVENT_UPLOAD_BUCKET
|
|
value: "unused"
|
|
- name: LANGFUSE_S3_MEDIA_UPLOAD_ENABLED
|
|
value: "false"
|
|
- name: LANGFUSE_S3_MEDIA_UPLOAD_BUCKET
|
|
value: "unused"
|
|
- name: NEXTAUTH_SECRET
|
|
value: "unt-dev-secret"
|
|
- name: NEXTAUTH_URL
|
|
value: "http://localhost:3000"
|
|
- name: HOSTNAME
|
|
value: "0.0.0.0"
|
|
- name: AUTH_DISABLE_SIGNUP
|
|
value: "true"
|
|
- name: SALT
|
|
value: "unt-dev-salt-not-for-production-use"
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /api/public/health
|
|
port: 3000
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 10
|
|
resources:
|
|
requests:
|
|
memory: 256Mi
|
|
cpu: 200m
|
|
limits:
|
|
memory: 1Gi
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: langfuse
|
|
namespace: unt
|
|
spec:
|
|
selector:
|
|
app: langfuse
|
|
ports:
|
|
- port: 3000
|
|
targetPort: 3000
|