sriovdp-ds.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. apiVersion: apps/v1
  2. kind: DaemonSet
  3. metadata:
  4. name: kube-sriov-device-plugin-amd64
  5. namespace: kube-system
  6. labels:
  7. tier: node
  8. app: sriovdp
  9. spec:
  10. selector:
  11. matchLabels:
  12. name: sriov-device-plugin
  13. template:
  14. metadata:
  15. labels:
  16. name: sriov-device-plugin
  17. tier: node
  18. app: sriovdp
  19. spec:
  20. hostNetwork: true
  21. hostPID: true
  22. nodeSelector:
  23. beta.kubernetes.io/arch: amd64
  24. tolerations:
  25. - key: node-role.kubernetes.io/master
  26. operator: Exists
  27. effect: NoSchedule
  28. serviceAccountName: sriov-device-plugin
  29. containers:
  30. - name: kube-sriovdp
  31. image: docker.io/nfvpe/sriov-device-plugin:v3.1
  32. imagePullPolicy: Never
  33. args:
  34. - --log-dir=sriovdp
  35. - --log-level=10
  36. securityContext:
  37. privileged: true
  38. volumeMounts:
  39. - name: devicesock
  40. mountPath: /var/lib/kubelet/
  41. readOnly: false
  42. - name: log
  43. mountPath: /var/log
  44. - name: config-volume
  45. mountPath: /etc/pcidp
  46. volumes:
  47. - name: devicesock
  48. hostPath:
  49. path: /var/lib/kubelet/
  50. - name: log
  51. hostPath:
  52. path: /var/log
  53. - name: config-volume
  54. configMap:
  55. name: sriovdp-config
  56. items:
  57. - key: config.json
  58. path: config.json