questions.yaml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. groups:
  2. - name: Deluge Configuration
  3. description: Configure Deluge
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Deluge
  6. - name: Network Configuration
  7. description: Configure Network for Deluge
  8. - name: Storage Configuration
  9. description: Configure Storage for Deluge
  10. - name: Resources Configuration
  11. description: Configure Resources for Deluge
  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: TZ
  23. group: Deluge Configuration
  24. label: Timezone
  25. schema:
  26. type: string
  27. default: Etc/UTC
  28. required: true
  29. $ref:
  30. - definitions/timezone
  31. - variable: delugeConfig
  32. label: ""
  33. group: Deluge Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. - variable: additionalEnvs
  38. label: Additional Environment Variables
  39. description: Configure additional environment variables for Deluge.
  40. schema:
  41. type: list
  42. default: []
  43. items:
  44. - variable: env
  45. label: Environment Variable
  46. schema:
  47. type: dict
  48. attrs:
  49. - variable: name
  50. label: Name
  51. schema:
  52. type: string
  53. required: true
  54. - variable: value
  55. label: Value
  56. schema:
  57. type: string
  58. required: true
  59. - variable: delugeID
  60. label: ""
  61. group: User and Group Configuration
  62. schema:
  63. type: dict
  64. attrs:
  65. - variable: user
  66. label: User ID
  67. description: he user id that Deluge files will be owned by.
  68. schema:
  69. type: int
  70. min: 2
  71. default: 568
  72. required: true
  73. - variable: group
  74. label: Group ID
  75. description: The group id that Deluge files will be owned by.
  76. schema:
  77. type: int
  78. min: 2
  79. default: 568
  80. required: true
  81. - variable: delugeNetwork
  82. label: ""
  83. group: Network Configuration
  84. schema:
  85. type: dict
  86. attrs:
  87. - variable: hostNetwork
  88. label: Host Network
  89. description: |
  90. Bind to the host network. It's recommended to keep this disabled.</br>
  91. schema:
  92. type: boolean
  93. default: false
  94. - variable: webPort
  95. label: Web Port
  96. description: The port for the Deluge Web UI.
  97. schema:
  98. type: int
  99. show_if: [["hostNetwork", "=", false]]
  100. default: 30038
  101. min: 9000
  102. max: 65535
  103. required: true
  104. - variable: torrentPort
  105. label: Torrent Port
  106. description: |
  107. The port for the Deluge Torrent.</br>
  108. Applies to both TCP and UDP.
  109. (Internal port is always 6881)
  110. schema:
  111. type: int
  112. show_if: [["hostNetwork", "=", false]]
  113. default: 30039
  114. min: 9000
  115. max: 65535
  116. required: true
  117. - variable: delugeStorage
  118. label: ""
  119. group: Storage Configuration
  120. schema:
  121. type: dict
  122. attrs:
  123. - variable: config
  124. label: Deluge Config Storage
  125. description: The path to store Deluge Configuration.
  126. schema:
  127. type: dict
  128. attrs:
  129. - variable: type
  130. label: Type
  131. description: |
  132. ixVolume: Is dataset created automatically by the system.</br>
  133. Host Path: Is a path that already exists on the system.
  134. schema:
  135. type: string
  136. required: true
  137. default: "ixVolume"
  138. enum:
  139. - value: "hostPath"
  140. description: Host Path (Path that already exists on the system)
  141. - value: "ixVolume"
  142. description: ixVolume (Dataset created automatically by the system)
  143. - variable: datasetName
  144. label: Dataset Name
  145. schema:
  146. type: string
  147. show_if: [["type", "=", "ixVolume"]]
  148. required: true
  149. hidden: true
  150. immutable: true
  151. default: "config"
  152. $ref:
  153. - "normalize/ixVolume"
  154. - variable: hostPath
  155. label: Host Path
  156. schema:
  157. type: hostpath
  158. show_if: [["type", "=", "hostPath"]]
  159. immutable: true
  160. required: true
  161. - variable: downloads
  162. label: Deluge Downloads Storage
  163. description: The path to store Deluge Downloads.
  164. schema:
  165. type: dict
  166. attrs:
  167. - variable: type
  168. label: Type
  169. description: |
  170. ixVolume: Is dataset created automatically by the system.</br>
  171. Host Path: Is a path that already exists on the system.
  172. schema:
  173. type: string
  174. required: true
  175. default: "ixVolume"
  176. enum:
  177. - value: "hostPath"
  178. description: Host Path (Path that already exists on the system)
  179. - value: "ixVolume"
  180. description: ixVolume (Dataset created automatically by the system)
  181. - variable: datasetName
  182. label: Dataset Name
  183. schema:
  184. type: string
  185. show_if: [["type", "=", "ixVolume"]]
  186. required: true
  187. hidden: true
  188. immutable: true
  189. default: "downloads"
  190. $ref:
  191. - "normalize/ixVolume"
  192. - variable: hostPath
  193. label: Host Path
  194. schema:
  195. type: hostpath
  196. show_if: [["type", "=", "hostPath"]]
  197. immutable: true
  198. required: true
  199. - variable: additionalStorages
  200. label: Additional Storage
  201. description: Additional storage for Deluge.
  202. schema:
  203. type: list
  204. default: []
  205. items:
  206. - variable: storageEntry
  207. label: Storage Entry
  208. schema:
  209. type: dict
  210. attrs:
  211. - variable: type
  212. label: Type
  213. description: |
  214. ixVolume: Is dataset created automatically by the system.</br>
  215. Host Path: Is a path that already exists on the system.
  216. schema:
  217. type: string
  218. required: true
  219. default: "ixVolume"
  220. enum:
  221. - value: "hostPath"
  222. description: Host Path (Path that already exists on the system)
  223. - value: "ixVolume"
  224. description: ixVolume (Dataset created automatically by the system)
  225. - variable: mountPath
  226. label: Mount Path
  227. description: The path inside the container to mount the storage.
  228. schema:
  229. type: path
  230. required: true
  231. - variable: hostPath
  232. label: Host Path
  233. description: The host path to use for storage.
  234. schema:
  235. type: hostpath
  236. show_if: [["type", "=", "hostPath"]]
  237. required: true
  238. - variable: datasetName
  239. label: Dataset Name
  240. description: The name of the dataset to use for storage.
  241. schema:
  242. type: string
  243. show_if: [["type", "=", "ixVolume"]]
  244. required: true
  245. immutable: true
  246. default: "storage_entry"
  247. $ref:
  248. - "normalize/ixVolume"
  249. - variable: resources
  250. group: Resources Configuration
  251. label: ""
  252. schema:
  253. type: dict
  254. attrs:
  255. - variable: limits
  256. label: Limits
  257. schema:
  258. type: dict
  259. attrs:
  260. - variable: cpu
  261. label: CPU
  262. description: CPU limit for Deluge.
  263. schema:
  264. type: string
  265. max_length: 6
  266. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  267. valid_chars_error: |
  268. Valid CPU limit formats are</br>
  269. - Plain Integer - eg. 1</br>
  270. - Float - eg. 0.5</br>
  271. - Milicpu - eg. 500m
  272. default: "4000m"
  273. required: true
  274. - variable: memory
  275. label: Memory
  276. description: Memory limit for Deluge.
  277. schema:
  278. type: string
  279. max_length: 12
  280. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  281. valid_chars_error: |
  282. Valid Memory limit formats are</br>
  283. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  284. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  285. - Plain Integer in bytes - eg. 1024</br>
  286. - Exponent - eg. 134e6
  287. default: "8Gi"
  288. required: true