questions.yaml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. default: ixVolume
  91. enum:
  92. - value: hostPath
  93. description: Host Path (Path that already exists on the system)
  94. - value: ixVolume
  95. description: ixVolume (Dataset created automatically by the system)
  96. - variable: datasetName
  97. label: Dataset Name
  98. schema:
  99. type: string
  100. show_if: [["type", "=", "ixVolume"]]
  101. required: true
  102. hidden: true
  103. immutable: true
  104. default: work
  105. $ref:
  106. - "normalize/ixVolume"
  107. - variable: hostPath
  108. label: Host Path
  109. schema:
  110. type: hostpath
  111. show_if: [["type", "=", "hostPath"]]
  112. immutable: true
  113. required: true
  114. - variable: conf
  115. label: AdGuard Home Configuration Storage
  116. description: The path to store AdGuard Home configuration
  117. schema:
  118. type: dict
  119. attrs:
  120. - variable: type
  121. label: Type
  122. description: |
  123. ixVolume: Is dataset created automatically by the system.</br>
  124. Host Path: Is a path that already exists on the system.
  125. schema:
  126. type: string
  127. required: true
  128. default: ixVolume
  129. enum:
  130. - value: hostPath
  131. description: Host Path (Path that already exists on the system)
  132. - value: ixVolume
  133. description: ixVolume (Dataset created automatically by the system)
  134. - variable: datasetName
  135. label: Dataset Name
  136. schema:
  137. type: string
  138. show_if: [["type", "=", "ixVolume"]]
  139. required: true
  140. hidden: true
  141. immutable: true
  142. default: conf
  143. $ref:
  144. - "normalize/ixVolume"
  145. - variable: hostPath
  146. label: Host Path
  147. schema:
  148. type: hostpath
  149. show_if: [["type", "=", "hostPath"]]
  150. immutable: true
  151. required: true
  152. - variable: resources
  153. label: ""
  154. group: Resources Configuration
  155. schema:
  156. type: dict
  157. attrs:
  158. - variable: limits
  159. label: Limits
  160. schema:
  161. type: dict
  162. attrs:
  163. - variable: cpu
  164. label: CPU
  165. description: CPU limit for AdGuard Home.
  166. schema:
  167. type: string
  168. max_length: 6
  169. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  170. valid_chars_error: |
  171. Valid CPU limit formats are</br>
  172. - Plain Integer - eg. 1</br>
  173. - Float - eg. 0.5</br>
  174. - Milicpu - eg. 500m
  175. default: "4000m"
  176. required: true
  177. - variable: memory
  178. label: Memory
  179. description: Memory limit for AdGuard Home.
  180. schema:
  181. type: string
  182. max_length: 12
  183. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  184. valid_chars_error: |
  185. Valid Memory limit formats are</br>
  186. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  187. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  188. - Plain Integer in bytes - eg. 1024</br>
  189. - Exponent - eg. 134e6
  190. default: "8Gi"
  191. required: true