questions.yaml 8.2 KB

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