questions.yaml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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: resources
  186. label: Resources Configuration
  187. group: Resources Configuration
  188. schema:
  189. type: dict
  190. attrs:
  191. - variable: limits
  192. label: Limits
  193. schema:
  194. type: dict
  195. attrs:
  196. - variable: cpu
  197. label: CPU
  198. description: CPU limit for qBittorrent.
  199. schema:
  200. type: string
  201. max_length: 6
  202. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  203. valid_chars_error: |
  204. Valid CPU limit formats are</br>
  205. - Plain Integer - eg. 1</br>
  206. - Float - eg. 0.5</br>
  207. - Milicpu - eg. 500m
  208. default: "4000m"
  209. required: true
  210. - variable: memory
  211. label: Memory
  212. description: Memory limit for qBittorrent.
  213. schema:
  214. type: string
  215. max_length: 12
  216. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  217. valid_chars_error: |
  218. Valid Memory limit formats are</br>
  219. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  220. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  221. - Plain Integer in bytes - eg. 1024</br>
  222. - Exponent - eg. 134e6
  223. default: "8Gi"
  224. required: true