forked from vulcanlabs2022/file_search
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchart.yml
More file actions
196 lines (196 loc) · 5.96 KB
/
chart.yml
File metadata and controls
196 lines (196 loc) · 5.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
kind: Deployment
apiVersion: apps/v1
metadata:
name: search
namespace: user-space-vulcanlabs
labels:
app.kubernetes.io/managed-by: Helm
name: search
annotations:
deployment.kubernetes.io/revision: '1'
meta.helm.sh/release-name: apps-vulcanlabs
meta.helm.sh/release-namespace: user-space-vulcanlabs
spec:
replicas: 1
selector:
matchLabels:
app: search
name: search
template:
metadata:
creationTimestamp: null
labels:
app: search
name: search
spec:
volumes:
- name: index-data
hostPath:
path: >-
/terminus/userdata/appdata/pvc-appdata-vulcanlabs-bxzyrijrw8vdhtjo/search/index-data
type: DirectoryOrCreate
- name: mongo-data
hostPath:
path: >-
/terminus/userdata/appdata/pvc-appdata-vulcanlabs-bxzyrijrw8vdhtjo/search/db
type: DirectoryOrCreate
- name: watch-dir
hostPath:
path: >-
/terminus/rootfs/userspace/pvc-userspace-vulcanlabs-lmbz8vmbktzq71un/Home/Documents
type: Directory
- name: ai-data
hostPath:
path: >-
/terminus/userdata/appdata/pvc-appdata-vulcanlabs-bxzyrijrw8vdhtjo/search/data
type: Directory
containers:
- name: mongodb
image: 'mongo:4.4.5'
ports:
- name: http
containerPort: 27017
protocol: TCP
env:
- name: MONGO_INITDB_ROOT_USERNAME
value: admin
- name: MONGO_INITDB_ROOT_PASSWORD
value: '123456'
resources: {}
volumeMounts:
- name: mongo-data
mountPath: /data/db
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
- name: zinc-server
image: 'public.ecr.aws/zinclabs/zinc:0.4.3'
ports:
- name: http
containerPort: 4080
protocol: TCP
env:
- name: ZINC_FIRST_ADMIN_USER
value: admin
- name: ZINC_FIRST_ADMIN_PASSWORD
value: User#123
- name: ZINC_DATA_PATH
value: /data
resources: {}
volumeMounts:
- name: index-data
mountPath: /data
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
- name: zinc-gateway
image: 'calehh/file_search:v0.3.0'
ports:
- name: http
containerPort: 6317
protocol: TCP
env:
- name: ZINC_FIRST_ADMIN_USER
value: admin
- name: ZINC_FIRST_ADMIN_PASSWORD
value: User#123
- name: ZINC_URI
value: 'http://localhost:4080'
- name: MONGO_URI
value: 'mongodb://admin:123456@localhost:27017'
- name: WATCH_DIR
value: /Home/Documents
- name: FILE_MODEL_URI
value: 'http://localhost:8087/nlp/Vicuna_infer_v1'
- name: CHAT_MODEL_URI
value: 'http://localhost:8087/nlp/Vicuna_infer_v1'
- name: INDEXER_MODEL_URI
value: 'http://localhost:8055/nlp/generate_embedding'
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: CONTAINER_NAME
value: zinc-gateway
- name: NOTIFY_SERVER
value: 'fsnotify-svc.user-system-vulcanlabs:5079'
resources: {}
volumeMounts:
- name: watch-dir
mountPath: /Home/Documents
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
- name: ai-llm
image: 'calehh/vicuna_infer_base:v0.2.0_test'
command: ["python3.10", "ask_ai.py", "--cpp_model", "/data/3b_ggml-model-q4_0.bin", "--embedding_model", "/data/instructor-base", "--n_threads", "3"]
ports:
- name: http
containerPort: 8087
protocol: TCP
resources:
requests:
memory: 3Gi
limits:
memory: 6Gi
securityContext:
sysctls:
- name: vm.swappiness
value: "0"
volumeMounts:
- name: ai-data
mountPath: /data
- name: watch-dir
mountPath: /Home/Documents
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
- name: ai-indexer
image: 'calehh/vicuna_infer_base:v0.2.0_test'
command: ["python3.10", "generate_embedding.py", "--embedding_model", "/data/instructor-base", "--back_url", "http://localhost:6317/api/callback/vector"]
ports:
- name: http
containerPort: 8055
protocol: TCP
resources: {}
volumeMounts:
- name: ai-data
mountPath: /data
- name: watch-dir
mountPath: /Home/Documents
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
- name: provider-bridge
image: 'aboveos/search-provder:v0.1.5'
ports:
- name: http
containerPort: 3020
protocol: TCP
env:
- name: OS_SYSTEM_SERVER
value: system-server.user-system-vulcanlabs
- name: OS_APP_SECRET
value: 45d4ecb676f385b5
- name: OS_APP_KEY
value: bytetrade_search_8798
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext:
runAsUser: 0
schedulerName: default-scheduler
strategy:
type: Recreate
revisionHistoryLimit: 10
progressDeadlineSeconds: 600