-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsample-deployment-image.yaml
47 lines (47 loc) · 1.13 KB
/
sample-deployment-image.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
# python vector db app deployment for image
apiVersion: apps/v1
kind: Deployment
metadata:
name: python-ceph-vectordb-image
spec:
replicas: 1
selector:
matchLabels: &labels
app: python-ceph-vectordb-image
template:
metadata:
labels: *labels
spec:
containers:
- name: python-ceph-vectordb-image
image: quay.io/jthottan/pythonwebserver:python-vectordb-ceph
envFrom:
- configMapRef:
name: ceph-notification-bucket-image
- secretRef:
name: ceph-notification-bucket-image
- configMapRef:
name: python-ceph-vectordb-image
---
# 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-image
spec:
selector:
app: python-ceph-vectordb-image
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
kind: ConfigMap
apiVersion: v1
metadata:
name: python-ceph-vectordb-image
data:
MILVUS_ENDPOINT : "http://my-release-milvus.default.svc:19530"
OBJECT_TYPE : "IMAGE"
VECTOR_DIMENSION: "512"