mirror of https://github.com/k3d-io/k3d
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
4 years ago
|
apiVersion: apps/v1
|
||
|
kind: DaemonSet
|
||
|
metadata:
|
||
|
name: nvidia-device-plugin-daemonset
|
||
|
namespace: kube-system
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
name: nvidia-device-plugin-ds
|
||
|
template:
|
||
|
metadata:
|
||
|
# Mark this pod as a critical add-on; when enabled, the critical add-on scheduler
|
||
|
# reserves resources for critical add-on pods so that they can be rescheduled after
|
||
|
# a failure. This annotation works in tandem with the toleration below.
|
||
|
annotations:
|
||
|
scheduler.alpha.kubernetes.io/critical-pod: ""
|
||
|
labels:
|
||
|
name: nvidia-device-plugin-ds
|
||
|
spec:
|
||
|
tolerations:
|
||
|
# Allow this pod to be rescheduled while the node is in "critical add-ons only" mode.
|
||
|
# This, along with the annotation above marks this pod as a critical add-on.
|
||
|
- key: CriticalAddonsOnly
|
||
|
operator: Exists
|
||
|
containers:
|
||
|
- env:
|
||
|
- name: DP_DISABLE_HEALTHCHECKS
|
||
|
value: xids
|
||
|
image: nvidia/k8s-device-plugin:1.11
|
||
|
name: nvidia-device-plugin-ctr
|
||
|
securityContext:
|
||
|
allowPrivilegeEscalation: true
|
||
|
capabilities:
|
||
|
drop: ["ALL"]
|
||
|
volumeMounts:
|
||
|
- name: device-plugin
|
||
|
mountPath: /var/lib/kubelet/device-plugins
|
||
|
volumes:
|
||
|
- name: device-plugin
|
||
|
hostPath:
|
||
|
path: /var/lib/kubelet/device-plugins
|