questions.yaml 11 KB

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