questions.yaml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. default: "ixVolume"
  131. enum:
  132. - value: "hostPath"
  133. description: Host Path (Path that already exists on the system)
  134. - value: "ixVolume"
  135. description: ixVolume (Dataset created automatically by the system)
  136. - variable: datasetName
  137. label: Dataset Name
  138. schema:
  139. type: string
  140. show_if: [["type", "=", "ixVolume"]]
  141. required: true
  142. hidden: true
  143. immutable: true
  144. default: "data"
  145. $ref:
  146. - "normalize/ixVolume"
  147. - variable: hostPath
  148. label: Host Path
  149. schema:
  150. type: hostpath
  151. show_if: [["type", "=", "hostPath"]]
  152. immutable: true
  153. required: true
  154. - variable: additionalStorages
  155. label: Additional Storage
  156. description: Additional storage for Node-RED.
  157. schema:
  158. type: list
  159. default: []
  160. items:
  161. - variable: storageEntry
  162. label: Storage Entry
  163. schema:
  164. type: dict
  165. attrs:
  166. - variable: type
  167. label: Type
  168. description: |
  169. ixVolume: Is dataset created automatically by the system.</br>
  170. Host Path: Is a path that already exists on the system.
  171. schema:
  172. type: string
  173. required: true
  174. default: "ixVolume"
  175. enum:
  176. - value: "hostPath"
  177. description: Host Path (Path that already exists on the system)
  178. - value: "ixVolume"
  179. description: ixVolume (Dataset created automatically by the system)
  180. - variable: mountPath
  181. label: Mount Path
  182. description: The path inside the container to mount the storage.
  183. schema:
  184. type: path
  185. required: true
  186. - variable: hostPath
  187. label: Host Path
  188. description: The host path to use for storage.
  189. schema:
  190. type: hostpath
  191. show_if: [["type", "=", "hostPath"]]
  192. required: true
  193. - variable: datasetName
  194. label: Dataset Name
  195. description: The name of the dataset to use for storage.
  196. schema:
  197. type: string
  198. show_if: [["type", "=", "ixVolume"]]
  199. required: true
  200. immutable: true
  201. default: "storage_entry"
  202. $ref:
  203. - "normalize/ixVolume"
  204. - variable: resources
  205. group: Resources Configuration
  206. label: ""
  207. schema:
  208. type: dict
  209. attrs:
  210. - variable: limits
  211. label: Limits
  212. schema:
  213. type: dict
  214. attrs:
  215. - variable: cpu
  216. label: CPU
  217. description: CPU limit for Node-RED.
  218. schema:
  219. type: string
  220. max_length: 6
  221. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  222. valid_chars_error: |
  223. Valid CPU limit formats are</br>
  224. - Plain Integer - eg. 1</br>
  225. - Float - eg. 0.5</br>
  226. - Milicpu - eg. 500m
  227. default: "4000m"
  228. required: true
  229. - variable: memory
  230. label: Memory
  231. description: Memory limit for Node-RED.
  232. schema:
  233. type: string
  234. max_length: 12
  235. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  236. valid_chars_error: |
  237. Valid Memory limit formats are</br>
  238. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  239. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  240. - Plain Integer in bytes - eg. 1024</br>
  241. - Exponent - eg. 134e6
  242. default: "8Gi"
  243. required: true