questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. groups:
  2. - name: netboot.xyz Configuration
  3. description: Configure netboot.xyz.
  4. - name: Network Configuration
  5. description: Configure Network for netboot.xyz.
  6. - name: Storage Configuration
  7. description: Configure Storage for netboot.xyz
  8. - name: Resources Configuration
  9. description: Configure Resources for netboot.xyz
  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: TZ
  21. group: netboot.xyz Configuration
  22. label: Timezone
  23. schema:
  24. type: string
  25. default: Etc/UTC
  26. required: true
  27. $ref:
  28. - definitions/timezone
  29. - variable: netbootConfig
  30. label: ""
  31. group: netboot.xyz Configuration
  32. schema:
  33. type: dict
  34. attrs:
  35. - variable: tftpdOpts
  36. label: TFTPD Options
  37. description: |
  38. Additional TFTPD options.
  39. schema:
  40. type: list
  41. default: []
  42. items:
  43. - variable: option
  44. label: Option
  45. schema:
  46. type: string
  47. required: true
  48. - variable: additionalEnvs
  49. label: Additional Environment Variables
  50. description: Configure additional environment variables for netboot.xyz.
  51. schema:
  52. type: list
  53. default: []
  54. items:
  55. - variable: env
  56. label: Environment Variable
  57. schema:
  58. type: dict
  59. attrs:
  60. - variable: name
  61. label: Name
  62. schema:
  63. type: string
  64. required: true
  65. - variable: value
  66. label: Value
  67. schema:
  68. type: string
  69. required: true
  70. - variable: netbootNetwork
  71. label: ""
  72. group: Network Configuration
  73. schema:
  74. type: dict
  75. attrs:
  76. - variable: hostNetwork
  77. label: Host Network
  78. description: |
  79. Bind to the host network. </br>
  80. Required for TFTP.
  81. schema:
  82. type: boolean
  83. default: true
  84. - variable: tftpPort
  85. label: TFTP Port
  86. description: The TFTP port for netboot.xyz.
  87. schema:
  88. show_if: [["hostNetwork", "=", false]]
  89. type: int
  90. default: 31009
  91. min: 9000
  92. max: 65535
  93. required: true
  94. - variable: webHttpPort
  95. label: Portal HTTP Port
  96. description: The HTTP port for the netboot.xyz Portal.
  97. schema:
  98. show_if: [["hostNetwork", "=", false]]
  99. type: int
  100. default: 31010
  101. min: 9000
  102. max: 65535
  103. required: true
  104. - variable: webAssetsPort
  105. label: Assets Port
  106. description: The Assets port for the netboot.xyz, configures the NGINX_PORT variable on the container.
  107. schema:
  108. type: int
  109. default: 31011
  110. min: 9000
  111. max: 65535
  112. required: true
  113. - variable: netbootStorage
  114. label: ""
  115. group: Storage Configuration
  116. schema:
  117. type: dict
  118. attrs:
  119. - variable: config
  120. label: netboot.xyz Config Storage
  121. description: The path to store netboot.xyz configuration.
  122. schema:
  123. type: dict
  124. attrs:
  125. - variable: type
  126. label: Type
  127. description: |
  128. ixVolume: Is dataset created automatically by the system.</br>
  129. Host Path: Is a path that already exists on the system.
  130. schema:
  131. type: string
  132. required: true
  133. immutable: 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: ixVolumeConfig
  141. label: ixVolume Configuration
  142. description: The configuration for the ixVolume dataset.
  143. schema:
  144. type: dict
  145. show_if: [["type", "=", "ixVolume"]]
  146. $ref:
  147. - "normalize/ixVolume"
  148. attrs:
  149. - variable: aclEnable
  150. label: Enable ACL
  151. description: Enable ACL for the dataset.
  152. schema:
  153. type: boolean
  154. default: false
  155. - variable: datasetName
  156. label: Dataset Name
  157. description: The name of the dataset to use for storage.
  158. schema:
  159. type: string
  160. required: true
  161. immutable: true
  162. hidden: true
  163. default: "config"
  164. - variable: aclEntries
  165. label: ACL Configuration
  166. schema:
  167. type: dict
  168. show_if: [["aclEnable", "=", true]]
  169. attrs: []
  170. - variable: hostPathConfig
  171. label: Host Path Configuration
  172. schema:
  173. type: dict
  174. show_if: [["type", "=", "hostPath"]]
  175. attrs:
  176. - variable: aclEnable
  177. label: Enable ACL
  178. description: Enable ACL for the dataset.
  179. schema:
  180. type: boolean
  181. default: false
  182. - variable: acl
  183. label: ACL Configuration
  184. schema:
  185. type: dict
  186. show_if: [["aclEnable", "=", true]]
  187. attrs: []
  188. $ref:
  189. - "normalize/acl"
  190. - variable: hostPath
  191. label: Host Path
  192. description: The host path to use for storage.
  193. schema:
  194. type: hostpath
  195. show_if: [["aclEnable", "=", false]]
  196. required: true
  197. - variable: assets
  198. label: netboot.xyz Assets Storage
  199. description: The path to store netboot.xyz assets.
  200. schema:
  201. type: dict
  202. attrs:
  203. - variable: type
  204. label: Type
  205. description: |
  206. ixVolume: Is dataset created automatically by the system.</br>
  207. Host Path: Is a path that already exists on the system.
  208. schema:
  209. type: string
  210. required: true
  211. immutable: true
  212. default: "ixVolume"
  213. enum:
  214. - value: "hostPath"
  215. description: Host Path (Path that already exists on the system)
  216. - value: "ixVolume"
  217. description: ixVolume (Dataset created automatically by the system)
  218. - variable: ixVolumeConfig
  219. label: ixVolume Configuration
  220. description: The configuration for the ixVolume dataset.
  221. schema:
  222. type: dict
  223. show_if: [["type", "=", "ixVolume"]]
  224. $ref:
  225. - "normalize/ixVolume"
  226. attrs:
  227. - variable: aclEnable
  228. label: Enable ACL
  229. description: Enable ACL for the dataset.
  230. schema:
  231. type: boolean
  232. default: false
  233. - variable: datasetName
  234. label: Dataset Name
  235. description: The name of the dataset to use for storage.
  236. schema:
  237. type: string
  238. required: true
  239. immutable: true
  240. hidden: true
  241. default: "assets"
  242. - variable: aclEntries
  243. label: ACL Configuration
  244. schema:
  245. type: dict
  246. show_if: [["aclEnable", "=", true]]
  247. attrs: []
  248. - variable: hostPathConfig
  249. label: Host Path Configuration
  250. schema:
  251. type: dict
  252. show_if: [["type", "=", "hostPath"]]
  253. attrs:
  254. - variable: aclEnable
  255. label: Enable ACL
  256. description: Enable ACL for the dataset.
  257. schema:
  258. type: boolean
  259. default: false
  260. - variable: acl
  261. label: ACL Configuration
  262. schema:
  263. type: dict
  264. show_if: [["aclEnable", "=", true]]
  265. attrs: []
  266. $ref:
  267. - "normalize/acl"
  268. - variable: hostPath
  269. label: Host Path
  270. description: The host path to use for storage.
  271. schema:
  272. type: hostpath
  273. show_if: [["aclEnable", "=", false]]
  274. required: true
  275. - variable: resources
  276. group: Resources Configuration
  277. label: ""
  278. schema:
  279. type: dict
  280. attrs:
  281. - variable: limits
  282. label: Limits
  283. schema:
  284. type: dict
  285. attrs:
  286. - variable: cpu
  287. label: CPU
  288. description: CPU limit for netboot.xyz.
  289. schema:
  290. type: string
  291. max_length: 6
  292. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  293. valid_chars_error: |
  294. Valid CPU limit formats are</br>
  295. - Plain Integer - eg. 1</br>
  296. - Float - eg. 0.5</br>
  297. - Milicpu - eg. 500m
  298. default: "4000m"
  299. required: true
  300. - variable: memory
  301. label: Memory
  302. description: Memory limit for netboot.xyz.
  303. schema:
  304. type: string
  305. max_length: 12
  306. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  307. valid_chars_error: |
  308. Valid Memory limit formats are</br>
  309. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  310. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  311. - Plain Integer in bytes - eg. 1024</br>
  312. - Exponent - eg. 134e6
  313. default: "8Gi"
  314. required: true