questions.yaml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. groups:
  2. - name: Pi-Hole Configuration
  3. description: Configure Pi-Hole
  4. - name: Advanced Pod Configuration
  5. description: Configure Advanced Pod Options for Pi-Hole
  6. - name: Network Configuration
  7. description: Configure Network for Pi-Hole
  8. - name: Storage Configuration
  9. description: Configure Storage for Pi-Hole
  10. - name: Resources Configuration
  11. description: Configure Resources for Pi-Hole
  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: TZ
  23. group: Pi-Hole Configuration
  24. label: Timezone
  25. schema:
  26. type: string
  27. default: Etc/UTC
  28. required: true
  29. $ref:
  30. - definitions/timezone
  31. - variable: piholeConfig
  32. label: ""
  33. group: Pi-Hole Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. - variable: webPassword
  38. label: Web Password
  39. description: The password for the Pi-Hole Web UI.
  40. schema:
  41. type: string
  42. required: true
  43. private: true
  44. - variable: additionalEnvs
  45. label: Additional Environment Variables
  46. description: Configure additional environment variables for Pi-Hole.
  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: podOptions
  67. label: ""
  68. group: Advanced Pod Configuration
  69. schema:
  70. type: dict
  71. attrs:
  72. - variable: dnsConfig
  73. label: Advanced DNS Configuration
  74. schema:
  75. type: dict
  76. attrs:
  77. - variable: options
  78. label: DNS Options
  79. schema:
  80. type: list
  81. items:
  82. - variable: optionsEntry
  83. label: DNS Option Entry
  84. schema:
  85. type: dict
  86. attrs:
  87. - variable: name
  88. label: Option Name
  89. schema:
  90. type: string
  91. required: true
  92. - variable: value
  93. label: Option Value
  94. schema:
  95. type: string
  96. required: true
  97. - variable: piholeNetwork
  98. label: ""
  99. group: Network Configuration
  100. schema:
  101. type: dict
  102. attrs:
  103. - variable: webPort
  104. label: Web Port
  105. description: The port for the Pi-Hole Web UI.
  106. schema:
  107. type: int
  108. default: 20720
  109. min: 9000
  110. max: 65535
  111. required: true
  112. - variable: interfaceName
  113. label: Interface Name
  114. description: The name of the interface to use for Pi-Hole.
  115. schema:
  116. type: string
  117. default: ""
  118. - variable: dhcp
  119. label: DHCP Configuration
  120. schema:
  121. type: dict
  122. attrs:
  123. - variable: enabled
  124. label: Enable DHCP
  125. description: Enable DHCP for Pi-Hole.
  126. schema:
  127. type: boolean
  128. default: false
  129. - variable: start
  130. label: DHCP Start
  131. description: The start of the DHCP range.
  132. schema:
  133. type: ipaddr
  134. cidr: false
  135. show_if: [["enabled", "=", true]]
  136. required: true
  137. - variable: end
  138. label: DHCP End
  139. description: The end of the DHCP range.
  140. schema:
  141. type: ipaddr
  142. cidr: false
  143. show_if: [["enabled", "=", true]]
  144. required: true
  145. - variable: gateway
  146. label: DHCP Gateway
  147. description: The gateway for the DHCP range.
  148. schema:
  149. type: ipaddr
  150. cidr: false
  151. show_if: [["enabled", "=", true]]
  152. required: true
  153. - variable: piholeStorage
  154. label: ""
  155. group: Storage Configuration
  156. schema:
  157. type: dict
  158. attrs:
  159. - variable: config
  160. label: Pi-Hole Config Storage
  161. description: The path to store Pi-Hole Configuration.
  162. schema:
  163. type: dict
  164. attrs:
  165. - variable: type
  166. label: Type
  167. description: |
  168. ixVolume: Is dataset created automatically by the system.</br>
  169. Host Path: Is a path that already exists on the system.
  170. schema:
  171. type: string
  172. required: true
  173. immutable: true
  174. default: "ixVolume"
  175. enum:
  176. - value: "hostPath"
  177. description: Host Path (Path that already exists on the system)
  178. - value: "ixVolume"
  179. description: ixVolume (Dataset created automatically by the system)
  180. - variable: ixVolumeConfig
  181. label: ixVolume Configuration
  182. description: The configuration for the ixVolume dataset.
  183. schema:
  184. type: dict
  185. show_if: [["type", "=", "ixVolume"]]
  186. $ref:
  187. - "normalize/ixVolume"
  188. attrs:
  189. - variable: aclEnable
  190. label: Enable ACL
  191. description: Enable ACL for the dataset.
  192. schema:
  193. type: boolean
  194. default: false
  195. - variable: datasetName
  196. label: Dataset Name
  197. description: The name of the dataset to use for storage.
  198. schema:
  199. type: string
  200. required: true
  201. immutable: true
  202. hidden: true
  203. default: "config"
  204. - variable: aclEntries
  205. label: ACL Configuration
  206. schema:
  207. type: dict
  208. show_if: [["aclEnable", "=", true]]
  209. attrs: []
  210. - variable: hostPathConfig
  211. label: Host Path Config
  212. schema:
  213. type: dict
  214. show_if: [["type", "=", "hostPath"]]
  215. attrs:
  216. - variable: aclEnable
  217. label: Enable ACL
  218. description: Enable ACL for the dataset.
  219. schema:
  220. type: boolean
  221. default: false
  222. - variable: acl
  223. label: ACL Configuration
  224. schema:
  225. type: dict
  226. show_if: [["aclEnable", "=", true]]
  227. attrs: []
  228. $ref:
  229. - "normalize/acl"
  230. - variable: hostPath
  231. label: Host Path
  232. description: The host path to use for storage.
  233. schema:
  234. type: hostpath
  235. show_if: [["aclEnable", "=", false]]
  236. required: true
  237. - variable: dnsmasq
  238. label: Pi-Hole DNSmasq Storage
  239. description: The path to store Pi-Hole DNSmasq.
  240. schema:
  241. type: dict
  242. attrs:
  243. - variable: type
  244. label: Type
  245. description: |
  246. ixVolume: Is dataset created automatically by the system.</br>
  247. Host Path: Is a path that already exists on the system.
  248. schema:
  249. type: string
  250. required: true
  251. immutable: true
  252. default: "ixVolume"
  253. enum:
  254. - value: "hostPath"
  255. description: Host Path (Path that already exists on the system)
  256. - value: "ixVolume"
  257. description: ixVolume (Dataset created automatically by the system)
  258. - variable: ixVolumeConfig
  259. label: ixVolume Configuration
  260. description: The configuration for the ixVolume dataset.
  261. schema:
  262. type: dict
  263. show_if: [["type", "=", "ixVolume"]]
  264. $ref:
  265. - "normalize/ixVolume"
  266. attrs:
  267. - variable: aclEnable
  268. label: Enable ACL
  269. description: Enable ACL for the dataset.
  270. schema:
  271. type: boolean
  272. default: false
  273. - variable: datasetName
  274. label: Dataset Name
  275. description: The name of the dataset to use for storage.
  276. schema:
  277. type: string
  278. required: true
  279. immutable: true
  280. hidden: true
  281. default: "dnsmasq"
  282. - variable: aclEntries
  283. label: ACL Configuration
  284. schema:
  285. type: dict
  286. show_if: [["aclEnable", "=", true]]
  287. attrs: []
  288. - variable: hostPathConfig
  289. label: Host Path Config
  290. schema:
  291. type: dict
  292. show_if: [["type", "=", "hostPath"]]
  293. attrs:
  294. - variable: aclEnable
  295. label: Enable ACL
  296. description: Enable ACL for the dataset.
  297. schema:
  298. type: boolean
  299. default: false
  300. - variable: acl
  301. label: ACL Configuration
  302. schema:
  303. type: dict
  304. show_if: [["aclEnable", "=", true]]
  305. attrs: []
  306. $ref:
  307. - "normalize/acl"
  308. - variable: hostPath
  309. label: Host Path
  310. description: The host path to use for storage.
  311. schema:
  312. type: hostpath
  313. show_if: [["aclEnable", "=", false]]
  314. required: true
  315. - variable: additionalStorages
  316. label: Additional Storage
  317. description: Additional storage for Pi-Hole.
  318. schema:
  319. type: list
  320. default: []
  321. items:
  322. - variable: storageEntry
  323. label: Storage Entry
  324. schema:
  325. type: dict
  326. attrs:
  327. - variable: type
  328. label: Type
  329. description: |
  330. ixVolume: Is dataset created automatically by the system.</br>
  331. Host Path: Is a path that already exists on the system.</br>
  332. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  333. schema:
  334. type: string
  335. required: true
  336. default: "ixVolume"
  337. immutable: true
  338. enum:
  339. - value: "hostPath"
  340. description: Host Path (Path that already exists on the system)
  341. - value: "ixVolume"
  342. description: ixVolume (Dataset created automatically by the system)
  343. - value: "smb-pv-pvc"
  344. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  345. - variable: readOnly
  346. label: Read Only
  347. description: Mount the volume as read only.
  348. schema:
  349. type: boolean
  350. default: false
  351. - variable: mountPath
  352. label: Mount Path
  353. description: The path inside the container to mount the storage.
  354. schema:
  355. type: path
  356. required: true
  357. - variable: hostPathConfig
  358. label: Host Path Config
  359. schema:
  360. type: dict
  361. show_if: [["type", "=", "hostPath"]]
  362. attrs:
  363. - variable: aclEnable
  364. label: Enable ACL
  365. description: Enable ACL for the dataset.
  366. schema:
  367. type: boolean
  368. default: false
  369. - variable: acl
  370. label: ACL Configuration
  371. schema:
  372. type: dict
  373. show_if: [["aclEnable", "=", true]]
  374. attrs: []
  375. $ref:
  376. - "normalize/acl"
  377. - variable: hostPath
  378. label: Host Path
  379. description: The host path to use for storage.
  380. schema:
  381. type: hostpath
  382. show_if: [["aclEnable", "=", false]]
  383. required: true
  384. - variable: ixVolumeConfig
  385. label: ixVolume Configuration
  386. description: The configuration for the ixVolume dataset.
  387. schema:
  388. type: dict
  389. show_if: [["type", "=", "ixVolume"]]
  390. $ref:
  391. - "normalize/ixVolume"
  392. attrs:
  393. - variable: aclEnable
  394. label: Enable ACL
  395. description: Enable ACL for the dataset.
  396. schema:
  397. type: boolean
  398. default: false
  399. - variable: datasetName
  400. label: Dataset Name
  401. description: The name of the dataset to use for storage.
  402. schema:
  403. type: string
  404. required: true
  405. immutable: true
  406. default: "storage_entry"
  407. - variable: aclEntries
  408. label: ACL Configuration
  409. schema:
  410. type: dict
  411. show_if: [["aclEnable", "=", true]]
  412. attrs: []
  413. - variable: smbConfig
  414. label: SMB Share Configuration
  415. description: The configuration for the SMB Share.
  416. schema:
  417. type: dict
  418. show_if: [["type", "=", "smb-pv-pvc"]]
  419. attrs:
  420. - variable: server
  421. label: Server
  422. description: The server for the SMB share.
  423. schema:
  424. type: string
  425. required: true
  426. - variable: share
  427. label: Share
  428. description: The share name for the SMB share.
  429. schema:
  430. type: string
  431. required: true
  432. - variable: domain
  433. label: Domain (Optional)
  434. description: The domain for the SMB share.
  435. schema:
  436. type: string
  437. - variable: username
  438. label: Username
  439. description: The username for the SMB share.
  440. schema:
  441. type: string
  442. required: true
  443. - variable: password
  444. label: Password
  445. description: The password for the SMB share.
  446. schema:
  447. type: string
  448. required: true
  449. private: true
  450. - variable: size
  451. label: Size (in Gi)
  452. description: The size of the volume quota.
  453. schema:
  454. type: int
  455. required: true
  456. min: 1
  457. default: 1
  458. - variable: resources
  459. group: Resources Configuration
  460. label: ""
  461. schema:
  462. type: dict
  463. attrs:
  464. - variable: limits
  465. label: Limits
  466. schema:
  467. type: dict
  468. attrs:
  469. - variable: cpu
  470. label: CPU
  471. description: CPU limit for Pi-Hole.
  472. schema:
  473. type: string
  474. max_length: 6
  475. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  476. valid_chars_error: |
  477. Valid CPU limit formats are</br>
  478. - Plain Integer - eg. 1</br>
  479. - Float - eg. 0.5</br>
  480. - Milicpu - eg. 500m
  481. default: "4000m"
  482. required: true
  483. - variable: memory
  484. label: Memory
  485. description: Memory limit for Pi-Hole.
  486. schema:
  487. type: string
  488. max_length: 12
  489. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  490. valid_chars_error: |
  491. Valid Memory limit formats are</br>
  492. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  493. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  494. - Plain Integer in bytes - eg. 1024</br>
  495. - Exponent - eg. 134e6
  496. default: "8Gi"
  497. required: true