Skip to content

Instantly share code, notes, and snippets.

@gurvindersingh
Last active May 20, 2017 08:07
Show Gist options
  • Save gurvindersingh/7c597ef1f5698432e2abcf2af5584dc5 to your computer and use it in GitHub Desktop.
Save gurvindersingh/7c597ef1f5698432e2abcf2af5584dc5 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: gpu
labels:
app: gpu
spec:
replicas: 1
selector:
matchLabels:
app: gpu
template:
metadata:
labels:
app: gpu
driver: nvidia-gpu
spec:
containers:
- name: gpu-container
image: gcr.io/tensorflow/tensorflow:latest-gpu
imagePullPolicy: Always
resources:
requests:
alpha.kubernetes.io/nvidia-gpu: 1
limits:
alpha.kubernetes.io/nvidia-gpu: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment