Skip to content

Instantly share code, notes, and snippets.

@wbuchwalter
Created July 13, 2017 19:57
Show Gist options
  • Save wbuchwalter/4f28a4b2f03f11c00265aeaa51d6fa30 to your computer and use it in GitHub Desktop.
Save wbuchwalter/4f28a4b2f03f11c00265aeaa51d6fa30 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: tensorflow
name: tensorflow
spec:
template:
metadata:
labels:
app: tensorflow
spec:
containers:
- name: tensorflow
image: tensorflow/tensorflow:latest-gpu
command: ["python main.py"]
imagePullPolicy: IfNotPresent
env:
- name: LD_LIBRARY_PATH
value: /usr/lib/x86_64-linux-gnu_with_nvidia
resources:
requests:
alpha.kubernetes.io/nvidia-gpu: 1
limits:
alpha.kubernetes.io/nvidia-gpu: 1
volumeMounts:
- mountPath: /usr/lib/x86_64-linux-gnu_with_nvidia
name: libraries
volumes:
- name: libraries
hostPath:
path: /usr/lib/x86_64-linux-gnu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment