forked from louiezzang/faiss-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
faiss-server.yaml.sample
47 lines (47 loc) · 992 Bytes
/
faiss-server.yaml.sample
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
apiVersion: v1
kind: Service
metadata:
name: faiss-server
labels:
app: faiss-server
spec:
type: ClusterIP
#clusterIP: YOUR_CLUSTER_IP_ADDRESS
ports:
- name: grpc-faiss-dev-1
port: 50051
targetPort: 50051
protocol: TCP
- name: grpc-faiss-dev-2
port: 50052
targetPort: 50052
protocol: TCP
---
apiVersion: v1
kind: Pod
metadata:
name: faiss-server
labels:
app: faiss-server
spec:
containers:
- name: faiss-server-dev-1
image: YOUR_CONTAINER_REGISTRIES/faiss-server:1.0.0
imagePullPolicy: Always
command: ["python", "server.py"]
args: [
"--dim", "315"
]
ports:
- containerPort: 50051
- name: faiss-server-dev-2
image: YOUR_CONTAINER_REGISTRIES/faiss-server:1.0.0
imagePullPolicy: Always
command: ["python", "server.py"]
args: [
"--dim", "315"
]
ports:
- containerPort: 50052
imagePullSecrets:
- name: acr-auth