questions.yaml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. groups:
  2. - name: Homepage Configuration
  3. description: Configure Homepage
  4. - name: Network Configuration
  5. description: Configure Network for Homepage
  6. - name: Storage Configuration
  7. description: Configure Storage for Homepage
  8. - name: Resources Configuration
  9. description: Configure Resources for Homepage
  10. portals:
  11. web_portal:
  12. protocols:
  13. - "$kubernetes-resource_configmap_portal_protocol"
  14. host:
  15. - "$kubernetes-resource_configmap_portal_host"
  16. ports:
  17. - "$kubernetes-resource_configmap_portal_port"
  18. path: "$kubernetes-resource_configmap_portal_path"
  19. questions:
  20. - variable: homepageConfig
  21. label: ""
  22. group: Homepage Configuration
  23. schema:
  24. type: dict
  25. attrs:
  26. - variable: additionalEnvs
  27. label: Additional Environment Variables
  28. description: Configure additional environment variables for Homepage.
  29. schema:
  30. type: list
  31. default: []
  32. items:
  33. - variable: env
  34. label: Environment Variable
  35. schema:
  36. type: dict
  37. attrs:
  38. - variable: name
  39. label: Name
  40. schema:
  41. type: string
  42. required: true
  43. - variable: value
  44. label: Value
  45. schema:
  46. type: string
  47. required: true
  48. - variable: homepageNetwork
  49. label: ""
  50. group: Network Configuration
  51. schema:
  52. type: dict
  53. attrs:
  54. - variable: webPort
  55. label: Web Port
  56. description: The port for the Homepage Web UI.
  57. schema:
  58. type: int
  59. default: 30054
  60. min: 9000
  61. max: 65535
  62. required: true
  63. - variable: hostNetwork
  64. label: Host Network
  65. description: |
  66. Bind to the host network. It's recommended to keep this disabled.</br>
  67. schema:
  68. type: boolean
  69. default: false
  70. - variable: homepageStorage
  71. label: ""
  72. group: Storage Configuration
  73. schema:
  74. type: dict
  75. attrs:
  76. - variable: config
  77. label: Homepage Config Storage
  78. description: The path to store Homepage Configuration.
  79. schema:
  80. type: dict
  81. attrs:
  82. - variable: type
  83. label: Type
  84. description: |
  85. ixVolume: Is dataset created automatically by the system.</br>
  86. Host Path: Is a path that already exists on the system.
  87. schema:
  88. type: string
  89. required: true
  90. default: "ixVolume"
  91. enum:
  92. - value: "hostPath"
  93. description: Host Path (Path that already exists on the system)
  94. - value: "ixVolume"
  95. description: ixVolume (Dataset created automatically by the system)
  96. - variable: datasetName
  97. label: Dataset Name
  98. schema:
  99. type: string
  100. show_if: [["type", "=", "ixVolume"]]
  101. required: true
  102. hidden: true
  103. immutable: true
  104. default: "config"
  105. $ref:
  106. - "normalize/ixVolume"
  107. - variable: hostPath
  108. label: Host Path
  109. schema:
  110. type: hostpath
  111. show_if: [["type", "=", "hostPath"]]
  112. immutable: true
  113. required: true
  114. - variable: additionalStorages
  115. label: Additional Storage
  116. description: Additional storage for Homepage.
  117. schema:
  118. type: list
  119. default: []
  120. items:
  121. - variable: storageEntry
  122. label: Storage Entry
  123. schema:
  124. type: dict
  125. attrs:
  126. - variable: type
  127. label: Type
  128. description: |
  129. ixVolume: Is dataset created automatically by the system.</br>
  130. Host Path: Is a path that already exists on the system.
  131. schema:
  132. type: string
  133. required: true
  134. default: "ixVolume"
  135. enum:
  136. - value: "hostPath"
  137. description: Host Path (Path that already exists on the system)
  138. - value: "ixVolume"
  139. description: ixVolume (Dataset created automatically by the system)
  140. - variable: mountPath
  141. label: Mount Path
  142. description: The path inside the container to mount the storage.
  143. schema:
  144. type: path
  145. required: true
  146. - variable: hostPath
  147. label: Host Path
  148. description: The host path to use for storage.
  149. schema:
  150. type: hostpath
  151. show_if: [["type", "=", "hostPath"]]
  152. required: true
  153. - variable: datasetName
  154. label: Dataset Name
  155. description: The name of the dataset to use for storage.
  156. schema:
  157. type: string
  158. show_if: [["type", "=", "ixVolume"]]
  159. required: true
  160. immutable: true
  161. default: "storage_entry"
  162. $ref:
  163. - "normalize/ixVolume"
  164. - variable: resources
  165. group: Resources Configuration
  166. label: ""
  167. schema:
  168. type: dict
  169. attrs:
  170. - variable: limits
  171. label: Limits
  172. schema:
  173. type: dict
  174. attrs:
  175. - variable: cpu
  176. label: CPU
  177. description: CPU limit for Homepage.
  178. schema:
  179. type: string
  180. max_length: 6
  181. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  182. valid_chars_error: |
  183. Valid CPU limit formats are</br>
  184. - Plain Integer - eg. 1</br>
  185. - Float - eg. 0.5</br>
  186. - Milicpu - eg. 500m
  187. default: "4000m"
  188. required: true
  189. - variable: memory
  190. label: Memory
  191. description: Memory limit for Homepage.
  192. schema:
  193. type: string
  194. max_length: 12
  195. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  196. valid_chars_error: |
  197. Valid Memory limit formats are</br>
  198. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  199. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  200. - Plain Integer in bytes - eg. 1024</br>
  201. - Exponent - eg. 134e6
  202. default: "8Gi"
  203. required: true