questions.yaml 12 KB

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