k8s_infiniband.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: infiniband-container
  5. namespace: network-config
  6. labels:
  7. app: infiniband
  8. spec:
  9. selector:
  10. matchLabels:
  11. app: infiniband
  12. replicas: 1
  13. strategy:
  14. type: RollingUpdate
  15. template:
  16. metadata:
  17. labels:
  18. app: infiniband
  19. spec:
  20. hostNetwork: true
  21. volumes:
  22. - name: omnia-storage
  23. hostPath:
  24. path: /root/omnia
  25. type: Directory
  26. - name: opensm-cache
  27. hostPath:
  28. path: /var/cache/opensm
  29. type: Directory
  30. - name: opensm-logs
  31. hostPath:
  32. path: /var/log
  33. type: Directory
  34. containers:
  35. - name: infiniband-container
  36. image: 'localhost/infiniband-container:latest'
  37. imagePullPolicy: Never
  38. command:
  39. - /sbin/init
  40. volumeMounts:
  41. - name: omnia-storage
  42. mountPath: /root/omnia
  43. - mountPath: /var/cache/opensm
  44. name: opensm-cache
  45. - mountPath: /var/log
  46. name: opensm-logs
  47. resources:
  48. limits:
  49. memory: "10Gi"
  50. securityContext:
  51. allowPrivilegeEscalation: true
  52. capabilities:
  53. add:
  54. - NET_RAW
  55. privileged: true