deployment.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: restreamer
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: restreamer
  9. app.kubernetes.io/part-of: restreamer
  10. template:
  11. metadata:
  12. labels:
  13. app.kubernetes.io/name: restreamer
  14. app.kubernetes.io/part-of: restreamer
  15. spec:
  16. containers:
  17. - image: datarhei/restreamer:2.12.0
  18. name: restreamer
  19. ports:
  20. - containerPort: 6000
  21. name: restreamer-0
  22. protocol: UDP
  23. - containerPort: 12080
  24. name: restreamer-1
  25. protocol: TCP
  26. - containerPort: 8181
  27. name: restreamer-2
  28. protocol: TCP
  29. - containerPort: 1935
  30. name: restreamer-3
  31. protocol: TCP
  32. - containerPort: 1936
  33. name: restreamer-4
  34. protocol: TCP
  35. resources:
  36. limits:
  37. cpu: 8000m
  38. memory: 1024Mi
  39. requests:
  40. cpu: 100m
  41. memory: 512Mi
  42. volumeMounts:
  43. - mountPath: /core/config
  44. name: config
  45. - mountPath: /core/data
  46. name: data
  47. volumes:
  48. - name: config
  49. hostPath:
  50. path: /opt/restreamer/config
  51. type: Directory
  52. - name: data
  53. hostPath:
  54. path: /opt/restreamer/data
  55. type: Directory