peertube-deployment.yaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: peertube
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. app.kubernetes.io/name: peertube
  10. app.kubernetes.io/part-of: peertube
  11. strategy:
  12. type: Recreate
  13. template:
  14. metadata:
  15. labels:
  16. app.kubernetes.io/name: peertube
  17. app.kubernetes.io/part-of: peertube
  18. spec:
  19. containers:
  20. - env:
  21. - name: OPENDKIM_DOMAINS
  22. valueFrom:
  23. configMapKeyRef:
  24. key: OPENDKIM_DOMAINS
  25. name: env
  26. - name: OPENDKIM_RequireSafeKeys
  27. valueFrom:
  28. configMapKeyRef:
  29. key: OPENDKIM_RequireSafeKeys
  30. name: env
  31. - name: PEERTUBE_ADMIN_EMAIL
  32. valueFrom:
  33. configMapKeyRef:
  34. key: PEERTUBE_ADMIN_EMAIL
  35. name: env
  36. - name: PEERTUBE_DB_HOSTNAME
  37. valueFrom:
  38. configMapKeyRef:
  39. key: PEERTUBE_DB_HOSTNAME
  40. name: env
  41. - name: PEERTUBE_DB_PASSWORD
  42. valueFrom:
  43. configMapKeyRef:
  44. key: PEERTUBE_DB_PASSWORD
  45. name: env
  46. - name: PEERTUBE_DB_SSL
  47. valueFrom:
  48. configMapKeyRef:
  49. key: PEERTUBE_DB_SSL
  50. name: env
  51. - name: PEERTUBE_DB_USERNAME
  52. valueFrom:
  53. configMapKeyRef:
  54. key: PEERTUBE_DB_USERNAME
  55. name: env
  56. - name: PEERTUBE_SMTP_DISABLE_STARTTLS
  57. valueFrom:
  58. configMapKeyRef:
  59. key: PEERTUBE_SMTP_DISABLE_STARTTLS
  60. name: env
  61. - name: PEERTUBE_SMTP_FROM
  62. valueFrom:
  63. configMapKeyRef:
  64. key: PEERTUBE_SMTP_FROM
  65. name: env
  66. - name: PEERTUBE_SMTP_HOSTNAME
  67. valueFrom:
  68. configMapKeyRef:
  69. key: PEERTUBE_SMTP_HOSTNAME
  70. name: env
  71. - name: PEERTUBE_SMTP_PORT
  72. valueFrom:
  73. configMapKeyRef:
  74. key: PEERTUBE_SMTP_PORT
  75. name: env
  76. - name: PEERTUBE_SMTP_TLS
  77. valueFrom:
  78. configMapKeyRef:
  79. key: PEERTUBE_SMTP_TLS
  80. name: env
  81. - name: PEERTUBE_TRUST_PROXY
  82. valueFrom:
  83. configMapKeyRef:
  84. key: PEERTUBE_TRUST_PROXY
  85. name: env
  86. - name: PEERTUBE_WEBSERVER_HOSTNAME
  87. valueFrom:
  88. configMapKeyRef:
  89. key: PEERTUBE_WEBSERVER_HOSTNAME
  90. name: env
  91. - name: POSTFIX_myhostname
  92. valueFrom:
  93. configMapKeyRef:
  94. key: POSTFIX_myhostname
  95. name: env
  96. - name: POSTGRES_DB
  97. valueFrom:
  98. configMapKeyRef:
  99. key: POSTGRES_DB
  100. name: env
  101. - name: POSTGRES_PASSWORD
  102. valueFrom:
  103. configMapKeyRef:
  104. key: POSTGRES_PASSWORD
  105. name: env
  106. - name: POSTGRES_USER
  107. valueFrom:
  108. configMapKeyRef:
  109. key: POSTGRES_USER
  110. name: env
  111. image: chocobozzz/peertube:production-bullseye
  112. name: peertube
  113. ports:
  114. - containerPort: 1935
  115. - containerPort: 9000
  116. resources:
  117. limits:
  118. cpu: 250m
  119. memory: 400Mi
  120. requests:
  121. cpu: 50m
  122. memory: 200Mi
  123. volumeMounts:
  124. - mountPath: /app/client/dist
  125. name: peertube-claim0
  126. - mountPath: /data
  127. name: peertube-claim1
  128. - mountPath: /data/logs
  129. name: peertube-claim2
  130. - mountPath: /data/tmp
  131. name: peertube-claim3
  132. - mountPath: /config
  133. name: peertube-claim4
  134. volumes:
  135. - name: peertube-claim0
  136. hostPath:
  137. path: /var/lib/peertube_assets
  138. type: Directory
  139. - name: peertube-claim1
  140. hostPath:
  141. path: /srv/peertube
  142. type: Directory
  143. - name: peertube-claim2
  144. hostPath:
  145. path: /var/log/peertube
  146. type: Directory
  147. - name: peertube-claim3
  148. hostPath:
  149. path: /var/lib/peertube/tmp
  150. type: Directory
  151. - name: peertube-claim4
  152. hostPath:
  153. path: /var/lib/peertube/config
  154. type: Directory