2017-10-30 22:50:08 +00:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: nvidia-gpu-device-plugin
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
k8s-app: nvidia-gpu-device-plugin
|
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: nvidia-gpu-device-plugin
|
2017-11-20 18:55:10 +00:00
|
|
|
annotations:
|
|
|
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
2017-10-30 22:50:08 +00:00
|
|
|
spec:
|
2017-11-20 18:55:10 +00:00
|
|
|
priorityClassName: system-node-critical
|
2017-10-30 22:50:08 +00:00
|
|
|
affinity:
|
|
|
|
nodeAffinity:
|
|
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
nodeSelectorTerms:
|
|
|
|
- matchExpressions:
|
|
|
|
- key: cloud.google.com/gke-accelerator
|
|
|
|
operator: Exists
|
2017-11-29 19:31:39 +00:00
|
|
|
tolerations:
|
|
|
|
- key: "nvidia.com/gpu"
|
|
|
|
effect: "NoSchedule"
|
|
|
|
operator: "Exists"
|
2017-10-30 22:50:08 +00:00
|
|
|
hostNetwork: true
|
|
|
|
hostPID: true
|
|
|
|
volumes:
|
|
|
|
- name: device-plugin
|
|
|
|
hostPath:
|
|
|
|
path: /var/lib/kubelet/device-plugins
|
|
|
|
- name: dev
|
|
|
|
hostPath:
|
|
|
|
path: /dev
|
|
|
|
containers:
|
Switch to k8s.gcr.io vanity domain
This is the 2nd attempt. The previous was reverted while we figured out
the regional mirrors (oops).
New plan: k8s.gcr.io is a read-only facade that auto-detects your source
region (us, eu, or asia for now) and pulls from the closest. To publish
an image, push k8s-staging.gcr.io and it will be synced to the regionals
automatically (similar to today). For now the staging is an alias to
gcr.io/google_containers (the legacy URL).
When we move off of google-owned projects (working on it), then we just
do a one-time sync, and change the google-internal config, and nobody
outside should notice.
We can, in parallel, change the auto-sync into a manual sync - send a PR
to "promote" something from staging, and a bot activates it. Nice and
visible, easy to keep track of.
2018-01-17 19:36:53 +00:00
|
|
|
- image: "k8s.gcr.io/nvidia-gpu-device-plugin@sha256:0e79da6998a61257585e0d3fb5848240129f0fa5b4ad972dfed4049448093c33"
|
2017-10-30 22:50:08 +00:00
|
|
|
command: ["/usr/bin/nvidia-gpu-device-plugin", "-logtostderr"]
|
|
|
|
name: nvidia-gpu-device-plugin
|
|
|
|
resources:
|
|
|
|
requests:
|
2017-11-20 18:55:10 +00:00
|
|
|
cpu: 50m
|
|
|
|
memory: 10Mi
|
|
|
|
limits:
|
|
|
|
cpu: 50m
|
2017-10-30 22:50:08 +00:00
|
|
|
memory: 10Mi
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
volumeMounts:
|
|
|
|
- name: device-plugin
|
|
|
|
mountPath: /device-plugin
|
|
|
|
- name: dev
|
|
|
|
mountPath: /dev
|