questions.yaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. groups:
  2. - name: Node-RED Configuration
  3. description: Configure Node-RED
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Node-RED
  6. - name: Network Configuration
  7. description: Configure Network for Node-RED
  8. - name: Storage Configuration
  9. description: Configure Storage for Node-RED
  10. - name: Resources Configuration
  11. description: Configure Resources for Node-RED
  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: noderedConfig
  23. label: ""
  24. group: Node-RED Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: imageSelector
  29. label: Node-RED Image
  30. description: The Node-RED image to use.
  31. schema:
  32. type: string
  33. default: "node16Image"
  34. required: true
  35. enum:
  36. - value: node14Image
  37. description: Node-RED on Node.js 14
  38. - value: node14MinimalImage
  39. description: Node-RED Minimal on Node.js 14
  40. - value: node16Image
  41. description: Node-RED on Node.js 16
  42. - value: node16MinimalImage
  43. description: Node-RED Minimal on Node.js 16
  44. - value: node18Image
  45. description: Node-RED on Node.js 18
  46. - value: node18MinimalImage
  47. description: Node-RED Minimal on Node.js 18
  48. - variable: safeMode
  49. label: Safe Mode
  50. description: |
  51. Starts Node-RED without starting the flows.</br>
  52. This allows you to open the flows in the editor and
  53. make changes without the flows running.</br>
  54. When you deploy your changes, the flows are then started.
  55. schema:
  56. type: boolean
  57. default: false
  58. - variable: enableProjects
  59. label: Enable Projects
  60. description: |
  61. Enable projects in Node-RED.</br>
  62. This allows you to use the projects feature in Node-RED.
  63. schema:
  64. type: boolean
  65. default: false
  66. - variable: additionalEnvs
  67. label: Additional Environment Variables
  68. description: Configure additional environment variables for Node-RED.
  69. schema:
  70. type: list
  71. default: []
  72. items:
  73. - variable: env
  74. label: Environment Variable
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: name
  79. label: Name
  80. schema:
  81. type: string
  82. required: true
  83. - variable: value
  84. label: Value
  85. schema:
  86. type: string
  87. required: true
  88. - variable: noderedNetwork
  89. label: ""
  90. group: Network Configuration
  91. schema:
  92. type: dict
  93. attrs:
  94. - variable: webPort
  95. label: Web Port
  96. description: The port for the Node-RED Web UI.
  97. schema:
  98. type: int
  99. default: 30049
  100. min: 9000
  101. max: 65535
  102. required: true
  103. - variable: hostNetwork
  104. label: Host Network
  105. description: |
  106. Bind to the host network. It's recommended to keep this disabled.</br>
  107. schema:
  108. type: boolean
  109. default: false
  110. - variable: noderedStorage
  111. label: ""
  112. group: Storage Configuration
  113. schema:
  114. type: dict
  115. attrs:
  116. - variable: data
  117. label: Node-RED Data Storage
  118. description: The path to store Node-RED Data.
  119. schema:
  120. type: dict
  121. attrs:
  122. - variable: type
  123. label: Type
  124. description: |
  125. ixVolume: Is dataset created automatically by the system.</br>
  126. Host Path: Is a path that already exists on the system.
  127. schema:
  128. type: string
  129. required: true
  130. immutable: true
  131. default: "ixVolume"
  132. enum:
  133. - value: "hostPath"
  134. description: Host Path (Path that already exists on the system)
  135. - value: "ixVolume"
  136. description: ixVolume (Dataset created automatically by the system)
  137. - variable: ixVolumeConfig
  138. label: ixVolume Configuration
  139. description: The configuration for the ixVolume dataset.
  140. schema:
  141. type: dict
  142. show_if: [["type", "=", "ixVolume"]]
  143. $ref:
  144. - "normalize/ixVolume"
  145. attrs:
  146. - variable: aclEnable
  147. label: Enable ACL
  148. description: Enable ACL for the dataset.
  149. schema:
  150. type: boolean
  151. default: false
  152. - variable: datasetName
  153. label: Dataset Name
  154. description: The name of the dataset to use for storage.
  155. schema:
  156. type: string
  157. required: true
  158. immutable: true
  159. hidden: true
  160. default: "data"
  161. - variable: aclEntries
  162. label: ACL Configuration
  163. schema:
  164. type: dict
  165. show_if: [["aclEnable", "=", true]]
  166. attrs: []
  167. - variable: hostPathConfig
  168. label: Host Path Configuration
  169. schema:
  170. type: dict
  171. show_if: [["type", "=", "hostPath"]]
  172. attrs:
  173. - variable: aclEnable
  174. label: Enable ACL
  175. description: Enable ACL for the dataset.
  176. schema:
  177. type: boolean
  178. default: false
  179. - variable: acl
  180. label: ACL Configuration
  181. schema:
  182. type: dict
  183. show_if: [["aclEnable", "=", true]]
  184. attrs: []
  185. $ref:
  186. - "normalize/acl"
  187. - variable: hostPath
  188. label: Host Path
  189. description: The host path to use for storage.
  190. schema:
  191. type: hostpath
  192. show_if: [["aclEnable", "=", false]]
  193. required: true
  194. - variable: additionalStorages
  195. label: Additional Storage
  196. description: Additional storage for Node-RED.
  197. schema:
  198. type: list
  199. default: []
  200. items:
  201. - variable: storageEntry
  202. label: Storage Entry
  203. schema:
  204. type: dict
  205. attrs:
  206. - variable: type
  207. label: Type
  208. description: |
  209. ixVolume: Is dataset created automatically by the system.</br>
  210. Host Path: Is a path that already exists on the system.</br>
  211. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  212. schema:
  213. type: string
  214. required: true
  215. default: "ixVolume"
  216. immutable: true
  217. enum:
  218. - value: "hostPath"
  219. description: Host Path (Path that already exists on the system)
  220. - value: "ixVolume"
  221. description: ixVolume (Dataset created automatically by the system)
  222. - value: "smb-pv-pvc"
  223. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  224. - variable: readOnly
  225. label: Read Only
  226. description: Mount the volume as read only.
  227. schema:
  228. type: boolean
  229. default: false
  230. - variable: mountPath
  231. label: Mount Path
  232. description: The path inside the container to mount the storage.
  233. schema:
  234. type: path
  235. required: true
  236. - variable: hostPathConfig
  237. label: Host Path Configuration
  238. schema:
  239. type: dict
  240. show_if: [["type", "=", "hostPath"]]
  241. attrs:
  242. - variable: aclEnable
  243. label: Enable ACL
  244. description: Enable ACL for the dataset.
  245. schema:
  246. type: boolean
  247. default: false
  248. - variable: acl
  249. label: ACL Configuration
  250. schema:
  251. type: dict
  252. show_if: [["aclEnable", "=", true]]
  253. attrs: []
  254. $ref:
  255. - "normalize/acl"
  256. - variable: hostPath
  257. label: Host Path
  258. description: The host path to use for storage.
  259. schema:
  260. type: hostpath
  261. show_if: [["aclEnable", "=", false]]
  262. required: true
  263. - variable: ixVolumeConfig
  264. label: ixVolume Configuration
  265. description: The configuration for the ixVolume dataset.
  266. schema:
  267. type: dict
  268. show_if: [["type", "=", "ixVolume"]]
  269. $ref:
  270. - "normalize/ixVolume"
  271. attrs:
  272. - variable: aclEnable
  273. label: Enable ACL
  274. description: Enable ACL for the dataset.
  275. schema:
  276. type: boolean
  277. default: false
  278. - variable: datasetName
  279. label: Dataset Name
  280. description: The name of the dataset to use for storage.
  281. schema:
  282. type: string
  283. required: true
  284. immutable: true
  285. default: "storage_entry"
  286. - variable: aclEntries
  287. label: ACL Configuration
  288. schema:
  289. type: dict
  290. show_if: [["aclEnable", "=", true]]
  291. attrs: []
  292. - variable: smbConfig
  293. label: SMB Share Configuration
  294. description: The configuration for the SMB Share.
  295. schema:
  296. type: dict
  297. show_if: [["type", "=", "smb-pv-pvc"]]
  298. attrs:
  299. - variable: server
  300. label: Server
  301. description: The server for the SMB share.
  302. schema:
  303. type: string
  304. required: true
  305. - variable: share
  306. label: Share
  307. description: The share name for the SMB share.
  308. schema:
  309. type: string
  310. required: true
  311. - variable: domain
  312. label: Domain (Optional)
  313. description: The domain for the SMB share.
  314. schema:
  315. type: string
  316. - variable: username
  317. label: Username
  318. description: The username for the SMB share.
  319. schema:
  320. type: string
  321. required: true
  322. - variable: password
  323. label: Password
  324. description: The password for the SMB share.
  325. schema:
  326. type: string
  327. required: true
  328. private: true
  329. - variable: size
  330. label: Size (in Gi)
  331. description: The size of the volume quota.
  332. schema:
  333. type: int
  334. required: true
  335. min: 1
  336. default: 1
  337. - variable: resources
  338. group: Resources Configuration
  339. label: ""
  340. schema:
  341. type: dict
  342. attrs:
  343. - variable: limits
  344. label: Limits
  345. schema:
  346. type: dict
  347. attrs:
  348. - variable: cpu
  349. label: CPU
  350. description: CPU limit for Node-RED.
  351. schema:
  352. type: string
  353. max_length: 6
  354. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  355. valid_chars_error: |
  356. Valid CPU limit formats are</br>
  357. - Plain Integer - eg. 1</br>
  358. - Float - eg. 0.5</br>
  359. - Milicpu - eg. 500m
  360. default: "4000m"
  361. required: true
  362. - variable: memory
  363. label: Memory
  364. description: Memory limit for Node-RED.
  365. schema:
  366. type: string
  367. max_length: 12
  368. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  369. valid_chars_error: |
  370. Valid Memory limit formats are</br>
  371. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  372. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  373. - Plain Integer in bytes - eg. 1024</br>
  374. - Exponent - eg. 134e6
  375. default: "8Gi"
  376. required: true