forked from changhiskhan/seldoncloudflow
-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_tfserving_rest.yaml
executable file
·48 lines (48 loc) · 1.62 KB
/
model_tfserving_rest.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
apiVersion: machinelearning.seldon.io/v1
kind: SeldonDeployment
metadata:
name: rest-tfserving
spec:
name: resttfserving
predictors:
- protocol: tensorflow
transport: rest
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: 8501
name: http
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: 8501
name: model
replicas: 1