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
|
|
|
|
hostNetwork: true
|
|
|
|
hostPID: true
|
|
|
|
volumes:
|
|
|
|
- name: device-plugin
|
|
|
|
hostPath:
|
|
|
|
path: /var/lib/kubelet/device-plugins
|
|
|
|
- name: dev
|
|
|
|
hostPath:
|
|
|
|
path: /dev
|
|
|
|
containers:
|
|
|
|
- image: "gcr.io/google-containers/nvidia-gpu-device-plugin@sha256:943a62949cd80c26e7371d4e123dac61b4cc7281390721aaa95f265171094842"
|
|
|
|
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
|