questions.yaml 11 KB

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