questions.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. groups:
  2. - name: qBittorrent Configuration
  3. description: Configure qBittorrent
  4. - name: User and Group Configuration
  5. description: Configure User and Group for qBittorrent
  6. - name: Network Configuration
  7. description: Configure Network for qBittorrent
  8. - name: Storage Configuration
  9. description: Configure Storage for qBittorrent
  10. - name: Resources Configuration
  11. description: Configure Resources for qBittorrent
  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: qbitConfig
  23. label: ""
  24. group: qBittorrent Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: additionalEnvs
  29. label: Additional Environment Variables
  30. description: Configure additional environment variables for qBittorrent.
  31. schema:
  32. type: list
  33. default: []
  34. items:
  35. - variable: env
  36. label: Environment Variable
  37. schema:
  38. type: dict
  39. attrs:
  40. - variable: name
  41. label: Name
  42. schema:
  43. type: string
  44. required: true
  45. - variable: value
  46. label: Value
  47. schema:
  48. type: string
  49. required: true
  50. - variable: qbitRunAs
  51. label: ""
  52. group: User and Group Configuration
  53. schema:
  54. type: dict
  55. attrs:
  56. - variable: user
  57. label: User ID
  58. description: The user id that qBittorrent will run as.
  59. schema:
  60. type: int
  61. min: 2
  62. default: 568
  63. required: true
  64. - variable: group
  65. label: Group ID
  66. description: The group id that qBittorrent will run as.
  67. schema:
  68. type: int
  69. min: 2
  70. default: 568
  71. required: true
  72. - variable: qbitNetwork
  73. label: ""
  74. group: Network Configuration
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: webPort
  79. label: Web Port
  80. description: The port for the qBittorrent Web UI.
  81. schema:
  82. type: int
  83. default: 30024
  84. min: 9000
  85. max: 65535
  86. required: true
  87. - variable: btPort
  88. label: BT Port
  89. description: The port for the qBittorrent BitTorrent protocol. Both TCP and UDP
  90. schema:
  91. type: int
  92. default: 50413
  93. min: 9000
  94. max: 65535
  95. required: true
  96. - variable: hostNetwork
  97. label: Host Network
  98. description: |
  99. Bind to the host network. It's recommended to keep this disabled.</br>
  100. schema:
  101. type: boolean
  102. default: false
  103. - variable: qbitStorage
  104. label: ""
  105. group: Storage Configuration
  106. schema:
  107. type: dict
  108. attrs:
  109. - variable: downloads
  110. label: qBittorrent Downloads Storage
  111. description: The path to store qBittorrent Downloads.
  112. schema:
  113. type: dict
  114. attrs:
  115. - variable: type
  116. label: Type
  117. description: |
  118. ixVolume: Is dataset created automatically by the system.</br>
  119. Host Path: Is a path that already exists on the system.
  120. schema:
  121. type: string
  122. required: true
  123. default: ixVolume
  124. enum:
  125. - value: hostPath
  126. description: Host Path (Path that already exists on the system)
  127. - value: ixVolume
  128. description: ixVolume (Dataset created automatically by the system)
  129. - variable: datasetName
  130. label: Dataset Name
  131. schema:
  132. type: string
  133. show_if: [["type", "=", "ixVolume"]]
  134. required: true
  135. hidden: true
  136. immutable: true
  137. default: downloads
  138. $ref:
  139. - "normalize/ixVolume"
  140. - variable: hostPath
  141. label: Host Path
  142. schema:
  143. type: hostpath
  144. show_if: [["type", "=", "hostPath"]]
  145. immutable: true
  146. required: true
  147. - variable: config
  148. label: qBittorrent Config Storage
  149. description: The path to store qBittorrent Configuration.
  150. schema:
  151. type: dict
  152. attrs:
  153. - variable: type
  154. label: Type
  155. description: |
  156. ixVolume: Is dataset created automatically by the system.</br>
  157. Host Path: Is a path that already exists on the system.
  158. schema:
  159. type: string
  160. required: true
  161. default: ixVolume
  162. enum:
  163. - value: hostPath
  164. description: Host Path (Path that already exists on the system)
  165. - value: ixVolume
  166. description: ixVolume (Dataset created automatically by the system)
  167. - variable: datasetName
  168. label: Dataset Name
  169. schema:
  170. type: string
  171. show_if: [["type", "=", "ixVolume"]]
  172. required: true
  173. hidden: true
  174. immutable: true
  175. default: config
  176. $ref:
  177. - "normalize/ixVolume"
  178. - variable: hostPath
  179. label: Host Path
  180. schema:
  181. type: hostpath
  182. show_if: [["type", "=", "hostPath"]]
  183. immutable: true
  184. required: true
  185. - variable: additionalStorages
  186. label: Additional Storage
  187. description: qBittorrent additional storage
  188. schema:
  189. type: list
  190. default: []
  191. items:
  192. - variable: storageEntry
  193. label: Storage Entry
  194. schema:
  195. type: dict
  196. attrs:
  197. - variable: type
  198. label: Type
  199. description: |
  200. ixVolume: Is dataset created automatically by the system.</br>
  201. Host Path: Is a path that already exists on the system.
  202. schema:
  203. type: string
  204. required: true
  205. default: "ixVolume"
  206. immutable: true
  207. enum:
  208. - value: "hostPath"
  209. description: Host Path (Path that already exists on the system)
  210. - value: "ixVolume"
  211. description: ixVolume (Dataset created automatically by the system)
  212. - value: "smb-pv-pvc"
  213. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  214. - variable: mountPath
  215. label: Mount Path
  216. description: The path inside the container to mount the storage.
  217. schema:
  218. type: path
  219. required: true
  220. - variable: hostPath
  221. label: Host Path
  222. description: The host path to use for storage.
  223. schema:
  224. type: hostpath
  225. show_if: [["type", "=", "hostPath"]]
  226. required: true
  227. - variable: datasetName
  228. label: Dataset Name
  229. description: The name of the dataset to use for storage.
  230. schema:
  231. type: string
  232. show_if: [["type", "=", "ixVolume"]]
  233. required: true
  234. immutable: true
  235. default: "storage_entry"
  236. $ref:
  237. - "normalize/ixVolume"
  238. - variable: server
  239. label: Server
  240. description: The server for the SMB share.
  241. schema:
  242. type: string
  243. show_if: [["type", "=", "smb-pv-pvc"]]
  244. required: true
  245. - variable: share
  246. label: Share
  247. description: The share name for the SMB share.
  248. schema:
  249. type: string
  250. show_if: [["type", "=", "smb-pv-pvc"]]
  251. required: true
  252. - variable: domain
  253. label: Domain (Optional)
  254. description: The domain for the SMB share.
  255. schema:
  256. type: string
  257. show_if: [["type", "=", "smb-pv-pvc"]]
  258. - variable: username
  259. label: Username
  260. description: The username for the SMB share.
  261. schema:
  262. type: string
  263. show_if: [["type", "=", "smb-pv-pvc"]]
  264. required: true
  265. - variable: password
  266. label: Password
  267. description: The password for the SMB share.
  268. schema:
  269. type: string
  270. show_if: [["type", "=", "smb-pv-pvc"]]
  271. required: true
  272. private: true
  273. - variable: size
  274. label: Size (in Gi)
  275. description: The size of the volume quota.
  276. schema:
  277. type: int
  278. show_if: [["type", "=", "smb-pv-pvc"]]
  279. required: true
  280. min: 1
  281. default: 1
  282. - variable: resources
  283. label: Resources Configuration
  284. group: Resources Configuration
  285. schema:
  286. type: dict
  287. attrs:
  288. - variable: limits
  289. label: Limits
  290. schema:
  291. type: dict
  292. attrs:
  293. - variable: cpu
  294. label: CPU
  295. description: CPU limit for qBittorrent.
  296. schema:
  297. type: string
  298. max_length: 6
  299. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  300. valid_chars_error: |
  301. Valid CPU limit formats are</br>
  302. - Plain Integer - eg. 1</br>
  303. - Float - eg. 0.5</br>
  304. - Milicpu - eg. 500m
  305. default: "4000m"
  306. required: true
  307. - variable: memory
  308. label: Memory
  309. description: Memory limit for qBittorrent.
  310. schema:
  311. type: string
  312. max_length: 12
  313. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  314. valid_chars_error: |
  315. Valid Memory limit formats are</br>
  316. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  317. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  318. - Plain Integer in bytes - eg. 1024</br>
  319. - Exponent - eg. 134e6
  320. default: "8Gi"
  321. required: true