questions.yaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  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: useHttpsProbe
  97. label: Use HTTPS Probe
  98. description: |
  99. Use HTTPS probe for the qBittorrent Web UI. </br>
  100. This will ONLY affect the probes, only enable this if you
  101. configured HTTPS in the qBittorrent Web UI.
  102. schema:
  103. type: boolean
  104. default: false
  105. - variable: hostNetwork
  106. label: Host Network
  107. description: |
  108. Bind to the host network. It's recommended to keep this disabled.</br>
  109. schema:
  110. type: boolean
  111. default: false
  112. - variable: qbitStorage
  113. label: ""
  114. group: Storage Configuration
  115. schema:
  116. type: dict
  117. attrs:
  118. - variable: downloads
  119. label: qBittorrent Downloads Storage
  120. description: The path to store qBittorrent Downloads.
  121. schema:
  122. type: dict
  123. attrs:
  124. - variable: type
  125. label: Type
  126. description: |
  127. ixVolume: Is dataset created automatically by the system.</br>
  128. Host Path: Is a path that already exists on the system.
  129. schema:
  130. type: string
  131. required: true
  132. immutable: true
  133. default: ixVolume
  134. enum:
  135. - value: hostPath
  136. description: Host Path (Path that already exists on the system)
  137. - value: ixVolume
  138. description: ixVolume (Dataset created automatically by the system)
  139. - variable: ixVolumeConfig
  140. label: ixVolume Configuration
  141. description: The configuration for the ixVolume dataset.
  142. schema:
  143. type: dict
  144. show_if: [["type", "=", "ixVolume"]]
  145. $ref:
  146. - "normalize/ixVolume"
  147. attrs:
  148. - variable: aclEnable
  149. label: Enable ACL
  150. description: Enable ACL for the dataset.
  151. schema:
  152. type: boolean
  153. default: false
  154. - variable: datasetName
  155. label: Dataset Name
  156. description: The name of the dataset to use for storage.
  157. schema:
  158. type: string
  159. required: true
  160. immutable: true
  161. hidden: true
  162. default: "downloads"
  163. - variable: aclEntries
  164. label: ACL Configuration
  165. schema:
  166. type: dict
  167. show_if: [["aclEnable", "=", true]]
  168. attrs: []
  169. - variable: hostPathConfig
  170. label: Host Path Configuration
  171. schema:
  172. type: dict
  173. show_if: [["type", "=", "hostPath"]]
  174. attrs:
  175. - variable: aclEnable
  176. label: Enable ACL
  177. description: Enable ACL for the dataset.
  178. schema:
  179. type: boolean
  180. default: false
  181. - variable: acl
  182. label: ACL Configuration
  183. schema:
  184. type: dict
  185. show_if: [["aclEnable", "=", true]]
  186. attrs: []
  187. $ref:
  188. - "normalize/acl"
  189. - variable: hostPath
  190. label: Host Path
  191. description: The host path to use for storage.
  192. schema:
  193. type: hostpath
  194. show_if: [["aclEnable", "=", false]]
  195. required: true
  196. - variable: config
  197. label: qBittorrent Config Storage
  198. description: The path to store qBittorrent Configuration.
  199. schema:
  200. type: dict
  201. attrs:
  202. - variable: type
  203. label: Type
  204. description: |
  205. ixVolume: Is dataset created automatically by the system.</br>
  206. Host Path: Is a path that already exists on the system.
  207. schema:
  208. type: string
  209. required: true
  210. immutable: true
  211. default: ixVolume
  212. enum:
  213. - value: hostPath
  214. description: Host Path (Path that already exists on the system)
  215. - value: ixVolume
  216. description: ixVolume (Dataset created automatically by the system)
  217. - variable: ixVolumeConfig
  218. label: ixVolume Configuration
  219. description: The configuration for the ixVolume dataset.
  220. schema:
  221. type: dict
  222. show_if: [["type", "=", "ixVolume"]]
  223. $ref:
  224. - "normalize/ixVolume"
  225. attrs:
  226. - variable: aclEnable
  227. label: Enable ACL
  228. description: Enable ACL for the dataset.
  229. schema:
  230. type: boolean
  231. default: false
  232. - variable: datasetName
  233. label: Dataset Name
  234. description: The name of the dataset to use for storage.
  235. schema:
  236. type: string
  237. required: true
  238. immutable: true
  239. hidden: true
  240. default: "config"
  241. - variable: aclEntries
  242. label: ACL Configuration
  243. schema:
  244. type: dict
  245. show_if: [["aclEnable", "=", true]]
  246. attrs: []
  247. - variable: hostPathConfig
  248. label: Host Path Configuration
  249. schema:
  250. type: dict
  251. show_if: [["type", "=", "hostPath"]]
  252. attrs:
  253. - variable: aclEnable
  254. label: Enable ACL
  255. description: Enable ACL for the dataset.
  256. schema:
  257. type: boolean
  258. default: false
  259. - variable: acl
  260. label: ACL Configuration
  261. schema:
  262. type: dict
  263. show_if: [["aclEnable", "=", true]]
  264. attrs: []
  265. $ref:
  266. - "normalize/acl"
  267. - variable: hostPath
  268. label: Host Path
  269. description: The host path to use for storage.
  270. schema:
  271. type: hostpath
  272. show_if: [["aclEnable", "=", false]]
  273. required: true
  274. - variable: additionalStorages
  275. label: Additional Storage
  276. description: qBittorrent additional storage
  277. schema:
  278. type: list
  279. default: []
  280. items:
  281. - variable: storageEntry
  282. label: Storage Entry
  283. schema:
  284. type: dict
  285. attrs:
  286. - variable: type
  287. label: Type
  288. description: |
  289. ixVolume: Is dataset created automatically by the system.</br>
  290. Host Path: Is a path that already exists on the system.</br>
  291. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  292. schema:
  293. type: string
  294. required: true
  295. default: "ixVolume"
  296. immutable: true
  297. enum:
  298. - value: "hostPath"
  299. description: Host Path (Path that already exists on the system)
  300. - value: "ixVolume"
  301. description: ixVolume (Dataset created automatically by the system)
  302. - value: "smb-pv-pvc"
  303. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  304. - variable: readOnly
  305. label: Read Only
  306. description: Mount the volume as read only.
  307. schema:
  308. type: boolean
  309. default: false
  310. - variable: mountPath
  311. label: Mount Path
  312. description: The path inside the container to mount the storage.
  313. schema:
  314. type: path
  315. required: true
  316. - variable: hostPathConfig
  317. label: Host Path Configuration
  318. schema:
  319. type: dict
  320. show_if: [["type", "=", "hostPath"]]
  321. attrs:
  322. - variable: aclEnable
  323. label: Enable ACL
  324. description: Enable ACL for the dataset.
  325. schema:
  326. type: boolean
  327. default: false
  328. - variable: acl
  329. label: ACL Configuration
  330. schema:
  331. type: dict
  332. show_if: [["aclEnable", "=", true]]
  333. attrs: []
  334. $ref:
  335. - "normalize/acl"
  336. - variable: hostPath
  337. label: Host Path
  338. description: The host path to use for storage.
  339. schema:
  340. type: hostpath
  341. show_if: [["aclEnable", "=", false]]
  342. required: true
  343. - variable: ixVolumeConfig
  344. label: ixVolume Configuration
  345. description: The configuration for the ixVolume dataset.
  346. schema:
  347. type: dict
  348. show_if: [["type", "=", "ixVolume"]]
  349. $ref:
  350. - "normalize/ixVolume"
  351. attrs:
  352. - variable: aclEnable
  353. label: Enable ACL
  354. description: Enable ACL for the dataset.
  355. schema:
  356. type: boolean
  357. default: false
  358. - variable: datasetName
  359. label: Dataset Name
  360. description: The name of the dataset to use for storage.
  361. schema:
  362. type: string
  363. required: true
  364. immutable: true
  365. default: "storage_entry"
  366. - variable: aclEntries
  367. label: ACL Configuration
  368. schema:
  369. type: dict
  370. show_if: [["aclEnable", "=", true]]
  371. attrs: []
  372. - variable: smbConfig
  373. label: SMB Share Configuration
  374. description: The configuration for the SMB Share.
  375. schema:
  376. type: dict
  377. show_if: [["type", "=", "smb-pv-pvc"]]
  378. attrs:
  379. - variable: server
  380. label: Server
  381. description: The server for the SMB share.
  382. schema:
  383. type: string
  384. required: true
  385. - variable: share
  386. label: Share
  387. description: The share name for the SMB share.
  388. schema:
  389. type: string
  390. required: true
  391. - variable: domain
  392. label: Domain (Optional)
  393. description: The domain for the SMB share.
  394. schema:
  395. type: string
  396. - variable: username
  397. label: Username
  398. description: The username for the SMB share.
  399. schema:
  400. type: string
  401. required: true
  402. - variable: password
  403. label: Password
  404. description: The password for the SMB share.
  405. schema:
  406. type: string
  407. required: true
  408. private: true
  409. - variable: size
  410. label: Size (in Gi)
  411. description: The size of the volume quota.
  412. schema:
  413. type: int
  414. required: true
  415. min: 1
  416. default: 1
  417. - variable: resources
  418. label: Resources Configuration
  419. group: Resources Configuration
  420. schema:
  421. type: dict
  422. attrs:
  423. - variable: limits
  424. label: Limits
  425. schema:
  426. type: dict
  427. attrs:
  428. - variable: cpu
  429. label: CPU
  430. description: CPU limit for qBittorrent.
  431. schema:
  432. type: string
  433. max_length: 6
  434. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  435. valid_chars_error: |
  436. Valid CPU limit formats are</br>
  437. - Plain Integer - eg. 1</br>
  438. - Float - eg. 0.5</br>
  439. - Milicpu - eg. 500m
  440. default: "4000m"
  441. required: true
  442. - variable: memory
  443. label: Memory
  444. description: Memory limit for qBittorrent.
  445. schema:
  446. type: string
  447. max_length: 12
  448. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  449. valid_chars_error: |
  450. Valid Memory limit formats are</br>
  451. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  452. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  453. - Plain Integer in bytes - eg. 1024</br>
  454. - Exponent - eg. 134e6
  455. default: "8Gi"
  456. required: true