questions.yaml 9.1 KB

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