Skip to content

Instantly share code, notes, and snippets.

@vishh
Created February 12, 2018 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vishh/f401e7fe670aa3962aef0f484cb71dc7 to your computer and use it in GitHub Desktop.
Save vishh/f401e7fe670aa3962aef0f484cb71dc7 to your computer and use it in GitHub Desktop.
spec:
replicas: 1
template:
metadata:
labels:
app: inception-server
spec:
containers:
- name: inception-container
image: gcr.io/vishnuk-cloud/tf-serving-gpu
resources:
limits:
nvidia.com/gpu: 1
command:
- /usr/local/bin/tensorflow_model_server
args:
- --port=9000
- --model_name=inception
- --model_base_path=gs://kubeflow-models/inception
ports:
- containerPort: 9000
---
apiVersion: v1
kind: Service
metadata:
labels:
run: inception-service
name: inception-service
spec:
ports:
- port: 9000
targetPort: 9000
selector:
app: inception-server
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment