questions.yaml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. groups:
  2. - name: MeTube Configuration
  3. description: Configure MeTube
  4. - name: User and Group Configuration
  5. description: Configure User and Group for MeTube
  6. - name: Network Configuration
  7. description: Configure Network for MeTube
  8. - name: Storage Configuration
  9. description: Configure Storage for MeTube
  10. - name: Resources Configuration
  11. description: Configure Resources for MeTube
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "$kubernetes-resource_configmap_portal_protocol"
  16. host:
  17. - "$kubernetes-resource_configmap_portal_host"
  18. ports:
  19. - "$kubernetes-resource_configmap_portal_port"
  20. path: "$kubernetes-resource_configmap_portal_path"
  21. questions:
  22. - variable: MeTubeConfig
  23. label: ""
  24. group: MeTube Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: defaultTheme
  29. label: Default Theme
  30. description: The default theme for MeTube.
  31. schema:
  32. type: string
  33. default: auto
  34. required: true
  35. enum:
  36. - value: "auto"
  37. description: Auto
  38. - value: "dark"
  39. description: Dark
  40. - value: "light"
  41. description: Light
  42. - variable: additionalEnvs
  43. label: Additional Environment Variables
  44. description: Configure additional environment variables for MeTube.
  45. schema:
  46. type: list
  47. default: []
  48. items:
  49. - variable: env
  50. label: Environment Variable
  51. schema:
  52. type: dict
  53. attrs:
  54. - variable: name
  55. label: Name
  56. schema:
  57. type: string
  58. required: true
  59. - variable: value
  60. label: Value
  61. schema:
  62. type: string
  63. required: true
  64. - variable: MeTubeRunAs
  65. label: ""
  66. group: User and Group Configuration
  67. schema:
  68. type: dict
  69. attrs:
  70. - variable: user
  71. label: User ID
  72. description: The user id that MeTube will run as.
  73. schema:
  74. type: int
  75. min: 2
  76. default: 568
  77. required: true
  78. - variable: group
  79. label: Group ID
  80. description: The group id that MeTube will run as.
  81. schema:
  82. type: int
  83. min: 2
  84. default: 568
  85. required: true
  86. - variable: MeTubeNetwork
  87. label: ""
  88. group: Network Configuration
  89. schema:
  90. type: dict
  91. attrs:
  92. - variable: webPort
  93. label: Web Port
  94. description: The port for the MeTube Web UI.
  95. schema:
  96. type: int
  97. default: 30094
  98. min: 9000
  99. max: 65535
  100. required: true
  101. - variable: hostNetwork
  102. label: Host Network
  103. description: |
  104. Bind to the host network. It's recommended to keep this disabled.</br>
  105. schema:
  106. type: boolean
  107. default: false
  108. - variable: MeTubeStorage
  109. label: ""
  110. group: Storage Configuration
  111. schema:
  112. type: dict
  113. attrs:
  114. - variable: downloads
  115. label: MeTube Downloads Storage
  116. description: The path to store MeTube Downloads.
  117. schema:
  118. type: dict
  119. attrs:
  120. - variable: type
  121. label: Type
  122. description: |
  123. ixVolume: Is dataset created automatically by the system.</br>
  124. Host Path: Is a path that already exists on the system.
  125. schema:
  126. type: string
  127. required: true
  128. default: "ixVolume"
  129. enum:
  130. - value: "hostPath"
  131. description: Host Path (Path that already exists on the system)
  132. - value: "ixVolume"
  133. description: ixVolume (Dataset created automatically by the system)
  134. - variable: datasetName
  135. label: Dataset Name
  136. schema:
  137. type: string
  138. show_if: [["type", "=", "ixVolume"]]
  139. required: true
  140. hidden: true
  141. immutable: true
  142. default: "downloads"
  143. $ref:
  144. - "normalize/ixVolume"
  145. - variable: hostPath
  146. label: Host Path
  147. schema:
  148. type: hostpath
  149. show_if: [["type", "=", "hostPath"]]
  150. immutable: true
  151. required: true
  152. - variable: additionalStorages
  153. label: Additional Storage
  154. description: Additional storage for MeTube.
  155. schema:
  156. type: list
  157. default: []
  158. items:
  159. - variable: storageEntry
  160. label: Storage Entry
  161. schema:
  162. type: dict
  163. attrs:
  164. - variable: type
  165. label: Type
  166. description: |
  167. ixVolume: Is dataset created automatically by the system.</br>
  168. Host Path: Is a path that already exists on the system.
  169. schema:
  170. type: string
  171. required: true
  172. default: "ixVolume"
  173. enum:
  174. - value: "hostPath"
  175. description: Host Path (Path that already exists on the system)
  176. - value: "ixVolume"
  177. description: ixVolume (Dataset created automatically by the system)
  178. - variable: mountPath
  179. label: Mount Path
  180. description: The path inside the container to mount the storage.
  181. schema:
  182. type: path
  183. required: true
  184. - variable: hostPath
  185. label: Host Path
  186. description: The host path to use for storage.
  187. schema:
  188. type: hostpath
  189. show_if: [["type", "=", "hostPath"]]
  190. required: true
  191. - variable: datasetName
  192. label: Dataset Name
  193. description: The name of the dataset to use for storage.
  194. schema:
  195. type: string
  196. show_if: [["type", "=", "ixVolume"]]
  197. required: true
  198. immutable: true
  199. default: "storage_entry"
  200. $ref:
  201. - "normalize/ixVolume"
  202. - variable: resources
  203. group: Resources Configuration
  204. label: ""
  205. schema:
  206. type: dict
  207. attrs:
  208. - variable: limits
  209. label: Limits
  210. schema:
  211. type: dict
  212. attrs:
  213. - variable: cpu
  214. label: CPU
  215. description: CPU limit for MeTube.
  216. schema:
  217. type: string
  218. max_length: 6
  219. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  220. valid_chars_error: |
  221. Valid CPU limit formats are</br>
  222. - Plain Integer - eg. 1</br>
  223. - Float - eg. 0.5</br>
  224. - Milicpu - eg. 500m
  225. default: "4000m"
  226. required: true
  227. - variable: memory
  228. label: Memory
  229. description: Memory limit for MeTube.
  230. schema:
  231. type: string
  232. max_length: 12
  233. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  234. valid_chars_error: |
  235. Valid Memory limit formats are</br>
  236. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  237. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  238. - Plain Integer in bytes - eg. 1024</br>
  239. - Exponent - eg. 134e6
  240. default: "8Gi"
  241. required: true