k8s_sm.yml 1000 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: subnet-manager
  5. namespace: subnet-manager
  6. labels:
  7. app: subnet-manager
  8. spec:
  9. selector:
  10. matchLabels:
  11. app: subnet-manager
  12. replicas: 1
  13. strategy:
  14. type: RollingUpdate
  15. template:
  16. metadata:
  17. labels:
  18. app: subnet-manager
  19. spec:
  20. hostNetwork: true
  21. containers:
  22. - name: opensm-service
  23. image: 'localhost/opensm-service:latest'
  24. imagePullPolicy: Never
  25. volumeMounts:
  26. - mountPath: /var/cache/opensm
  27. name: opensm-cache
  28. - mountPath: /var/log
  29. name: opensm-logs
  30. resources:
  31. limits:
  32. memory: "10Gi"
  33. securityContext:
  34. privileged: true
  35. volumes:
  36. - name: opensm-cache
  37. hostPath:
  38. path: /var/cache/opensm
  39. type: Directory
  40. - name: opensm-logs
  41. hostPath:
  42. path: /var/log
  43. type: Directory