questions.yaml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. groups:
  2. - name: IPFS Configuration
  3. description: Configure IPFS
  4. - name: User and Group Configuration
  5. description: Configure User and Group for IPFS
  6. - name: Network Configuration
  7. description: Configure Network for IPFS
  8. - name: Storage Configuration
  9. description: Configure Storage for IPFS
  10. - name: Resources Configuration
  11. description: Configure Resources for IPFS
  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: ipfsConfig
  23. label: ""
  24. group: IPFS Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: additionalEnvs
  29. label: Additional Environment Variables
  30. description: Configure additional environment variables for IPFS.
  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: ipfsRunAs
  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 IPFS 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 IPFS will run as.
  67. schema:
  68. type: int
  69. min: 1
  70. default: 568
  71. required: true
  72. - variable: ipfsNetwork
  73. label: ""
  74. group: Network Configuration
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: apiPort
  79. label: API Port
  80. description: The port for the IPFS API (And WebUI).
  81. schema:
  82. type: int
  83. default: 30000
  84. min: 9000
  85. max: 65535
  86. required: true
  87. - variable: swarmPort
  88. label: Swarm Port
  89. description: The port for the IPFS Swarm. Both TCP and UDP
  90. schema:
  91. type: int
  92. default: 30001
  93. min: 9000
  94. max: 65535
  95. required: true
  96. - variable: gatewayPort
  97. label: Gateway Port
  98. description: The port for the IPFS Gateway.
  99. schema:
  100. type: int
  101. default: 30002
  102. min: 9000
  103. max: 65535
  104. required: true
  105. - variable: hostNetwork
  106. label: Host Network
  107. description: |
  108. Bind to the host network. It's recommended to keep this disabled.
  109. schema:
  110. type: boolean
  111. default: false
  112. - variable: ipfsStorage
  113. label: ""
  114. group: Storage Configuration
  115. schema:
  116. type: dict
  117. attrs:
  118. - variable: data
  119. label: IPFS Data Storage
  120. description: The path to store IPFS data.
  121. schema:
  122. type: dict
  123. attrs:
  124. - variable: type
  125. label: Type
  126. schema:
  127. type: string
  128. required: true
  129. default: ixVolume
  130. enum:
  131. - value: hostPath
  132. description: Host Path
  133. - value: ixVolume
  134. description: ixVolume
  135. - variable: datasetName
  136. label: Dataset Name
  137. schema:
  138. type: string
  139. show_if: [["type", "=", "ixVolume"]]
  140. required: true
  141. hidden: true
  142. immutable: true
  143. default: data
  144. $ref:
  145. - "normalize/ixVolume"
  146. - variable: hostPath
  147. label: Host Path
  148. schema:
  149. type: hostpath
  150. show_if: [["type", "=", "hostPath"]]
  151. immutable: true
  152. required: true
  153. - variable: staging
  154. label: IPFS Staging Storage
  155. description: The path to store IPFS staging storage.
  156. schema:
  157. type: dict
  158. attrs:
  159. - variable: type
  160. label: Type
  161. schema:
  162. type: string
  163. required: true
  164. default: ixVolume
  165. enum:
  166. - value: hostPath
  167. description: Host Path
  168. - value: ixVolume
  169. description: ixVolume
  170. - variable: datasetName
  171. label: Dataset Name
  172. schema:
  173. type: string
  174. show_if: [["type", "=", "ixVolume"]]
  175. required: true
  176. hidden: true
  177. immutable: true
  178. default: staging
  179. $ref:
  180. - "normalize/ixVolume"
  181. - variable: hostPath
  182. label: Host Path
  183. schema:
  184. type: hostpath
  185. show_if: [["type", "=", "hostPath"]]
  186. immutable: true
  187. required: true
  188. - variable: resources
  189. label: ""
  190. group: Resources Configuration
  191. schema:
  192. type: dict
  193. attrs:
  194. - variable: limits
  195. label: Limits
  196. schema:
  197. type: dict
  198. attrs:
  199. - variable: cpu
  200. label: CPU
  201. description: CPU limit for qBittorrent.
  202. schema:
  203. type: string
  204. default: 4000m
  205. required: true
  206. - variable: memory
  207. label: Memory
  208. description: Memory limit for qBittorrent.
  209. schema:
  210. type: string
  211. default: 8Gi
  212. required: true