questions.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. groups:
  2. - name: Vaultwarden Configuration
  3. description: Configure Vaultwarden
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Vaultwarden
  6. - name: Network Configuration
  7. description: Configure Network for Vaultwarden
  8. - name: Storage Configuration
  9. description: Configure Storage for Vaultwarden
  10. - name: Resources Configuration
  11. description: Configure Resources for Vaultwarden
  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. admin_portal:
  22. protocols:
  23. - "$kubernetes-resource_configmap_portal_protocol"
  24. host:
  25. - "$kubernetes-resource_configmap_portal_host"
  26. ports:
  27. - "$kubernetes-resource_configmap_portal_port"
  28. path: "$kubernetes-resource_configmap_portal_admin_path"
  29. questions:
  30. - variable: TZ
  31. group: Vaultwarden Configuration
  32. label: Timezone
  33. schema:
  34. type: string
  35. default: Etc/UTC
  36. required: true
  37. $ref:
  38. - definitions/timezone
  39. - variable: vaultwardenConfig
  40. label: ""
  41. group: Vaultwarden Configuration
  42. schema:
  43. type: dict
  44. attrs:
  45. - variable: adminToken
  46. label: Admin Token
  47. description: Setting this, will enable the admin portal
  48. schema:
  49. type: string
  50. private: true
  51. default: ""
  52. - variable: additionalEnvs
  53. label: Additional Environment Variables
  54. description: Configure additional environment variables for Vaultwarden.
  55. schema:
  56. type: list
  57. default: []
  58. items:
  59. - variable: env
  60. label: Environment Variable
  61. schema:
  62. type: dict
  63. attrs:
  64. - variable: name
  65. label: Name
  66. schema:
  67. type: string
  68. required: true
  69. - variable: value
  70. label: Value
  71. schema:
  72. type: string
  73. required: true
  74. - variable: vaultwardenRunAs
  75. label: ""
  76. group: User and Group Configuration
  77. schema:
  78. type: dict
  79. attrs:
  80. - variable: user
  81. label: User ID
  82. description: The user id that Vaultwarden will run as.
  83. schema:
  84. type: int
  85. min: 568
  86. default: 568
  87. required: true
  88. - variable: group
  89. label: Group ID
  90. description: The group id that Vaultwarden will run as.
  91. schema:
  92. type: int
  93. min: 568
  94. default: 568
  95. required: true
  96. - variable: vaultwardenNetwork
  97. label: ""
  98. group: Network Configuration
  99. schema:
  100. type: dict
  101. attrs:
  102. - variable: webPort
  103. label: Web Port
  104. description: The port for the Vaultwarden Web UI.
  105. schema:
  106. type: int
  107. default: 30032
  108. min: 9000
  109. max: 65535
  110. required: true
  111. - variable: wsEnabled
  112. label: Enable Websocket
  113. schema:
  114. type: boolean
  115. default: true
  116. - variable: wsPort
  117. label: Websocket Port
  118. description: The port for the Vaultwarden Websocket.
  119. schema:
  120. type: int
  121. show_if: [["wsEnabled", "=", true]]
  122. default: 30033
  123. min: 9000
  124. max: 65535
  125. required: true
  126. - variable: hostNetwork
  127. label: Host Network
  128. description: |
  129. Bind to the host network. It's recommended to keep this disabled.</br>
  130. schema:
  131. type: boolean
  132. default: false
  133. - variable: domain
  134. label: Domain
  135. description: |
  136. The domain to use for Vaultwarden </br>
  137. Format is: https://sub.domain.tld:port
  138. schema:
  139. type: string
  140. default: ""
  141. - variable: certificateID
  142. label: Certificate
  143. description: |
  144. The certificate to use for Vaultwarden </br>
  145. Using the Rocket method for TLS setup is NOT recommended </br>
  146. Prefer a reverse proxy with a valid certificate </br>
  147. schema:
  148. type: int
  149. "null": true
  150. $ref:
  151. - "definitions/certificate"
  152. - variable: vaultwardenStorage
  153. label: ""
  154. group: Storage Configuration
  155. schema:
  156. type: dict
  157. attrs:
  158. - variable: data
  159. label: Vaultwarden Data Storage
  160. description: The path to store Vaultwarden attachments, icons, etc.
  161. schema:
  162. type: dict
  163. attrs:
  164. - variable: type
  165. label: Type
  166. description: |
  167. ixVolume: Is dataset created automatically by the system.</br>
  168. Host Path: Is a path that already exists on the system.
  169. schema:
  170. type: string
  171. required: true
  172. default: ixVolume
  173. enum:
  174. - value: hostPath
  175. description: Host Path (Path that already exists on the system)
  176. - value: ixVolume
  177. description: ixVolume (Dataset created automatically by the system)
  178. - variable: datasetName
  179. label: Dataset Name
  180. schema:
  181. type: string
  182. show_if: [["type", "=", "ixVolume"]]
  183. required: true
  184. hidden: true
  185. immutable: true
  186. default: data
  187. $ref:
  188. - "normalize/ixVolume"
  189. - variable: hostPath
  190. label: Host Path
  191. schema:
  192. type: hostpath
  193. show_if: [["type", "=", "hostPath"]]
  194. immutable: true
  195. required: true
  196. - variable: pgData
  197. label: Vaultwarden Postgres Data Storage
  198. description: The path to store Vaultwarden Postgres Data.
  199. schema:
  200. type: dict
  201. attrs:
  202. - variable: type
  203. label: Type
  204. description: |
  205. ixVolume: Is dataset created automatically by the system.</br>
  206. Host Path: Is a path that already exists on the system.
  207. schema:
  208. type: string
  209. required: true
  210. default: ixVolume
  211. enum:
  212. - value: hostPath
  213. description: Host Path (Path that already exists on the system)
  214. - value: ixVolume
  215. description: ixVolume (Dataset created automatically by the system)
  216. - variable: datasetName
  217. label: Dataset Name
  218. schema:
  219. type: string
  220. show_if: [["type", "=", "ixVolume"]]
  221. required: true
  222. hidden: true
  223. immutable: true
  224. default: pgData
  225. $ref:
  226. - "normalize/ixVolume"
  227. - variable: hostPath
  228. label: Host Path
  229. schema:
  230. type: hostpath
  231. show_if: [["type", "=", "hostPath"]]
  232. immutable: true
  233. required: true
  234. - variable: pgBackup
  235. label: Vaultwarden Postgres Backup Storage
  236. description: The path to store Vaultwarden Postgres Backup.
  237. schema:
  238. type: dict
  239. attrs:
  240. - variable: type
  241. label: Type
  242. description: |
  243. ixVolume: Is dataset created automatically by the system.</br>
  244. Host Path: Is a path that already exists on the system.
  245. schema:
  246. type: string
  247. required: true
  248. default: ixVolume
  249. enum:
  250. - value: hostPath
  251. description: Host Path (Path that already exists on the system)
  252. - value: ixVolume
  253. description: ixVolume (Dataset created automatically by the system)
  254. - variable: datasetName
  255. label: Dataset Name
  256. schema:
  257. type: string
  258. show_if: [["type", "=", "ixVolume"]]
  259. required: true
  260. hidden: true
  261. immutable: true
  262. default: pgBackup
  263. $ref:
  264. - "normalize/ixVolume"
  265. - variable: hostPath
  266. label: Host Path
  267. schema:
  268. type: hostpath
  269. show_if: [["type", "=", "hostPath"]]
  270. immutable: true
  271. required: true
  272. - variable: resources
  273. label: ""
  274. group: Resources Configuration
  275. schema:
  276. type: dict
  277. attrs:
  278. - variable: limits
  279. label: Limits
  280. schema:
  281. type: dict
  282. attrs:
  283. - variable: cpu
  284. label: CPU
  285. description: CPU limit for Vaultwarden.
  286. schema:
  287. type: string
  288. max_length: 6
  289. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  290. valid_chars_error: |
  291. Valid CPU limit formats are</br>
  292. - Plain Integer - eg. 1</br>
  293. - Float - eg. 0.5</br>
  294. - Milicpu - eg. 500m
  295. default: "4000m"
  296. required: true
  297. - variable: memory
  298. label: Memory
  299. description: Memory limit for Vaultwarden.
  300. schema:
  301. type: string
  302. max_length: 12
  303. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  304. valid_chars_error: |
  305. Valid Memory limit formats are</br>
  306. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  307. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  308. - Plain Integer in bytes - eg. 1024</br>
  309. - Exponent - eg. 134e6
  310. default: "8Gi"
  311. required: true