questions.yaml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. groups:
  2. - name: Homer Configuration
  3. description: Configure Homer
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Homer
  6. - name: Network Configuration
  7. description: Configure Network for Homer
  8. - name: Storage Configuration
  9. description: Configure Storage for Homer
  10. - name: Resources Configuration
  11. description: Configure Resources for Homer
  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: homerConfig
  23. label: ""
  24. group: Homer Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: initAssets
  29. label: Init Assets
  30. description: Install example configuration file & assets to help you get started.
  31. schema:
  32. type: boolean
  33. default: false
  34. - variable: additionalEnvs
  35. label: Additional Environment Variables
  36. description: Configure additional environment variables for Homer.
  37. schema:
  38. type: list
  39. default: []
  40. items:
  41. - variable: env
  42. label: Environment Variable
  43. schema:
  44. type: dict
  45. attrs:
  46. - variable: name
  47. label: Name
  48. schema:
  49. type: string
  50. required: true
  51. - variable: value
  52. label: Value
  53. schema:
  54. type: string
  55. required: true
  56. - variable: homerRunAs
  57. label: ""
  58. group: User and Group Configuration
  59. schema:
  60. type: dict
  61. attrs:
  62. - variable: user
  63. label: User ID
  64. description: The user id that Homer will run as.
  65. schema:
  66. type: int
  67. min: 2
  68. default: 568
  69. required: true
  70. - variable: group
  71. label: Group ID
  72. description: The group id that Homer will run as.
  73. schema:
  74. type: int
  75. min: 2
  76. default: 568
  77. required: true
  78. - variable: homerNetwork
  79. label: ""
  80. group: Network Configuration
  81. schema:
  82. type: dict
  83. attrs:
  84. - variable: webPort
  85. label: Web Port
  86. description: The port for the Homer Web UI.
  87. schema:
  88. type: int
  89. default: 30092
  90. min: 9000
  91. max: 65535
  92. required: true
  93. - variable: hostNetwork
  94. label: Host Network
  95. description: |
  96. Bind to the host network. It's recommended to keep this disabled.</br>
  97. schema:
  98. type: boolean
  99. default: false
  100. - variable: homerStorage
  101. label: ""
  102. group: Storage Configuration
  103. schema:
  104. type: dict
  105. attrs:
  106. - variable: assets
  107. label: Homer Assets Storage
  108. description: The path to store Homer Assets.
  109. schema:
  110. type: dict
  111. attrs:
  112. - variable: type
  113. label: Type
  114. description: |
  115. ixVolume: Is dataset created automatically by the system.</br>
  116. Host Path: Is a path that already exists on the system.
  117. schema:
  118. type: string
  119. required: true
  120. default: "ixVolume"
  121. enum:
  122. - value: "hostPath"
  123. description: Host Path (Path that already exists on the system)
  124. - value: "ixVolume"
  125. description: ixVolume (Dataset created automatically by the system)
  126. - variable: datasetName
  127. label: Dataset Name
  128. schema:
  129. type: string
  130. show_if: [["type", "=", "ixVolume"]]
  131. required: true
  132. hidden: true
  133. immutable: true
  134. default: "assets"
  135. $ref:
  136. - "normalize/ixVolume"
  137. - variable: hostPath
  138. label: Host Path
  139. schema:
  140. type: hostpath
  141. show_if: [["type", "=", "hostPath"]]
  142. immutable: true
  143. required: true
  144. - variable: additionalStorages
  145. label: Additional Storage
  146. description: Additional storage for Homer.
  147. schema:
  148. type: list
  149. default: []
  150. items:
  151. - variable: storageEntry
  152. label: Storage Entry
  153. schema:
  154. type: dict
  155. attrs:
  156. - variable: type
  157. label: Type
  158. description: |
  159. ixVolume: Is dataset created automatically by the system.</br>
  160. Host Path: Is a path that already exists on the system.
  161. schema:
  162. type: string
  163. required: true
  164. default: "ixVolume"
  165. enum:
  166. - value: "hostPath"
  167. description: Host Path (Path that already exists on the system)
  168. - value: "ixVolume"
  169. description: ixVolume (Dataset created automatically by the system)
  170. - variable: mountPath
  171. label: Mount Path
  172. description: The path inside the container to mount the storage.
  173. schema:
  174. type: path
  175. required: true
  176. - variable: hostPath
  177. label: Host Path
  178. description: The host path to use for storage.
  179. schema:
  180. type: hostpath
  181. show_if: [["type", "=", "hostPath"]]
  182. required: true
  183. - variable: datasetName
  184. label: Dataset Name
  185. description: The name of the dataset to use for storage.
  186. schema:
  187. type: string
  188. show_if: [["type", "=", "ixVolume"]]
  189. required: true
  190. immutable: true
  191. default: "storage_entry"
  192. $ref:
  193. - "normalize/ixVolume"
  194. - variable: resources
  195. group: Resources Configuration
  196. label: ""
  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 Homer.
  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 Homer.
  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