questions.yaml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. groups:
  2. - name: MineOS Configuration
  3. description: Configure MineOS
  4. - name: User and Group Configuration
  5. description: Configure User and Group for MineOS
  6. - name: Network Configuration
  7. description: Configure Network for MineOS
  8. - name: Storage Configuration
  9. description: Configure Storage for MineOS
  10. - name: Resources Configuration
  11. description: Configure Resources for MineOS
  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: mineosConfig
  23. label: ""
  24. group: MineOS Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: username
  29. label: Username
  30. description: The username for MineOS WebUI.
  31. schema:
  32. type: string
  33. empty: false
  34. required: true
  35. valid_chars: '^[a-zA-Z0-9]+$'
  36. valid_chars_error: |
  37. Username can only contain alphanumeric characters [0-9, a-z, A-Z].
  38. - variable: password
  39. label: Password
  40. description: The password for MineOS WebUI.
  41. schema:
  42. type: string
  43. empty: false
  44. required: true
  45. private: true
  46. - variable: terminationGracePeriodSeconds
  47. label: Stop Grace Period
  48. description: |
  49. The time in seconds given to MineOS to stop before it is killed.
  50. Killing a MineOS server without a grace period can cause data corruption.
  51. schema:
  52. type: int
  53. empty: false
  54. min: 30
  55. required: true
  56. default: 600
  57. - variable: additionalEnvs
  58. label: Additional Environment Variables
  59. description: Configure additional environment variables for MineOS.
  60. schema:
  61. type: list
  62. default: []
  63. items:
  64. - variable: env
  65. label: Environment Variable
  66. schema:
  67. type: dict
  68. attrs:
  69. - variable: name
  70. label: Name
  71. schema:
  72. type: string
  73. required: true
  74. - variable: value
  75. label: Value
  76. schema:
  77. type: string
  78. required: true
  79. - variable: mineosID
  80. label: ""
  81. group: User and Group Configuration
  82. schema:
  83. type: dict
  84. attrs:
  85. - variable: user
  86. label: User ID
  87. description: The user id that MineOS files will be owned by.
  88. schema:
  89. type: int
  90. min: 568
  91. default: 568
  92. required: true
  93. - variable: group
  94. label: Group ID
  95. description: The group id that MineOS files will be owned by.
  96. schema:
  97. type: int
  98. min: 568
  99. default: 568
  100. required: true
  101. - variable: mineosNetwork
  102. label: ""
  103. group: Network Configuration
  104. schema:
  105. type: dict
  106. attrs:
  107. - variable: webPort
  108. label: WebUI Port
  109. description: The port for MineOS WebUI
  110. schema:
  111. type: int
  112. default: 30015
  113. min: 9000
  114. max: 65535
  115. required: true
  116. - variable: mineosPortRangeStart
  117. label: Port Range Start
  118. description: |
  119. The start of the port range for MineOS servers.</br>
  120. It will open both TCP and UDP ports.
  121. schema:
  122. type: int
  123. default: 30016
  124. min: 9000
  125. max: 65535
  126. required: true
  127. - variable: mineosPortRangeEnd
  128. label: Port Range End
  129. description: |
  130. The end of the port range for MineOS servers.</br>
  131. It will open both TCP and UDP ports.</br>
  132. Keep in mind that the port range can be at max 10 ports.
  133. schema:
  134. type: int
  135. default: 30017
  136. min: 9000
  137. max: 65535
  138. required: true
  139. - variable: useHTTPS
  140. label: Use HTTPS
  141. description: |
  142. Enable HTTPS for MineOS WebUI.</br>
  143. If enabled, and you don't specify a certificate, </br>
  144. a self-signed certificate will be generated.
  145. schema:
  146. type: boolean
  147. default: false
  148. - variable: certificateID
  149. label: Certificate
  150. description: The certificate to use for MineOS WebUI
  151. schema:
  152. show_if: [["useHTTPS", "=", true]]
  153. type: int
  154. "null": true
  155. $ref:
  156. - "definitions/certificate"
  157. - variable: mineosStorage
  158. label: ""
  159. group: Storage Configuration
  160. schema:
  161. type: dict
  162. attrs:
  163. - variable: data
  164. label: MineOS Data Storage
  165. description: The path to store MineOS Data.
  166. schema:
  167. type: dict
  168. attrs:
  169. - variable: type
  170. label: Type
  171. description: |
  172. ixVolume: Is dataset created automatically by the system.</br>
  173. Host Path: Is a path that already exists on the system.
  174. schema:
  175. type: string
  176. required: true
  177. immutable: true
  178. default: ixVolume
  179. enum:
  180. - value: hostPath
  181. description: Host Path (Path that already exists on the system)
  182. - value: ixVolume
  183. description: ixVolume (Dataset created automatically by the system)
  184. - variable: datasetName
  185. label: Dataset Name
  186. schema:
  187. type: string
  188. show_if: [["type", "=", "ixVolume"]]
  189. required: true
  190. hidden: true
  191. immutable: true
  192. default: data
  193. $ref:
  194. - "normalize/ixVolume"
  195. - variable: hostPath
  196. label: Host Path
  197. schema:
  198. type: hostpath
  199. show_if: [["type", "=", "hostPath"]]
  200. immutable: true
  201. required: true
  202. - variable: resources
  203. label: Resources Configuration
  204. group: Resources Configuration
  205. schema:
  206. type: dict
  207. attrs:
  208. - variable: limits
  209. label: Limits
  210. schema:
  211. type: dict
  212. attrs:
  213. - variable: cpu
  214. label: CPU
  215. description: CPU limit for MineOS.
  216. schema:
  217. type: string
  218. max_length: 6
  219. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  220. valid_chars_error: |
  221. Valid CPU limit formats are</br>
  222. - Plain Integer - eg. 1</br>
  223. - Float - eg. 0.5</br>
  224. - Milicpu - eg. 500m
  225. default: "4000m"
  226. required: true
  227. - variable: memory
  228. label: Memory
  229. description: Memory limit for MineOS.
  230. schema:
  231. type: string
  232. max_length: 12
  233. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  234. valid_chars_error: |
  235. Valid Memory limit formats are</br>
  236. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  237. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  238. - Plain Integer in bytes - eg. 1024</br>
  239. - Exponent - eg. 134e6
  240. default: "8Gi"
  241. required: true