questions.yaml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. groups:
  2. - name: Node-RED Configuration
  3. description: Configure Node-RED
  4. - name: Network Configuration
  5. description: Configure Network for Node-RED
  6. - name: Storage Configuration
  7. description: Configure Storage for Node-RED
  8. - name: Labels Configuration
  9. description: Configure labels for Node-RED
  10. - name: Resources Configuration
  11. description: Configure Resources for Node-RED
  12. questions:
  13. - variable: TZ
  14. group: Node-RED Configuration
  15. label: Timezone
  16. schema:
  17. type: string
  18. default: Etc/UTC
  19. required: true
  20. $ref:
  21. - definitions/timezone
  22. - variable: node_red
  23. label: ""
  24. group: Node-RED Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: image_selector
  29. label: Node-RED Image Selector
  30. description: The image selector for Node-RED.
  31. schema:
  32. type: string
  33. required: true
  34. default: "image"
  35. enum:
  36. - value: "image"
  37. description: Node-RED on Node.js 18
  38. - value: "node_18_minimal_image"
  39. description: Node-RED Minimal on Node.js 18
  40. - value: "node_20_image"
  41. description: Node-RED on Node.js 20
  42. - value: "node_20_minimal_image"
  43. description: Node-RED Minimal on Node.js 20
  44. - value: "node_22_image"
  45. description: Node-RED on Node.js 22
  46. - value: "node_22_minimal_image"
  47. description: Node-RED Minimal on Node.js 22
  48. # TODO: Remove EOL images
  49. - value: "node_16_image"
  50. description: Node-RED on Node.js 16 (EOL - Deprecated)
  51. - value: "node_16_minimal_image"
  52. description: Node-RED Minimal on Node.js 16 (EOL - Deprecated)
  53. - value: "node_14_image"
  54. description: Node-RED on Node.js 14 (EOL - Deprecated)
  55. - value: "node_14_minimal_image"
  56. description: Node-RED Minimal on Node.js 14 (EOL - Deprecated)
  57. - variable: enable_safe_mode
  58. label: Enable 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: enable_projects
  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: additional_envs
  76. label: Additional Environment Variables
  77. schema:
  78. type: list
  79. default: []
  80. items:
  81. - variable: env
  82. label: Environment Variable
  83. schema:
  84. type: dict
  85. attrs:
  86. - variable: name
  87. label: Name
  88. schema:
  89. type: string
  90. required: true
  91. - variable: value
  92. label: Value
  93. schema:
  94. type: string
  95. - variable: network
  96. label: ""
  97. group: Network Configuration
  98. schema:
  99. type: dict
  100. attrs:
  101. - variable: web_port
  102. label: WebUI Port
  103. description: The port for Node-RED WebUI
  104. schema:
  105. type: dict
  106. attrs:
  107. - variable: bind_mode
  108. label: Port Bind Mode
  109. description: |
  110. The port bind mode.</br>
  111. - Publish: The port will be published on the host for external access.</br>
  112. - Expose: The port will be exposed for inter-container communication.</br>
  113. - None: The port will not be exposed or published.</br>
  114. Note: If the Dockerfile defines an EXPOSE directive,
  115. the port will still be exposed for inter-container communication regardless of this setting.
  116. schema:
  117. type: string
  118. default: "published"
  119. enum:
  120. - value: "published"
  121. description: Publish port on the host for external access
  122. - value: "exposed"
  123. description: Expose port for inter-container communication
  124. - value: ""
  125. description: None
  126. - variable: port_number
  127. label: Port Number
  128. schema:
  129. type: int
  130. default: 30049
  131. min: 1
  132. max: 65535
  133. required: true
  134. - variable: host_ips
  135. label: Host IPs
  136. description: IPs on the host to bind this port
  137. schema:
  138. type: list
  139. show_if: [["bind_mode", "=", "published"]]
  140. default: []
  141. items:
  142. - variable: host_ip
  143. label: Host IP
  144. schema:
  145. type: string
  146. required: true
  147. $ref:
  148. - definitions/node_bind_ip
  149. - variable: host_network
  150. label: Host Network
  151. description: |
  152. Bind to the host network. It's recommended to keep this disabled.
  153. schema:
  154. type: boolean
  155. default: false
  156. - variable: additional_ports
  157. label: Additional Ports
  158. schema:
  159. type: list
  160. show_if: [["host_network", "=", false]]
  161. items:
  162. - variable: port
  163. label: Port
  164. schema:
  165. type: dict
  166. attrs:
  167. - variable: bind_mode
  168. label: Port Bind Mode
  169. description: |
  170. The port bind mode.</br>
  171. - Publish: The port will be published on the host for external access.</br>
  172. - Expose: The port will be exposed for inter-container communication.</br>
  173. schema:
  174. type: string
  175. default: "published"
  176. enum:
  177. - value: "published"
  178. description: Publish port on the host for external access
  179. - value: "exposed"
  180. description: Expose port for inter-container communication
  181. - variable: port_number
  182. label: Port Number
  183. schema:
  184. type: int
  185. min: 1
  186. max: 65535
  187. required: true
  188. - variable: container_port
  189. label: Container Port
  190. schema:
  191. type: int
  192. min: 1
  193. max: 65535
  194. required: true
  195. - variable: protocol
  196. label: Protocol
  197. schema:
  198. type: string
  199. required: true
  200. default: "tcp"
  201. enum:
  202. - value: "tcp"
  203. description: TCP
  204. - value: "udp"
  205. description: UDP
  206. - variable: host_ips
  207. label: Host IPs
  208. description: IPs on the host to bind this port
  209. schema:
  210. type: list
  211. show_if: [["bind_mode", "=", "published"]]
  212. default: []
  213. items:
  214. - variable: host_ip
  215. label: Host IP
  216. schema:
  217. type: string
  218. required: true
  219. $ref:
  220. - definitions/node_bind_ip
  221. - variable: storage
  222. label: ""
  223. group: Storage Configuration
  224. schema:
  225. type: dict
  226. attrs:
  227. - variable: data
  228. label: Node-RED Data Storage
  229. description: The path to store Node-RED Data.
  230. schema:
  231. type: dict
  232. attrs:
  233. - variable: type
  234. label: Type
  235. description: |
  236. ixVolume: Is dataset created automatically by the system.</br>
  237. Host Path: Is a path that already exists on the system.
  238. schema:
  239. type: string
  240. required: true
  241. default: "ix_volume"
  242. enum:
  243. - value: "host_path"
  244. description: Host Path (Path that already exists on the system)
  245. - value: "ix_volume"
  246. description: ixVolume (Dataset created automatically by the system)
  247. - variable: ix_volume_config
  248. label: ixVolume Configuration
  249. description: The configuration for the ixVolume dataset.
  250. schema:
  251. type: dict
  252. show_if: [["type", "=", "ix_volume"]]
  253. $ref:
  254. - "normalize/ix_volume"
  255. attrs:
  256. - variable: acl_enable
  257. label: Enable ACL
  258. description: Enable ACL for the storage.
  259. schema:
  260. type: boolean
  261. default: false
  262. - variable: dataset_name
  263. label: Dataset Name
  264. description: The name of the dataset to use for storage.
  265. schema:
  266. type: string
  267. required: true
  268. hidden: true
  269. default: "data"
  270. - variable: acl_entries
  271. label: ACL Configuration
  272. schema:
  273. type: dict
  274. show_if: [["acl_enable", "=", true]]
  275. attrs: []
  276. - variable: host_path_config
  277. label: Host Path Configuration
  278. schema:
  279. type: dict
  280. show_if: [["type", "=", "host_path"]]
  281. attrs:
  282. - variable: acl_enable
  283. label: Enable ACL
  284. description: Enable ACL for the storage.
  285. schema:
  286. type: boolean
  287. default: false
  288. - variable: acl
  289. label: ACL Configuration
  290. schema:
  291. type: dict
  292. show_if: [["acl_enable", "=", true]]
  293. attrs: []
  294. $ref:
  295. - "normalize/acl"
  296. - variable: path
  297. label: Host Path
  298. description: The host path to use for storage.
  299. schema:
  300. type: hostpath
  301. show_if: [["acl_enable", "=", false]]
  302. required: true
  303. - variable: additional_storage
  304. label: Additional Storage
  305. schema:
  306. type: list
  307. default: []
  308. items:
  309. - variable: storageEntry
  310. label: Storage Entry
  311. schema:
  312. type: dict
  313. attrs:
  314. - variable: type
  315. label: Type
  316. description: |
  317. ixVolume: Is dataset created automatically by the system.</br>
  318. Host Path: Is a path that already exists on the system.</br>
  319. SMB Share: Is a SMB share that is mounted to as a volume.
  320. schema:
  321. type: string
  322. required: true
  323. default: "ix_volume"
  324. enum:
  325. - value: "host_path"
  326. description: Host Path (Path that already exists on the system)
  327. - value: "ix_volume"
  328. description: ixVolume (Dataset created automatically by the system)
  329. - value: "cifs"
  330. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  331. - variable: read_only
  332. label: Read Only
  333. description: Mount the volume as read only.
  334. schema:
  335. type: boolean
  336. default: false
  337. - variable: mount_path
  338. label: Mount Path
  339. description: The path inside the container to mount the storage.
  340. schema:
  341. type: path
  342. required: true
  343. - variable: host_path_config
  344. label: Host Path Configuration
  345. schema:
  346. type: dict
  347. show_if: [["type", "=", "host_path"]]
  348. attrs:
  349. - variable: acl_enable
  350. label: Enable ACL
  351. description: Enable ACL for the storage.
  352. schema:
  353. type: boolean
  354. default: false
  355. - variable: acl
  356. label: ACL Configuration
  357. schema:
  358. type: dict
  359. show_if: [["acl_enable", "=", true]]
  360. attrs: []
  361. $ref:
  362. - "normalize/acl"
  363. - variable: path
  364. label: Host Path
  365. description: The host path to use for storage.
  366. schema:
  367. type: hostpath
  368. show_if: [["acl_enable", "=", false]]
  369. required: true
  370. - variable: ix_volume_config
  371. label: ixVolume Configuration
  372. description: The configuration for the ixVolume dataset.
  373. schema:
  374. type: dict
  375. show_if: [["type", "=", "ix_volume"]]
  376. $ref:
  377. - "normalize/ix_volume"
  378. attrs:
  379. - variable: acl_enable
  380. label: Enable ACL
  381. description: Enable ACL for the storage.
  382. schema:
  383. type: boolean
  384. default: false
  385. - variable: dataset_name
  386. label: Dataset Name
  387. description: The name of the dataset to use for storage.
  388. schema:
  389. type: string
  390. required: true
  391. default: "storage_entry"
  392. - variable: acl_entries
  393. label: ACL Configuration
  394. schema:
  395. type: dict
  396. show_if: [["acl_enable", "=", true]]
  397. attrs: []
  398. - variable: cifs_config
  399. label: SMB Configuration
  400. description: The configuration for the SMB dataset.
  401. schema:
  402. type: dict
  403. show_if: [["type", "=", "cifs"]]
  404. attrs:
  405. - variable: server
  406. label: Server
  407. description: The server to mount the SMB share.
  408. schema:
  409. type: string
  410. required: true
  411. - variable: path
  412. label: Path
  413. description: The path to mount the SMB share.
  414. schema:
  415. type: string
  416. required: true
  417. - variable: username
  418. label: Username
  419. description: The username to use for the SMB share.
  420. schema:
  421. type: string
  422. required: true
  423. - variable: password
  424. label: Password
  425. description: The password to use for the SMB share.
  426. schema:
  427. type: string
  428. required: true
  429. private: true
  430. - variable: domain
  431. label: Domain
  432. description: The domain to use for the SMB share.
  433. schema:
  434. type: string
  435. - variable: labels
  436. label: ""
  437. group: Labels Configuration
  438. schema:
  439. type: list
  440. default: []
  441. items:
  442. - variable: label
  443. label: Label
  444. schema:
  445. type: dict
  446. attrs:
  447. - variable: key
  448. label: Key
  449. schema:
  450. type: string
  451. required: true
  452. - variable: value
  453. label: Value
  454. schema:
  455. type: string
  456. required: true
  457. - variable: containers
  458. label: Containers
  459. description: Containers where the label should be applied
  460. schema:
  461. type: list
  462. items:
  463. - variable: container
  464. label: Container
  465. schema:
  466. type: string
  467. required: true
  468. enum:
  469. - value: node-red
  470. description: node-red
  471. - variable: resources
  472. label: ""
  473. group: Resources Configuration
  474. schema:
  475. type: dict
  476. attrs:
  477. - variable: limits
  478. label: Limits
  479. schema:
  480. type: dict
  481. attrs:
  482. - variable: cpus
  483. label: CPUs
  484. description: CPUs limit for Node-RED.
  485. schema:
  486. type: int
  487. default: 2
  488. required: true
  489. - variable: memory
  490. label: Memory (in MB)
  491. description: Memory limit for Node-RED.
  492. schema:
  493. type: int
  494. default: 4096
  495. required: true