Created
July 13, 2017 19:57
-
-
Save wbuchwalter/4f28a4b2f03f11c00265aeaa51d6fa30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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