questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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: datasetName
  138. label: Dataset Name
  139. schema:
  140. type: string
  141. show_if: [["type", "=", "ixVolume"]]
  142. required: true
  143. hidden: true
  144. immutable: true
  145. default: "data"
  146. $ref:
  147. - "normalize/ixVolume"
  148. - variable: hostPath
  149. label: Host Path
  150. schema:
  151. type: hostpath
  152. show_if: [["type", "=", "hostPath"]]
  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.</br>
  171. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  172. schema:
  173. type: string
  174. required: true
  175. default: "ixVolume"
  176. immutable: true
  177. enum:
  178. - value: "hostPath"
  179. description: Host Path (Path that already exists on the system)
  180. - value: "ixVolume"
  181. description: ixVolume (Dataset created automatically by the system)
  182. - value: "smb-pv-pvc"
  183. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  184. - variable: mountPath
  185. label: Mount Path
  186. description: The path inside the container to mount the storage.
  187. schema:
  188. type: path
  189. required: true
  190. - variable: hostPath
  191. label: Host Path
  192. description: The host path to use for storage.
  193. schema:
  194. type: hostpath
  195. show_if: [["type", "=", "hostPath"]]
  196. required: true
  197. - variable: datasetName
  198. label: Dataset Name
  199. description: The name of the dataset to use for storage.
  200. schema:
  201. type: string
  202. show_if: [["type", "=", "ixVolume"]]
  203. required: true
  204. immutable: true
  205. default: "storage_entry"
  206. $ref:
  207. - "normalize/ixVolume"
  208. - variable: server
  209. label: Server
  210. description: The server for the SMB share.
  211. schema:
  212. type: string
  213. show_if: [["type", "=", "smb-pv-pvc"]]
  214. required: true
  215. - variable: share
  216. label: Share
  217. description: The share name for the SMB share.
  218. schema:
  219. type: string
  220. show_if: [["type", "=", "smb-pv-pvc"]]
  221. required: true
  222. - variable: domain
  223. label: Domain (Optional)
  224. description: The domain for the SMB share.
  225. schema:
  226. type: string
  227. show_if: [["type", "=", "smb-pv-pvc"]]
  228. - variable: username
  229. label: Username
  230. description: The username for the SMB share.
  231. schema:
  232. type: string
  233. show_if: [["type", "=", "smb-pv-pvc"]]
  234. required: true
  235. - variable: password
  236. label: Password
  237. description: The password for the SMB share.
  238. schema:
  239. type: string
  240. show_if: [["type", "=", "smb-pv-pvc"]]
  241. required: true
  242. private: true
  243. - variable: size
  244. label: Size (in Gi)
  245. description: The size of the volume quota.
  246. schema:
  247. type: int
  248. show_if: [["type", "=", "smb-pv-pvc"]]
  249. required: true
  250. min: 1
  251. default: 1
  252. - variable: resources
  253. group: Resources Configuration
  254. label: ""
  255. schema:
  256. type: dict
  257. attrs:
  258. - variable: limits
  259. label: Limits
  260. schema:
  261. type: dict
  262. attrs:
  263. - variable: cpu
  264. label: CPU
  265. description: CPU limit for Node-RED.
  266. schema:
  267. type: string
  268. max_length: 6
  269. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  270. valid_chars_error: |
  271. Valid CPU limit formats are</br>
  272. - Plain Integer - eg. 1</br>
  273. - Float - eg. 0.5</br>
  274. - Milicpu - eg. 500m
  275. default: "4000m"
  276. required: true
  277. - variable: memory
  278. label: Memory
  279. description: Memory limit for Node-RED.
  280. schema:
  281. type: string
  282. max_length: 12
  283. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  284. valid_chars_error: |
  285. Valid Memory limit formats are</br>
  286. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  287. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  288. - Plain Integer in bytes - eg. 1024</br>
  289. - Exponent - eg. 134e6
  290. default: "8Gi"
  291. required: true