2018-05-25 00:53:07 +00:00
|
|
|
apiVersion: apps/v1
|
2017-10-30 22:50:08 +00:00
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: nvidia-gpu-device-plugin
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
k8s-app: nvidia-gpu-device-plugin
|
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
|
|
|
spec:
|
2018-05-25 00:53:07 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: nvidia-gpu-device-plugin
|
2017-10-30 22:50:08 +00:00
|
|
|
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:
|
2018-04-06 20:53:40 +00:00
|
|
|
- operator: "Exists"
|
|
|
|
effect: "NoExecute"
|
|
|
|
- operator: "Exists"
|
2017-11-29 19:31:39 +00:00
|
|
|
effect: "NoSchedule"
|
2017-10-30 22:50:08 +00:00
|
|
|
volumes:
|
|
|
|
- name: device-plugin
|
|
|
|
hostPath:
|
|
|
|
path: /var/lib/kubelet/device-plugins
|
|
|
|
- name: dev
|
|
|
|
hostPath:
|
|
|
|
path: /dev
|
|
|
|
containers:
|
2018-02-23 01:27:09 +00:00
|
|
|
- image: "k8s.gcr.io/nvidia-gpu-device-plugin@sha256:0842734032018be107fa2490c98156992911e3e1f2a21e059ff0105b07dd8e9e"
|
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
|
2018-05-25 00:53:07 +00:00
|
|
|
updateStrategy:
|
|
|
|
type: RollingUpdate
|