2025-02-05 04:33:13 +08:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: chroma-deployment
|
|
|
|
namespace: n8n
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: chroma
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: chroma
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: chroma
|
|
|
|
image: localhost:32000/chromadb/chroma
|
|
|
|
ports:
|
|
|
|
- containerPort: 8000
|
2025-03-09 09:44:53 +08:00
|
|
|
env:
|
|
|
|
# - name: CHROMA_SERVER_CORS_ALLOW_ORIGINS
|
|
|
|
# value: "*"
|
|
|
|
- name: CHROMA_SERVER_AUTHN_CREDENTIALS
|
|
|
|
value: "test-token"
|
|
|
|
- name: CHROMA_SERVER_AUTHN_PROVIDER
|
|
|
|
value: "chromadb.auth.token_authn.TokenAuthenticationServerProvider"
|
|
|
|
- name: CHROMA_AUTH_TOKEN_TRANSPORT_HEADER
|
|
|
|
value: "Authorization"
|
2025-02-05 04:33:13 +08:00
|
|
|
volumeMounts:
|
|
|
|
- name: chroma-storage
|
|
|
|
mountPath: /home/node/.n8n/
|
|
|
|
volumes:
|
|
|
|
- name: chroma-storage
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: chroma-pvc
|