questions.yaml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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: 568
  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: 568
  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. 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. default: ixVolume
  133. enum:
  134. - value: hostPath
  135. description: Host Path (Path that already exists on the system)
  136. - value: ixVolume
  137. description: ixVolume (Dataset created automatically by the system)
  138. - variable: datasetName
  139. label: Dataset Name
  140. schema:
  141. type: string
  142. show_if: [["type", "=", "ixVolume"]]
  143. required: true
  144. hidden: true
  145. immutable: true
  146. default: data
  147. $ref:
  148. - "normalize/ixVolume"
  149. - variable: hostPath
  150. label: Host Path
  151. schema:
  152. type: hostpath
  153. show_if: [["type", "=", "hostPath"]]
  154. immutable: true
  155. required: true
  156. - variable: staging
  157. label: IPFS Staging Storage
  158. description: The path to store IPFS staging storage.
  159. schema:
  160. type: dict
  161. attrs:
  162. - variable: type
  163. label: Type
  164. description: |
  165. ixVolume: Is dataset created automatically by the system.</br>
  166. Host Path: Is a path that already exists on the system.
  167. schema:
  168. type: string
  169. required: true
  170. default: ixVolume
  171. enum:
  172. - value: hostPath
  173. description: Host Path (Path that already exists on the system)
  174. - value: ixVolume
  175. description: ixVolume (Dataset created automatically by the system)
  176. - variable: datasetName
  177. label: Dataset Name
  178. schema:
  179. type: string
  180. show_if: [["type", "=", "ixVolume"]]
  181. required: true
  182. hidden: true
  183. immutable: true
  184. default: staging
  185. $ref:
  186. - "normalize/ixVolume"
  187. - variable: hostPath
  188. label: Host Path
  189. schema:
  190. type: hostpath
  191. show_if: [["type", "=", "hostPath"]]
  192. immutable: true
  193. required: true
  194. - variable: resources
  195. label: ""
  196. group: Resources Configuration
  197. schema:
  198. type: dict
  199. attrs:
  200. - variable: limits
  201. label: Limits
  202. schema:
  203. type: dict
  204. attrs:
  205. - variable: cpu
  206. label: CPU
  207. description: CPU limit for IPFS.
  208. schema:
  209. type: string
  210. default: 4000m
  211. required: true
  212. - variable: memory
  213. label: Memory
  214. description: Memory limit for IPFS.
  215. schema:
  216. type: string
  217. default: 8Gi
  218. required: true