mirror of
https://github.com/jeffusion/gitea-ai-assistant.git
synced 2026-03-27 10:05:50 +00:00
- Replace file-based master key (data/master.key) with ENCRYPTION_KEY env var (hex-encoded) - App now requires ENCRYPTION_KEY to start, removing MASTER_KEY_PATH entirely - Fix k8s: add missing gitea-assistant-data volume, replace PVC with hostPath for single-node - Fix k8s: change qdrant from StatefulSet+PVC to Deployment+hostPath - Add K8s Secret for ENCRYPTION_KEY injection - Update all tests, .env.example, and documentation
85 lines
2.0 KiB
YAML
85 lines
2.0 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: qdrant
|
|
namespace: gitea-assistant
|
|
labels:
|
|
app.kubernetes.io/name: qdrant
|
|
app.kubernetes.io/part-of: gitea-assistant
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: qdrant
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: qdrant
|
|
app.kubernetes.io/part-of: gitea-assistant
|
|
spec:
|
|
containers:
|
|
- name: qdrant
|
|
image: qdrant/qdrant:latest
|
|
ports:
|
|
- name: http
|
|
containerPort: 6333
|
|
protocol: TCP
|
|
- name: grpc
|
|
containerPort: 6334
|
|
protocol: TCP
|
|
resources:
|
|
limits:
|
|
memory: "1Gi"
|
|
requests:
|
|
memory: "512Mi"
|
|
cpu: "250m"
|
|
volumeMounts:
|
|
- name: qdrant-storage
|
|
mountPath: /qdrant/storage
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
volumes:
|
|
- name: qdrant-storage
|
|
hostPath:
|
|
# Customize this path to match your node's storage layout
|
|
path: /opt/gitea-assistant/qdrant
|
|
type: DirectoryOrCreate
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: qdrant
|
|
namespace: gitea-assistant
|
|
labels:
|
|
app.kubernetes.io/name: qdrant
|
|
app.kubernetes.io/part-of: gitea-assistant
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app.kubernetes.io/name: qdrant
|
|
ports:
|
|
- name: http
|
|
port: 6333
|
|
targetPort: http
|
|
protocol: TCP
|
|
- name: grpc
|
|
port: 6334
|
|
targetPort: grpc
|
|
protocol: TCP
|