questions.yaml 15 KB

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