mirror of https://github.com/k3s-io/k3s
56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
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
|
|
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:
|
|
- key: "nvidia.com/gpu"
|
|
effect: "NoSchedule"
|
|
operator: "Exists"
|
|
hostNetwork: true
|
|
hostPID: true
|
|
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:0e79da6998a61257585e0d3fb5848240129f0fa5b4ad972dfed4049448093c33"
|
|
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
|