questions.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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. immutable: true
  129. default: "ixVolume"
  130. enum:
  131. - value: "hostPath"
  132. description: Host Path (Path that already exists on the system)
  133. - value: "ixVolume"
  134. description: ixVolume (Dataset created automatically by the system)
  135. - variable: datasetName
  136. label: Dataset Name
  137. schema:
  138. type: string
  139. show_if: [["type", "=", "ixVolume"]]
  140. required: true
  141. hidden: true
  142. immutable: true
  143. default: "downloads"
  144. $ref:
  145. - "normalize/ixVolume"
  146. - variable: hostPath
  147. label: Host Path
  148. schema:
  149. type: hostpath
  150. show_if: [["type", "=", "hostPath"]]
  151. immutable: true
  152. required: true
  153. - variable: additionalStorages
  154. label: Additional Storage
  155. description: Additional storage for MeTube.
  156. schema:
  157. type: list
  158. default: []
  159. items:
  160. - variable: storageEntry
  161. label: Storage Entry
  162. schema:
  163. type: dict
  164. attrs:
  165. - variable: type
  166. label: Type
  167. description: |
  168. ixVolume: Is dataset created automatically by the system.</br>
  169. Host Path: Is a path that already exists on the system.</br>
  170. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  171. schema:
  172. type: string
  173. required: true
  174. default: "ixVolume"
  175. immutable: true
  176. enum:
  177. - value: "hostPath"
  178. description: Host Path (Path that already exists on the system)
  179. - value: "ixVolume"
  180. description: ixVolume (Dataset created automatically by the system)
  181. - value: "smb-pv-pvc"
  182. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  183. - variable: mountPath
  184. label: Mount Path
  185. description: The path inside the container to mount the storage.
  186. schema:
  187. type: path
  188. required: true
  189. - variable: hostPath
  190. label: Host Path
  191. description: The host path to use for storage.
  192. schema:
  193. type: hostpath
  194. show_if: [["type", "=", "hostPath"]]
  195. required: true
  196. - variable: datasetName
  197. label: Dataset Name
  198. description: The name of the dataset to use for storage.
  199. schema:
  200. type: string
  201. show_if: [["type", "=", "ixVolume"]]
  202. required: true
  203. immutable: true
  204. default: "storage_entry"
  205. $ref:
  206. - "normalize/ixVolume"
  207. - variable: server
  208. label: Server
  209. description: The server for the SMB share.
  210. schema:
  211. type: string
  212. show_if: [["type", "=", "smb-pv-pvc"]]
  213. required: true
  214. - variable: share
  215. label: Share
  216. description: The share name for the SMB share.
  217. schema:
  218. type: string
  219. show_if: [["type", "=", "smb-pv-pvc"]]
  220. required: true
  221. - variable: domain
  222. label: Domain (Optional)
  223. description: The domain for the SMB share.
  224. schema:
  225. type: string
  226. show_if: [["type", "=", "smb-pv-pvc"]]
  227. - variable: username
  228. label: Username
  229. description: The username for the SMB share.
  230. schema:
  231. type: string
  232. show_if: [["type", "=", "smb-pv-pvc"]]
  233. required: true
  234. - variable: password
  235. label: Password
  236. description: The password for the SMB share.
  237. schema:
  238. type: string
  239. show_if: [["type", "=", "smb-pv-pvc"]]
  240. required: true
  241. private: true
  242. - variable: size
  243. label: Size (in Gi)
  244. description: The size of the volume quota.
  245. schema:
  246. type: int
  247. show_if: [["type", "=", "smb-pv-pvc"]]
  248. required: true
  249. min: 1
  250. default: 1
  251. - variable: resources
  252. group: Resources Configuration
  253. label: ""
  254. schema:
  255. type: dict
  256. attrs:
  257. - variable: limits
  258. label: Limits
  259. schema:
  260. type: dict
  261. attrs:
  262. - variable: cpu
  263. label: CPU
  264. description: CPU limit for MeTube.
  265. schema:
  266. type: string
  267. max_length: 6
  268. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  269. valid_chars_error: |
  270. Valid CPU limit formats are</br>
  271. - Plain Integer - eg. 1</br>
  272. - Float - eg. 0.5</br>
  273. - Milicpu - eg. 500m
  274. default: "4000m"
  275. required: true
  276. - variable: memory
  277. label: Memory
  278. description: Memory limit for MeTube.
  279. schema:
  280. type: string
  281. max_length: 12
  282. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  283. valid_chars_error: |
  284. Valid Memory limit formats are</br>
  285. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  286. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  287. - Plain Integer in bytes - eg. 1024</br>
  288. - Exponent - eg. 134e6
  289. default: "8Gi"
  290. required: true