questions.yaml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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: 1
  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: 1
  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: 30000
  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. schema:
  118. type: string
  119. required: true
  120. default: ixVolume
  121. enum:
  122. - value: hostPath
  123. description: Host Path
  124. - value: ixVolume
  125. description: ixVolume
  126. - variable: datasetName
  127. label: Dataset Name
  128. schema:
  129. type: string
  130. show_if: [["type", "=", "ixVolume"]]
  131. required: true
  132. hidden: true
  133. immutable: true
  134. default: downloads
  135. $ref:
  136. - "normalize/ixVolume"
  137. - variable: hostPath
  138. label: Host Path
  139. schema:
  140. type: hostpath
  141. show_if: [["type", "=", "hostPath"]]
  142. immutable: true
  143. required: true
  144. - variable: config
  145. label: qBittorrent Config Storage
  146. description: The path to store qBittorrent Configuration.
  147. schema:
  148. type: dict
  149. attrs:
  150. - variable: type
  151. label: Type
  152. schema:
  153. type: string
  154. required: true
  155. default: ixVolume
  156. enum:
  157. - value: hostPath
  158. description: Host Path
  159. - value: ixVolume
  160. description: ixVolume
  161. - variable: datasetName
  162. label: Dataset Name
  163. schema:
  164. type: string
  165. show_if: [["type", "=", "ixVolume"]]
  166. required: true
  167. hidden: true
  168. immutable: true
  169. default: config
  170. $ref:
  171. - "normalize/ixVolume"
  172. - variable: hostPath
  173. label: Host Path
  174. schema:
  175. type: hostpath
  176. show_if: [["type", "=", "hostPath"]]
  177. immutable: true
  178. required: true
  179. - variable: resources
  180. label: Resources Configuration
  181. group: Resources Configuration
  182. schema:
  183. type: dict
  184. attrs:
  185. - variable: limits
  186. label: Limits
  187. schema:
  188. type: dict
  189. attrs:
  190. - variable: cpu
  191. label: CPU
  192. description: CPU limit for qBittorrent.
  193. schema:
  194. type: string
  195. default: 4000m
  196. required: true
  197. - variable: memory
  198. label: Memory
  199. description: Memory limit for qBittorrent.
  200. schema:
  201. type: string
  202. default: 8Gi
  203. required: true