questions.yaml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. groups:
  2. - name: Syncthing Configuration
  3. description: Configure Syncthing
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Syncthing
  6. - name: Network Configuration
  7. description: Configure Network for Syncthing
  8. - name: Storage Configuration
  9. description: Configure Storage for Syncthing
  10. - name: Resources Configuration
  11. description: Configure Resources for Syncthing
  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: Syncthing Configuration
  24. label: Timezone
  25. schema:
  26. type: string
  27. default: Etc/UTC
  28. required: true
  29. $ref:
  30. - definitions/timezone
  31. - variable: syncthingID
  32. label: ""
  33. group: User and Group Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. - variable: user
  38. label: User ID
  39. description: The user id that Syncthing files will be owned by.
  40. schema:
  41. type: int
  42. min: 568
  43. default: 568
  44. immutable: true
  45. required: true
  46. - variable: group
  47. label: Group ID
  48. description: The group id that Syncthing files will be owned by.
  49. schema:
  50. type: int
  51. min: 568
  52. default: 568
  53. immutable: true
  54. required: true
  55. - variable: syncthingNetwork
  56. label: ""
  57. group: Network Configuration
  58. schema:
  59. type: dict
  60. attrs:
  61. - variable: hostNetwork
  62. label: Host Network
  63. description: |
  64. Bind to the host network.</br></br>
  65. If this is disabled, you will need to add your local networks in CIDR format to the Syncthing WebUI.</br>
  66. In the Syncthing WebUI, go to Advanced Settings > Options > Always Local Nets</br>
  67. Separate each CIDR network with a comma.</br>
  68. Example: 192.168.0.0/24,192.168.1.0/24
  69. schema:
  70. type: boolean
  71. default: true
  72. - variable: webPort
  73. label: Web Port
  74. description: The port for the Syncthing WebUI.
  75. schema:
  76. type: int
  77. default: 31000
  78. min: 9000
  79. max: 65535
  80. required: true
  81. - variable: tcpPort
  82. label: TCP Port (File Transfers)
  83. description: The TCP port for Syncthing transfers.
  84. schema:
  85. type: int
  86. show_if: [["hostNetwork", "=", false]]
  87. default: 22000
  88. min: 9000
  89. max: 65535
  90. required: true
  91. - variable: quicPort
  92. label: QUIC (UDP) Port (File Transfers)
  93. description: The QUIC (UDP) port for Syncthing transfers.
  94. schema:
  95. type: int
  96. show_if: [["hostNetwork", "=", false]]
  97. default: 22000
  98. min: 9000
  99. max: 65535
  100. required: true
  101. - variable: certificateID
  102. label: Certificate
  103. description: The certificate to use for Syncthing GUI.
  104. schema:
  105. type: int
  106. "null": true
  107. $ref:
  108. - "definitions/certificate"
  109. - variable: syncthingStorage
  110. label: ""
  111. group: Storage Configuration
  112. schema:
  113. type: dict
  114. attrs:
  115. - variable: home
  116. label: Syncthing Home Storage
  117. description: The path to store Syncthing Home Directory.
  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. default: "ixVolume"
  130. enum:
  131. - value: "hostPath"
  132. description: Host Path (Path that already exists on the system)
  133. - value: "ixVolume"
  134. description: ixVolume (Dataset created automatically by the system)
  135. - variable: datasetName
  136. label: Dataset Name
  137. schema:
  138. type: string
  139. show_if: [["type", "=", "ixVolume"]]
  140. required: true
  141. hidden: true
  142. immutable: true
  143. default: "home"
  144. $ref:
  145. - "normalize/ixVolume"
  146. - variable: hostPath
  147. label: Host Path
  148. schema:
  149. type: hostpath
  150. show_if: [["type", "=", "hostPath"]]
  151. immutable: true
  152. required: true
  153. - variable: additionalStorages
  154. label: Additional Storage
  155. description: Additional storage for Syncthing.
  156. schema:
  157. type: list
  158. required: true
  159. empty: false
  160. default:
  161. - type: "hostPath"
  162. mountPath: "/data1"
  163. hostPath": ""
  164. items:
  165. - variable: storageEntry
  166. label: Storage Entry
  167. schema:
  168. type: dict
  169. attrs:
  170. - variable: type
  171. label: Type
  172. description: |
  173. Host Path: Is a path that already exists on the system.
  174. schema:
  175. type: string
  176. required: true
  177. default: "hostPath"
  178. hidden: true
  179. enum:
  180. - value: "hostPath"
  181. description: Host Path (Path that already exists on the system)
  182. - variable: mountPath
  183. label: Mount Path
  184. description: The path inside the container to mount the storage.
  185. schema:
  186. type: path
  187. required: true
  188. - variable: hostPath
  189. label: Host Path
  190. description: The host path to use for storage.
  191. schema:
  192. type: hostpath
  193. show_if: [["type", "=", "hostPath"]]
  194. required: true
  195. - variable: resources
  196. group: Resources Configuration
  197. label: ""
  198. schema:
  199. type: dict
  200. attrs:
  201. - variable: limits
  202. label: Limits
  203. schema:
  204. type: dict
  205. attrs:
  206. - variable: cpu
  207. label: CPU
  208. description: CPU limit for Syncthing.
  209. schema:
  210. type: string
  211. max_length: 6
  212. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  213. valid_chars_error: |
  214. Valid CPU limit formats are</br>
  215. - Plain Integer - eg. 1</br>
  216. - Float - eg. 0.5</br>
  217. - Milicpu - eg. 500m
  218. default: "4000m"
  219. required: true
  220. - variable: memory
  221. label: Memory
  222. description: Memory limit for Syncthing.
  223. schema:
  224. type: string
  225. max_length: 12
  226. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  227. valid_chars_error: |
  228. Valid Memory limit formats are</br>
  229. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  230. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  231. - Plain Integer in bytes - eg. 1024</br>
  232. - Exponent - eg. 134e6
  233. default: "8Gi"
  234. required: true