-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsample-deployment-text.yaml
More file actions
49 lines (49 loc) · 1.27 KB
/
sample-deployment-text.yaml
File metadata and controls
49 lines (49 loc) · 1.27 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
# python vector db app deployment for text
apiVersion: apps/v1
kind: Deployment
metadata:
name: python-ceph-vectordb-text
spec:
replicas: 1
selector:
matchLabels: &labels
app: python-ceph-vectordb-text
template:
metadata:
labels: *labels
spec:
containers:
- name: python-ceph-vectordb-text
image: quay.io/jthottan/pythonwebserver:python-vectordb-ceph
envFrom:
- configMapRef:
name: ceph-notification-bucket-text
- secretRef:
name: ceph-notification-bucket-text
- configMapRef:
name: python-ceph-vectordb-text
---
# Service that exposes python-vector-db-app app.
# This will be the subscriber for the Trigger
kind: Service
apiVersion: v1
metadata:
name: python-ceph-vectordb-text
spec:
selector:
app: python-ceph-vectordb-text
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
#If it is a operator most likely this configmap will be part of CRD values
#Currently per app for each bucket, ideally one app should support multiple buckets
kind: ConfigMap
apiVersion: v1
metadata:
name: python-ceph-vectordb-text
data:
MILVUS_ENDPOINT : "http://my-release-milvus.default.svc:19530"
OBJECT_TYPE : "TEXT"
VECTOR_DIMENSION: "384"