Skip to content

Commit cc0c463

Browse files
author
tylertitsworth
committed
validate tf serving
Signed-off-by: tylertitsworth <tyler.titsworth@intel.com>
1 parent 5cc2e18 commit cc0c463

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

workflows/charts/tensorflow-serving/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ TensorFlow Serving is a flexible, high-performance serving system for machine le
2525
| fullnameOverride | string | `""` | Full qualified Domain Name |
2626
| nameOverride | string | `""` | Name of the serving service |
2727
| pvc.size | string | `"5Gi"` | Size of the storage |
28-
| service.grpcPort | int | `8500` | |
29-
| service.restPort | int | `8501` | Port of the service |
3028
| service.type | string | `"NodePort"` | Type of service |
3129

3230
----------------------------------------------

workflows/charts/tensorflow-serving/templates/deployment.yaml

+9-2
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,16 @@ spec:
4545
value: {{ .Values.deploy.modelName }}
4646
ports:
4747
- name: rest
48-
containerPort: {{ .Values.service.restPort }}
48+
containerPort: 8500
49+
protocol: TCP
4950
- name: grpc
50-
containerPort: {{ .Values.service.grpcPort }}
51+
containerPort: 8501
52+
protocol: TCP
53+
readinessProbe:
54+
tcpSocket:
55+
port: rest
56+
initialDelay: 15
57+
timeoutSeconds: 1
5158
volumeMounts:
5259
- mountPath: /dev/shm
5360
name: dshm

workflows/charts/tensorflow-serving/templates/service.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ spec:
2222
type: {{ .Values.service.type }}
2323
ports:
2424
- name: rest
25-
port: {{ .Values.service.restPort }}
25+
port: 8500
2626
targetPort: rest
2727
- name: grpc
28-
port: {{ .Values.service.grpcPort }}
28+
port: 8501
2929
targetPort: grpc
3030
selector:
3131
{{- include "tensorflow-serving.selectorLabels" . | nindent 4 }}

workflows/charts/tensorflow-serving/templates/tests/test-connection.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ spec:
2525
- name: info
2626
image: curlimages/curl
2727
command: ['sh', '-c']
28-
args: ['curl -f {{ include "tensorflow-serving.fullname" . }}:{{ .Values.service.restPort }}/v1/model/{{ .Values.deploy.modelName}}']
28+
args: ['curl -f {{ include "tensorflow-serving.fullname" . }}:8501/v1/models/{{ .Values.deploy.modelName}}']
2929
restartPolicy: OnFailure

workflows/charts/tensorflow-serving/values.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ deploy:
4848
service:
4949
# -- Type of service
5050
type: NodePort
51-
# -- Port of the service
52-
restPort: 8501
53-
grpcPort: 8500
5451
pvc:
5552
# -- Size of the storage
5653
size: 5Gi

0 commit comments

Comments
 (0)