forked from dgarnitz/vectorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhugging_face_deployment.yaml
76 lines (76 loc) · 2.04 KB
/
hugging_face_deployment.yaml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: hugging-face
namespace: vectorflow
labels:
app: hugging-face
spec:
replicas: 1
selector:
matchLabels:
app: hugging-face
strategy: {}
template:
metadata:
labels:
io.kompose.network/vectorflow: "true"
app: hugging-face
spec:
containers:
- args:
- bash
- /wait-for-it.sh
- rabbitmq:5672
- --
- python
- app.py
- --model_name # this is currently failing, not read in due to weird way the script runs
- "BAAI/bge-small-en"
env:
- name: VDB_UPLOAD_QUEUE
valueFrom:
configMapKeyRef:
key: VDB_UPLOAD_QUEUE
name: config-map
- name: POSTGRES_DB
valueFrom:
configMapKeyRef:
key: POSTGRES_DB
name: config-map
- name: POSTGRES_HOST
valueFrom:
configMapKeyRef:
key: POSTGRES_HOST
name: config-map
- name: POSTGRES_PASSWORD
valueFrom:
configMapKeyRef:
key: POSTGRES_PASSWORD
name: config-map
- name: POSTGRES_USERNAME
valueFrom:
configMapKeyRef:
key: POSTGRES_USERNAME
name: config-map
- name: RABBITMQ_HOST
valueFrom:
configMapKeyRef:
key: RABBITMQ_HOST
name: config-map
- name: RABBITMQ_PASSWORD
valueFrom:
configMapKeyRef:
key: RABBITMQ_PASSWORD
name: config-map
- name: RABBITMQ_USERNAME
valueFrom:
configMapKeyRef:
key: RABBITMQ_USERNAME
name: config-map
image: vectorflow_hf
name: hugging-face
imagePullPolicy: IfNotPresent
resources: {}
restartPolicy: Always
status: {}