questions.yaml 15 KB

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