questions.yaml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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: 30010
  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: 30011
  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: 30012
  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. immutable: true
  133. default: ixVolume
  134. enum:
  135. - value: hostPath
  136. description: Host Path (Path that already exists on the system)
  137. - value: ixVolume
  138. description: ixVolume (Dataset created automatically by the system)
  139. - variable: datasetName
  140. label: Dataset Name
  141. schema:
  142. type: string
  143. show_if: [["type", "=", "ixVolume"]]
  144. required: true
  145. hidden: true
  146. immutable: true
  147. default: data
  148. $ref:
  149. - "normalize/ixVolume"
  150. - variable: hostPath
  151. label: Host Path
  152. schema:
  153. type: hostpath
  154. show_if: [["type", "=", "hostPath"]]
  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. immutable: true
  171. default: ixVolume
  172. enum:
  173. - value: hostPath
  174. description: Host Path (Path that already exists on the system)
  175. - value: ixVolume
  176. description: ixVolume (Dataset created automatically by the system)
  177. - variable: datasetName
  178. label: Dataset Name
  179. schema:
  180. type: string
  181. show_if: [["type", "=", "ixVolume"]]
  182. required: true
  183. hidden: true
  184. immutable: true
  185. default: staging
  186. $ref:
  187. - "normalize/ixVolume"
  188. - variable: hostPath
  189. label: Host Path
  190. schema:
  191. type: hostpath
  192. show_if: [["type", "=", "hostPath"]]
  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. max_length: 6
  211. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  212. valid_chars_error: |
  213. Valid CPU limit formats are</br>
  214. - Plain Integer - eg. 1</br>
  215. - Float - eg. 0.5</br>
  216. - Milicpu - eg. 500m
  217. default: "4000m"
  218. required: true
  219. - variable: memory
  220. label: Memory
  221. description: Memory limit for IPFS.
  222. schema:
  223. type: string
  224. max_length: 12
  225. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  226. valid_chars_error: |
  227. Valid Memory limit formats are</br>
  228. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  229. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  230. - Plain Integer in bytes - eg. 1024</br>
  231. - Exponent - eg. 134e6
  232. default: "8Gi"
  233. required: true