Skip to content

Commit ae41663

Browse files
committed
feat: add fileworker-deployment
1 parent f1dfd9f commit ae41663

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: file-worker
5+
labels:
6+
app.kubernetes.io/name: file-worker
7+
app.kubernetes.io/instance: {{ .Release.Name }}
8+
spec:
9+
replicas: {{ .Values.containers.file_worker.replicas | default 1 }}
10+
selector:
11+
matchLabels:
12+
app.kubernetes.io/name: file-worker
13+
app.kubernetes.io/instance: {{ .Release.Name }}
14+
template:
15+
metadata:
16+
annotations:
17+
checksum/config: {{ include (print $.Template.BasePath "/backend-configmap.yaml") . | sha256sum }}
18+
labels:
19+
app.kubernetes.io/name: file-worker
20+
app.kubernetes.io/instance: {{ .Release.Name }}
21+
spec:
22+
containers:
23+
- name: file-worker
24+
resources:
25+
{{- toYaml .Values.containers.server.resources | nindent 12 }}
26+
image: {{ printf "%s:%s" "trieve/file_worker" .Values.containers.file_worker.tag }}
27+
envFrom:
28+
- configMapRef:
29+
name: trieve-server-config

0 commit comments

Comments
 (0)