Merge remote-tracking branch 'origin/prepare-upgrade'
This commit is contained in:
commit
2b1f85bfc1
10 files changed
+336
-2
No files matched your search
@@ -0,0 +1,8 @@
|
||||
apiVersion: v2
|
||||
name: etl-service
|
||||
description: "ETL-сервис: S3 JSON → Embeddings → Qdrant для RAG"
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "0.1.0"
|
||||
maintainers:
|
||||
- name: etl-team
|
||||
@@ -0,0 +1,39 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Chart.Name }}-config
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
data:
|
||||
# S3 (без секретов — они в Secret)
|
||||
S3_ENDPOINT_URL: {{ .Values.s3.endpointUrl | quote }}
|
||||
S3_BUCKET: {{ .Values.s3.bucket | quote }}
|
||||
S3_PREFIX: {{ .Values.s3.prefix | quote }}
|
||||
S3_PROCESSED_PREFIX: {{ .Values.s3.processedPrefix | quote }}
|
||||
|
||||
# Qdrant
|
||||
QDRANT_URL: {{ .Values.qdrant.url | quote }}
|
||||
QDRANT_COLLECTION_NAME: {{ .Values.qdrant.collectionName | quote }}
|
||||
QDRANT_VECTOR_SIZE: {{ .Values.qdrant.vectorSize | quote }}
|
||||
QDRANT_DISTANCE: {{ .Values.qdrant.distance | quote }}
|
||||
|
||||
# Embeddings (без API-ключа — он в Secret)
|
||||
EMBEDDING_PROVIDER: {{ .Values.embedding.provider | quote }}
|
||||
EMBEDDING_API_URL: {{ .Values.embedding.apiUrl | quote }}
|
||||
EMBEDDING_MODEL: {{ .Values.embedding.model | quote }}
|
||||
|
||||
# Retry
|
||||
RETRY_MAX_ATTEMPTS: {{ .Values.retry.maxAttempts | quote }}
|
||||
RETRY_BASE_DELAY: {{ .Values.retry.baseDelay | quote }}
|
||||
RETRY_MAX_DELAY: {{ .Values.retry.maxDelay | quote }}
|
||||
|
||||
# Processing
|
||||
CHUNKING_STRATEGY: {{ .Values.processing.chunkingStrategy | quote }}
|
||||
CHUNK_SIZE: {{ .Values.processing.chunkSize | quote }}
|
||||
CHUNK_OVERLAP: {{ .Values.processing.chunkOverlap | quote }}
|
||||
|
||||
# Batching
|
||||
EMBEDDING_BATCH_SIZE: {{ .Values.batching.embeddingBatchSize | quote }}
|
||||
@@ -0,0 +1,55 @@
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: {{ .Chart.Name }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
spec:
|
||||
schedule: {{ .Values.schedule | quote }}
|
||||
concurrencyPolicy: {{ .Values.concurrencyPolicy }}
|
||||
successfulJobsHistoryLimit: {{ .Values.successfulJobsHistoryLimit }}
|
||||
failedJobsHistoryLimit: {{ .Values.failedJobsHistoryLimit }}
|
||||
jobTemplate:
|
||||
spec:
|
||||
activeDeadlineSeconds: {{ .Values.activeDeadlineSeconds }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- with .Values.podAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
restartPolicy: OnFailure
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ .Chart.Name }}-config
|
||||
- secretRef:
|
||||
name: {{ .Chart.Name }}-secret
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 16 }}
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- with .Values.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ .Chart.Name }}-secret
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
type: Opaque
|
||||
stringData:
|
||||
EMBEDDING_API_KEY: {{ .Values.embedding.apiKey | quote }}
|
||||
S3_ACCESS_KEY_ID: {{ .Values.s3.accessKeyId | quote }}
|
||||
S3_SECRET_ACCESS_KEY: {{ .Values.s3.secretAccessKey | quote }}
|
||||
QDRANT_API_KEY: {{ .Values.qdrant.apiKey | quote }}
|
||||
@@ -0,0 +1,99 @@
|
||||
# ──────────────────────────────────────────────
|
||||
# Образ
|
||||
# ──────────────────────────────────────────────
|
||||
image:
|
||||
repository: etl-service
|
||||
tag: "0.1.0"
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# Resources
|
||||
# ──────────────────────────────────────────────
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# S3
|
||||
# ──────────────────────────────────────────────
|
||||
s3:
|
||||
endpointUrl: "http://minio:9000"
|
||||
# Access key — в Secret
|
||||
accessKeyId: ""
|
||||
# Secret access key — в Secret
|
||||
secretAccessKey: ""
|
||||
bucket: "documents"
|
||||
prefix: "input/"
|
||||
processedPrefix: "processed/"
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# Qdrant
|
||||
# ──────────────────────────────────────────────
|
||||
qdrant:
|
||||
url: "http://qdrant:6333"
|
||||
# API-ключ — в Secret
|
||||
apiKey: ""
|
||||
collectionName: "documents"
|
||||
vectorSize: 1536
|
||||
distance: "cosine"
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# Embeddings
|
||||
# ──────────────────────────────────────────────
|
||||
embedding:
|
||||
provider: "openai"
|
||||
# API-ключ — в Secret, не указывайте здесь
|
||||
apiKey: ""
|
||||
apiUrl: "https://api.openai.com/v1"
|
||||
model: "text-embedding-3-small"
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# Retry
|
||||
# ──────────────────────────────────────────────
|
||||
retry:
|
||||
maxAttempts: 3
|
||||
baseDelay: 1.0
|
||||
maxDelay: 30.0
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# Processing (чанкинг)
|
||||
# ──────────────────────────────────────────────
|
||||
processing:
|
||||
chunkingStrategy: "noop"
|
||||
chunkSize: 512
|
||||
chunkOverlap: 50
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# Batching
|
||||
# ──────────────────────────────────────────────
|
||||
batching:
|
||||
embeddingBatchSize: 100
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# CronJob
|
||||
# ──────────────────────────────────────────────
|
||||
schedule: "0 */6 * * *" # каждые 6 часов
|
||||
concurrencyPolicy: Forbid # не запускать параллельные джобы
|
||||
successfulJobsHistoryLimit: 3
|
||||
failedJobsHistoryLimit: 1
|
||||
activeDeadlineSeconds: 3600 # таймаут 1 час
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# Image Pull Secrets (для приватных registry)
|
||||
# ──────────────────────────────────────────────
|
||||
imagePullSecrets: []
|
||||
|
||||
# ──────────────────────────────────────────────
|
||||
# Дополнительные labels / annotations
|
||||
# ──────────────────────────────────────────────
|
||||
podAnnotations: {}
|
||||
|
||||
nodeSelector: {}
|
||||
|
||||
tolerations: []
|
||||
|
||||
affinity: {}
|
||||
Reference in new issue
Block a user