questions.yaml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. groups:
  2. - name: "Configuration"
  3. description: "Pihole application configuration"
  4. - name: "Storage"
  5. description: "Configure storage for pihole"
  6. - name: "Networking"
  7. description: "Networking Configuration for pihole"
  8. - name: "Advanced DNS Settings"
  9. description: "Configure DNS settings"
  10. - name: "Resource Limits"
  11. description: "Set CPU/memory limits for Kubernetes Pod"
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "http"
  16. host:
  17. - "$node_ip"
  18. ports:
  19. - "$variable-web_port"
  20. path: "/admin/"
  21. questions:
  22. - variable: web_port
  23. label: "Web Port for pihole"
  24. group: Networking
  25. schema:
  26. type: int
  27. min: 8000
  28. max: 65535
  29. default: 20720
  30. required: true
  31. - variable: dns_tcp_port
  32. label: "DNS TCP Port for pihole"
  33. group: Networking
  34. schema:
  35. type: int
  36. min: 8000
  37. max: 65535
  38. default: 20721
  39. show_if: [["hostNetwork", "=", false]]
  40. required: true
  41. - variable: dns_udp_port
  42. label: "DNS UDP Port for pihole"
  43. group: Networking
  44. schema:
  45. type: int
  46. min: 8000
  47. max: 65535
  48. default: 20721
  49. show_if: [["hostNetwork", "=", false]]
  50. required: true
  51. - variable: dhcp
  52. label: "Enable DHCP"
  53. group: "Networking"
  54. schema:
  55. type: boolean
  56. default: false
  57. show_subquestions_if: true
  58. subquestions:
  59. - variable: dhcp_port
  60. label: "DHCP Port for pihole"
  61. group: Networking
  62. schema:
  63. type: int
  64. min: 8000
  65. max: 65535
  66. default: 20722
  67. show_if: [["hostNetwork", "=", false]]
  68. required: true
  69. - variable: dhcp_start
  70. label: "DHCP Start Address"
  71. group: Networking
  72. schema:
  73. type: ipaddr
  74. cidr: false
  75. required: true
  76. - variable: dhcp_end
  77. label: "DHCP End Address"
  78. group: Networking
  79. schema:
  80. type: ipaddr
  81. cidr: false
  82. required: true
  83. - variable: dhcp_gateway
  84. label: "Gateway"
  85. group: Networking
  86. schema:
  87. type: ipaddr
  88. cidr: false
  89. required: true
  90. - variable: dnsConfig
  91. label: "DNS Configuration"
  92. group: "Advanced DNS Settings"
  93. schema:
  94. type: dict
  95. attrs:
  96. - variable: options
  97. label: "DNS Options"
  98. schema:
  99. type: list
  100. items:
  101. - variable: optionsEntry
  102. label: "Option Entry Configuration"
  103. schema:
  104. type: dict
  105. attrs:
  106. - variable: name
  107. label: "Option Name"
  108. schema:
  109. type: string
  110. required: true
  111. - variable: value
  112. label: "Option Value"
  113. schema:
  114. type: string
  115. required: true
  116. - variable: ownerUID
  117. label: "Storage User ID"
  118. description: "User ID of the dnsmasq volume being used (application will chown the volume path with specified UID)"
  119. group: Configuration
  120. schema:
  121. type: int
  122. default: 568
  123. min: 1
  124. max: 65535
  125. - variable: ownerGID
  126. label: "Storage Group ID"
  127. description: "Group ID of the dnsmasq volume being used (application will chown the volume path with specified GID)"
  128. group: Configuration
  129. schema:
  130. type: int
  131. default: 568
  132. min: 1
  133. max: 65535
  134. - variable: password
  135. label: "Admin password"
  136. group: "Configuration"
  137. schema:
  138. type: string
  139. private: true
  140. required: true
  141. empty: false
  142. immutable: true
  143. - variable: timezone
  144. label: "Configure timezone"
  145. group: "Configuration"
  146. description: "Configure timezone for pihole"
  147. schema:
  148. type: string
  149. $ref:
  150. - "definitions/timezone"
  151. - variable: hostNetwork
  152. label: "Enable Host Network"
  153. group: "Networking"
  154. schema:
  155. type: boolean
  156. default: false
  157. - variable: environmentVariables
  158. label: "Pihole environment"
  159. group: "Configuration"
  160. schema:
  161. type: list
  162. default: []
  163. items:
  164. - variable: environmentVariable
  165. label: "Environment Variable"
  166. schema:
  167. type: dict
  168. attrs:
  169. - variable: name
  170. label: "Name"
  171. schema:
  172. type: string
  173. - variable: value
  174. label: "Value"
  175. schema:
  176. type: string
  177. - variable: appVolumeMounts
  178. label: "Pihole Storage"
  179. group: "Storage"
  180. schema:
  181. type: dict
  182. attrs:
  183. - variable: config
  184. label: "Configuration Volume"
  185. schema:
  186. type: dict
  187. attrs:
  188. - variable: datasetName
  189. label: "Configuration Volume Dataset Name"
  190. schema:
  191. type: string
  192. hidden: true
  193. $ref:
  194. - "normalize/ixVolume"
  195. show_if: [["hostPathEnabled", "=", false]]
  196. default: "ix-pihole_config"
  197. editable: false
  198. - variable: mountPath
  199. label: "Configuration Mount Path"
  200. description: "Path where the volume will be mounted inside the pod"
  201. schema:
  202. type: path
  203. hidden: true
  204. editable: true
  205. default: "/etc/pihole"
  206. - variable: hostPathEnabled
  207. label: "Enable Custom Host Path for Pihole Configuration Volume"
  208. schema:
  209. type: boolean
  210. default: false
  211. show_subquestions_if: true
  212. subquestions:
  213. - variable: hostPath
  214. label: "Host Path for Pihole Configuration Volume"
  215. schema:
  216. type: hostpath
  217. required: true
  218. - variable: dnsmasq
  219. label: "DNSMASQ Volume for pihole"
  220. schema:
  221. type: dict
  222. attrs:
  223. - variable: datasetName
  224. label: "DNSMASQ Volume Dataset Name"
  225. schema:
  226. type: string
  227. hidden: true
  228. $ref:
  229. - "normalize/ixVolume"
  230. show_if: [["hostPathEnabled", "=", false]]
  231. default: "ix-pihole_dnsmasq"
  232. editable: false
  233. - variable: mountPath
  234. label: "DNSMASQ Mount Path"
  235. description: "Path where the volume will be mounted inside the pod"
  236. schema:
  237. type: path
  238. hidden: true
  239. editable: true
  240. default: "/etc/dnsmasq.d"
  241. - variable: hostPathEnabled
  242. label: "Enable Custom Host Path for Pihole DNSMASQ Volume"
  243. schema:
  244. type: boolean
  245. default: false
  246. show_subquestions_if: true
  247. subquestions:
  248. - variable: hostPath
  249. label: "Host Path for Pihole DNSMASQ Volume"
  250. schema:
  251. type: hostpath
  252. required: true
  253. - variable: extraAppVolumeMounts
  254. label: "Extra Host Path Volumes"
  255. group: "Storage"
  256. schema:
  257. type: list
  258. items:
  259. - variable: extraAppVolume
  260. label: "Host Path Volume"
  261. description: "Add an extra host path volume for Pihole application"
  262. schema:
  263. type: dict
  264. attrs:
  265. - variable: mountPath
  266. label: "Mount Path in Pod"
  267. description: "Path where the volume will be mounted inside the pod"
  268. schema:
  269. type: path
  270. required: true
  271. - variable: hostPath
  272. label: "Host Path"
  273. description: "Host path"
  274. schema:
  275. type: hostpath
  276. required: true
  277. - variable: enableResourceLimits
  278. label: "Enable Pod resource limits"
  279. group: "Resource Limits"
  280. schema:
  281. type: boolean
  282. default: false
  283. - variable: cpuLimit
  284. label: "CPU Limresource limitsit"
  285. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  286. group: "Resource Limits"
  287. schema:
  288. type: string
  289. show_if: [["enableResourceLimits", "=", true]]
  290. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  291. default: "4000m"
  292. - variable: memLimit
  293. label: "Memory Limit"
  294. group: "Resource Limits"
  295. 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"
  296. schema:
  297. type: string
  298. show_if: [["enableResourceLimits", "=", true]]
  299. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  300. default: "8Gi"