forked from SemanticBeeng/seldoncloudflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_tfserving_grpc.yaml
executable file
·51 lines (51 loc) · 1.69 KB
/
model_tfserving_grpc.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
apiVersion: machinelearning.seldon.io/v1
kind: SeldonDeployment
metadata:
name: grpc-tfserving
spec:
annotations:
seldon.io/headless-svc: "true"
name: grpctfserving
predictors:
- protocol: tensorflow
transport: grpc
componentSpecs:
- spec:
containers:
- args:
- --port=8500
- --rest_api_port=8501
- --model_name=recommender
- --model_base_path=s3://fdp-killrweather-data/kubeflow/recommeder/model-updated/recommender
image: tensorflow/serving:1.14.0
name: recommender
ports:
- containerPort: 8500
name: grpc
env:
- name: "AWS_REGION"
value: "eu-west-1"
- name: "S3_REGION"
value: "eu-west-1"
- name: "S3_ENDPOINT"
value: "s3.eu-west-1.amazonaws.com"
- name: "S3_USE_HTTPS"
value: "1"
- name: "S3_VERIFY_SSL"
value: "1"
- name: "AWS_ACCESS_KEY_ID"
valueFrom: { secretKeyRef: { name: "s3-credentials", key: "accessKey" } }
- name: "AWS_SECRET_ACCESS_KEY"
valueFrom: { secretKeyRef: { name: "s3-credentials", key: "secretKey" } }
volumes:
- name: secret-volume
secret:
secretName: s3-credentials
graph:
name: recommender
type: MODEL
endpoint:
service_port: 8500
type: GRPC
name: model
replicas: 5