123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- apiVersion: apps/v1
- kind: DaemonSet
- metadata:
- name: nvidia-gpu-device-plugin
- namespace: kube-system
- labels:
- k8s-app: nvidia-gpu-device-plugin
- addonmanager.kubernetes.io/mode: Reconcile
- spec:
- selector:
- matchLabels:
- k8s-app: nvidia-gpu-device-plugin
- template:
- metadata:
- labels:
- k8s-app: nvidia-gpu-device-plugin
- annotations:
- scheduler.alpha.kubernetes.io/critical-pod: ''
- spec:
- priorityClassName: system-node-critical
- affinity:
- nodeAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- nodeSelectorTerms:
- - matchExpressions:
- - key: cloud.google.com/gke-accelerator
- operator: Exists
- tolerations:
- - operator: "Exists"
- effect: "NoExecute"
- - operator: "Exists"
- effect: "NoSchedule"
- volumes:
- - name: device-plugin
- hostPath:
- path: /var/lib/kubelet/device-plugins
- - name: dev
- hostPath:
- path: /dev
- containers:
- - image: "k8s.gcr.io/nvidia-gpu-device-plugin@sha256:08509a36233c5096bb273a492251a9a5ca28558ab36d74007ca2a9d3f0b61e1d"
- command: ["/usr/bin/nvidia-gpu-device-plugin", "-logtostderr"]
- name: nvidia-gpu-device-plugin
- resources:
- requests:
- cpu: 50m
- memory: 10Mi
- limits:
- cpu: 50m
- memory: 10Mi
- securityContext:
- privileged: true
- volumeMounts:
- - name: device-plugin
- mountPath: /device-plugin
- - name: dev
- mountPath: /dev
- updateStrategy:
- type: RollingUpdate
|