k8s_infiniband.yml 801 B

123456789101112131415161718192021222324252627282930313233343536
  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:
  31. - /sbin/init
  32. volumeMounts:
  33. - name: omnia-storage
  34. mountPath: /root/omnia
  35. securityContext:
  36. privileged: true