questions.yaml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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. enum:
  207. - value: "hostPath"
  208. description: Host Path (Path that already exists on the system)
  209. - value: "ixVolume"
  210. description: ixVolume (Dataset created automatically by the system)
  211. - variable: mountPath
  212. label: Mount Path
  213. description: The path inside the container to mount the storage.
  214. schema:
  215. type: path
  216. required: true
  217. - variable: hostPath
  218. label: Host Path
  219. description: The host path to use for storage.
  220. schema:
  221. type: hostpath
  222. show_if: [["type", "=", "hostPath"]]
  223. required: true
  224. - variable: datasetName
  225. label: Dataset Name
  226. description: The name of the dataset to use for storage.
  227. schema:
  228. type: string
  229. show_if: [["type", "=", "ixVolume"]]
  230. required: true
  231. immutable: true
  232. default: "storage_entry"
  233. $ref:
  234. - "normalize/ixVolume"
  235. - variable: resources
  236. label: Resources Configuration
  237. group: Resources Configuration
  238. schema:
  239. type: dict
  240. attrs:
  241. - variable: limits
  242. label: Limits
  243. schema:
  244. type: dict
  245. attrs:
  246. - variable: cpu
  247. label: CPU
  248. description: CPU limit for qBittorrent.
  249. schema:
  250. type: string
  251. max_length: 6
  252. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  253. valid_chars_error: |
  254. Valid CPU limit formats are</br>
  255. - Plain Integer - eg. 1</br>
  256. - Float - eg. 0.5</br>
  257. - Milicpu - eg. 500m
  258. default: "4000m"
  259. required: true
  260. - variable: memory
  261. label: Memory
  262. description: Memory limit for qBittorrent.
  263. schema:
  264. type: string
  265. max_length: 12
  266. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  267. valid_chars_error: |
  268. Valid Memory limit formats are</br>
  269. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  270. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  271. - Plain Integer in bytes - eg. 1024</br>
  272. - Exponent - eg. 134e6
  273. default: "8Gi"
  274. required: true