mirror of https://github.com/k3s-io/k3s
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
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:0842734032018be107fa2490c98156992911e3e1f2a21e059ff0105b07dd8e9e"
|
|
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
|