sample-device-plugin.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. apiVersion: apps/v1
  2. kind: DaemonSet
  3. metadata:
  4. name: sample-device-plugin-beta
  5. namespace: kube-system
  6. labels:
  7. k8s-app: sample-device-plugin
  8. spec:
  9. selector:
  10. matchLabels:
  11. k8s-app: sample-device-plugin
  12. template:
  13. metadata:
  14. labels:
  15. k8s-app: sample-device-plugin
  16. annotations:
  17. spec:
  18. priorityClassName: system-node-critical
  19. tolerations:
  20. - operator: "Exists"
  21. effect: "NoExecute"
  22. - operator: "Exists"
  23. effect: "NoSchedule"
  24. volumes:
  25. - name: device-plugin
  26. hostPath:
  27. path: /var/lib/kubelet/device-plugins
  28. - name: plugins-registry-probe-mode
  29. hostPath:
  30. path: /var/lib/kubelet/plugins_registry
  31. - name: dev
  32. hostPath:
  33. path: /dev
  34. containers:
  35. - image: gcr.io/kubernetes-e2e-test-images/sample-device-plugin:1.0
  36. name: sample-device-plugin
  37. env:
  38. - name: PLUGIN_SOCK_DIR
  39. value: "/var/lib/kubelet/device-plugins"
  40. securityContext:
  41. privileged: true
  42. volumeMounts:
  43. - name: device-plugin
  44. mountPath: /var/lib/kubelet/device-plugins
  45. - name: plugins-registry-probe-mode
  46. mountPath: /var/lib/kubelet/plugins_registry
  47. - name: dev
  48. mountPath: /dev
  49. updateStrategy:
  50. type: RollingUpdate