questions.yaml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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. immutable: true
  156. required: true
  157. - variable: staging
  158. label: IPFS Staging Storage
  159. description: The path to store IPFS staging storage.
  160. schema:
  161. type: dict
  162. attrs:
  163. - variable: type
  164. label: Type
  165. description: |
  166. ixVolume: Is dataset created automatically by the system.</br>
  167. Host Path: Is a path that already exists on the system.
  168. schema:
  169. type: string
  170. required: true
  171. immutable: true
  172. default: ixVolume
  173. enum:
  174. - value: hostPath
  175. description: Host Path (Path that already exists on the system)
  176. - value: ixVolume
  177. description: ixVolume (Dataset created automatically by the system)
  178. - variable: datasetName
  179. label: Dataset Name
  180. schema:
  181. type: string
  182. show_if: [["type", "=", "ixVolume"]]
  183. required: true
  184. hidden: true
  185. immutable: true
  186. default: staging
  187. $ref:
  188. - "normalize/ixVolume"
  189. - variable: hostPath
  190. label: Host Path
  191. schema:
  192. type: hostpath
  193. show_if: [["type", "=", "hostPath"]]
  194. immutable: true
  195. required: true
  196. - variable: resources
  197. label: ""
  198. group: Resources Configuration
  199. schema:
  200. type: dict
  201. attrs:
  202. - variable: limits
  203. label: Limits
  204. schema:
  205. type: dict
  206. attrs:
  207. - variable: cpu
  208. label: CPU
  209. description: CPU limit for IPFS.
  210. schema:
  211. type: string
  212. max_length: 6
  213. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  214. valid_chars_error: |
  215. Valid CPU limit formats are</br>
  216. - Plain Integer - eg. 1</br>
  217. - Float - eg. 0.5</br>
  218. - Milicpu - eg. 500m
  219. default: "4000m"
  220. required: true
  221. - variable: memory
  222. label: Memory
  223. description: Memory limit for IPFS.
  224. schema:
  225. type: string
  226. max_length: 12
  227. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  228. valid_chars_error: |
  229. Valid Memory limit formats are</br>
  230. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  231. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  232. - Plain Integer in bytes - eg. 1024</br>
  233. - Exponent - eg. 134e6
  234. default: "8Gi"
  235. required: true