k8s_infiniband.yml 926 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. containers:
  27. - name: infiniband-container
  28. image: 'localhost/infiniband-container:latest'
  29. imagePullPolicy: Never
  30. command: ["sh", "-c", "tail -f /dev/null"]
  31. volumeMounts:
  32. - name: omnia-storage
  33. mountPath: /root/omnia
  34. securityContext:
  35. allowPrivilegeEscalation: true
  36. capabilities:
  37. add:
  38. - NET_RAW
  39. privileged: false