questions.yaml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. groups:
  2. - name: "Container Images"
  3. description: "Image to be used for container"
  4. - name: "Workload Configuration"
  5. description: "Configure workload deployment"
  6. - name: "Netdata Configuration"
  7. description: "Configure Netdata credentials"
  8. - name: "Storage"
  9. description: "Configure Storage for Netdata"
  10. - name: "Advanced DNS Settings"
  11. description: "Configure DNS settings"
  12. - name: "Resource Limits"
  13. description: "Set CPU/memory limits for Kubernetes Pod"
  14. portals:
  15. web_portal:
  16. protocols:
  17. - "http"
  18. host:
  19. - "$node_ip"
  20. ports:
  21. - "$variable-service.nodePort"
  22. questions:
  23. - variable: dnsConfig
  24. label: "DNS Configuration"
  25. group: "Advanced DNS Settings"
  26. schema:
  27. type: dict
  28. attrs:
  29. - variable: options
  30. label: "DNS Options"
  31. schema:
  32. type: list
  33. items:
  34. - variable: optionsEntry
  35. label: "Option Entry Configuration"
  36. schema:
  37. type: dict
  38. attrs:
  39. - variable: name
  40. label: "Option Name"
  41. schema:
  42. type: string
  43. required: true
  44. - variable: value
  45. label: "Option Value"
  46. schema:
  47. type: string
  48. required: true
  49. - variable: environmentVariables
  50. label: "Netdata image environment"
  51. group: "Netdata Configuration"
  52. schema:
  53. type: list
  54. default: []
  55. items:
  56. - variable: environmentVariable
  57. label: "Environment Variable"
  58. schema:
  59. type: dict
  60. attrs:
  61. - variable: name
  62. label: "Name"
  63. schema:
  64. type: string
  65. - variable: value
  66. label: "Value"
  67. schema:
  68. type: string
  69. - variable: service
  70. description: "Netdata Service Configuration"
  71. label: "Netdata Service Configuration"
  72. group: "Netdata Configuration"
  73. schema:
  74. type: dict
  75. required: true
  76. attrs:
  77. - variable: nodePort
  78. label: "Node Port to use for Netdata UI"
  79. schema:
  80. type: int
  81. min: 9000
  82. max: 65535
  83. default: 20489
  84. required: true
  85. - variable: appVolumeMounts
  86. label: "Netdata Storage"
  87. group: "Storage"
  88. schema:
  89. type: dict
  90. attrs:
  91. - variable: netdataconfig
  92. label: "Configuration Volume"
  93. schema:
  94. type: dict
  95. attrs:
  96. - variable: datasetName
  97. label: "Configuration Volume Name"
  98. schema:
  99. type: string
  100. hidden: true
  101. $ref:
  102. - "normalize/ixVolume"
  103. show_if: [ [ "hostPathEnabled", "=", false ] ]
  104. default: "ix-config"
  105. editable: false
  106. - variable: mountPath
  107. label: "Configuration Mount Path"
  108. description: "Path where the volume will be mounted inside the pod"
  109. schema:
  110. type: path
  111. hidden: true
  112. editable: false
  113. default: "/etc/netdata"
  114. - variable: hostPathEnabled
  115. label: "Enable Host Path for Netdata Configuration Volume"
  116. schema:
  117. type: boolean
  118. default: false
  119. show_subquestions_if: true
  120. subquestions:
  121. - variable: hostPath
  122. label: "Host Path for Netdata Configuration Volume"
  123. schema:
  124. type: hostpath
  125. required: true
  126. immutable: true
  127. - variable: netdatacache
  128. label: "Cache Volume"
  129. schema:
  130. type: dict
  131. attrs:
  132. - variable: datasetName
  133. label: "Cache Volume Name"
  134. schema:
  135. type: string
  136. hidden: true
  137. $ref:
  138. - "normalize/ixVolume"
  139. show_if: [["hostPathEnabled", "=", false]]
  140. default: "ix-cache"
  141. editable: false
  142. - variable: mountPath
  143. label: "Cache Mount Path"
  144. description: "Path where the volume will be mounted inside the pod"
  145. schema:
  146. type: path
  147. hidden: true
  148. editable: false
  149. default: "/var/cache/netdata"
  150. - variable: hostPathEnabled
  151. label: "Enable Host Path for Netdata Cache Volume"
  152. schema:
  153. type: boolean
  154. default: false
  155. show_subquestions_if: true
  156. subquestions:
  157. - variable: hostPath
  158. label: "Host Path for Netdata Cache Volume"
  159. schema:
  160. type: hostpath
  161. required: true
  162. immutable: true
  163. - variable: netdatalib
  164. label: "Netdata Library Volume"
  165. schema:
  166. type: dict
  167. attrs:
  168. - variable: datasetName
  169. label: "Netdata Library Volume Name"
  170. schema:
  171. type: string
  172. hidden: true
  173. $ref:
  174. - "normalize/ixVolume"
  175. show_if: [ [ "hostPathEnabled", "=", false ] ]
  176. default: "ix-lib"
  177. editable: false
  178. - variable: mountPath
  179. label: "Netdata Library Mount Path"
  180. description: "Path where the volume will be mounted inside the pod"
  181. schema:
  182. type: path
  183. hidden: true
  184. editable: false
  185. default: "/var/lib/netdata"
  186. - variable: hostPathEnabled
  187. label: "Enable Host Path for Netdata Library Volume"
  188. schema:
  189. type: boolean
  190. default: false
  191. show_subquestions_if: true
  192. subquestions:
  193. - variable: hostPath
  194. label: "Host Path for Netdata Library Volume"
  195. schema:
  196. type: hostpath
  197. required: true
  198. immutable: true
  199. - variable: extraAppVolumeMounts
  200. label: "Extra Host Path Volumes"
  201. group: "Storage"
  202. schema:
  203. type: list
  204. items:
  205. - variable: extraAppVolume
  206. label: "Host Path Volume"
  207. description: "Add an extra host path volume for Netdata application"
  208. schema:
  209. type: dict
  210. attrs:
  211. - variable: mountPath
  212. label: "Mount Path in Pod"
  213. description: "Path where the volume will be mounted inside the pod"
  214. schema:
  215. type: path
  216. required: true
  217. - variable: hostPath
  218. label: "Host Path"
  219. description: "Host path"
  220. schema:
  221. type: hostpath
  222. required: true
  223. - variable: enableResourceLimits
  224. label: "Enable Pod resource limits"
  225. group: "Resource Limits"
  226. schema:
  227. type: boolean
  228. default: false
  229. - variable: cpuLimit
  230. label: "CPU Limit"
  231. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  232. group: "Resource Limits"
  233. schema:
  234. type: string
  235. show_if: [["enableResourceLimits", "=", true]]
  236. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  237. default: "4000m"
  238. - variable: memLimit
  239. label: "Memory Limit"
  240. group: "Resource Limits"
  241. description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi"
  242. schema:
  243. type: string
  244. show_if: [["enableResourceLimits", "=", true]]
  245. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  246. default: "8Gi"