questions.yaml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. groups:
  2. - name: AdGuard Home Configuration
  3. description: Configure AdGuard Home
  4. # - name: User and Group Configuration
  5. # description: Configure User and Group for AdGuard Home
  6. - name: Network Configuration
  7. description: Configure Network for AdGuard Home
  8. - name: Storage Configuration
  9. description: Configure Storage for AdGuard Home
  10. - name: Resources Configuration
  11. description: Configure Resources for AdGuard Home
  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: adguardRunAs
  23. # label: ""
  24. # group: User and Group Configuration
  25. # schema:
  26. # type: dict
  27. # attrs:
  28. # - variable: user
  29. # label: User ID
  30. # description: The user id that AdGuard Home will run as.
  31. # schema:
  32. # type: int
  33. # min: 1
  34. # default: 568
  35. # required: true
  36. # - variable: group
  37. # label: Group ID
  38. # description: The group id that AdGuard Home will run as.
  39. # schema:
  40. # type: int
  41. # min: 1
  42. # default: 568
  43. # required: true
  44. - variable: adguardNetwork
  45. label: ""
  46. group: Network Configuration
  47. schema:
  48. type: dict
  49. attrs:
  50. - variable: webPort
  51. label: Web Port
  52. description: |
  53. The port for the AdGuard Home WebUI. Set the same during the setup wizard.
  54. In case you set a different port, you will need to stop/start the app for the
  55. port set here to take effect. (Or wait for the container to restart automatically)
  56. schema:
  57. type: int
  58. default: 30004
  59. min: 9000
  60. max: 65535
  61. required: true
  62. - variable: enableDHCP
  63. label: Enable DHCP
  64. description: |
  65. This will only append the needed capabilities for DHCP to work </br>
  66. The configuration for DHCP is done in the AdGuard Home WebUI
  67. schema:
  68. type: boolean
  69. default: false
  70. - variable: adguardStorage
  71. label: ""
  72. group: Storage Configuration
  73. schema:
  74. type: dict
  75. attrs:
  76. - variable: work
  77. label: AdGuard Home Data Storage
  78. description: The path to store AdGuard Home work.
  79. schema:
  80. type: dict
  81. attrs:
  82. - variable: type
  83. label: Type
  84. description: |
  85. ixVolume: Is dataset created automatically by the system.</br>
  86. Host Path: Is a path that already exists on the system.
  87. schema:
  88. type: string
  89. required: true
  90. immutable: true
  91. default: ixVolume
  92. enum:
  93. - value: hostPath
  94. description: Host Path (Path that already exists on the system)
  95. - value: ixVolume
  96. description: ixVolume (Dataset created automatically by the system)
  97. - variable: datasetName
  98. label: Dataset Name
  99. schema:
  100. type: string
  101. show_if: [["type", "=", "ixVolume"]]
  102. required: true
  103. hidden: true
  104. immutable: true
  105. default: work
  106. $ref:
  107. - "normalize/ixVolume"
  108. - variable: hostPath
  109. label: Host Path
  110. schema:
  111. type: hostpath
  112. show_if: [["type", "=", "hostPath"]]
  113. immutable: true
  114. required: true
  115. - variable: conf
  116. label: AdGuard Home Configuration Storage
  117. description: The path to store AdGuard Home configuration
  118. schema:
  119. type: dict
  120. attrs:
  121. - variable: type
  122. label: Type
  123. description: |
  124. ixVolume: Is dataset created automatically by the system.</br>
  125. Host Path: Is a path that already exists on the system.
  126. schema:
  127. type: string
  128. required: true
  129. immutable: true
  130. default: ixVolume
  131. enum:
  132. - value: hostPath
  133. description: Host Path (Path that already exists on the system)
  134. - value: ixVolume
  135. description: ixVolume (Dataset created automatically by the system)
  136. - variable: datasetName
  137. label: Dataset Name
  138. schema:
  139. type: string
  140. show_if: [["type", "=", "ixVolume"]]
  141. required: true
  142. hidden: true
  143. immutable: true
  144. default: conf
  145. $ref:
  146. - "normalize/ixVolume"
  147. - variable: hostPath
  148. label: Host Path
  149. schema:
  150. type: hostpath
  151. show_if: [["type", "=", "hostPath"]]
  152. immutable: true
  153. required: true
  154. - variable: resources
  155. label: ""
  156. group: Resources Configuration
  157. schema:
  158. type: dict
  159. attrs:
  160. - variable: limits
  161. label: Limits
  162. schema:
  163. type: dict
  164. attrs:
  165. - variable: cpu
  166. label: CPU
  167. description: CPU limit for AdGuard Home.
  168. schema:
  169. type: string
  170. max_length: 6
  171. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  172. valid_chars_error: |
  173. Valid CPU limit formats are</br>
  174. - Plain Integer - eg. 1</br>
  175. - Float - eg. 0.5</br>
  176. - Milicpu - eg. 500m
  177. default: "4000m"
  178. required: true
  179. - variable: memory
  180. label: Memory
  181. description: Memory limit for AdGuard Home.
  182. schema:
  183. type: string
  184. max_length: 12
  185. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  186. valid_chars_error: |
  187. Valid Memory limit formats are</br>
  188. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  189. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  190. - Plain Integer in bytes - eg. 1024</br>
  191. - Exponent - eg. 134e6
  192. default: "8Gi"
  193. required: true