questions.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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. 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: "home"
  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: additionalStorages
  155. label: Additional Storage
  156. description: Additional storage for Syncthing.
  157. schema:
  158. type: list
  159. required: true
  160. empty: false
  161. default:
  162. - type: "hostPath"
  163. mountPath: "/data1"
  164. hostPath": ""
  165. items:
  166. - variable: storageEntry
  167. label: Storage Entry
  168. schema:
  169. type: dict
  170. attrs:
  171. - variable: type
  172. label: Type
  173. description: |
  174. Host Path: Is a path that already exists on the system.</br>
  175. SMB Share: Mounts a persistent volume claim to a SMB share.
  176. schema:
  177. type: string
  178. required: true
  179. default: "hostPath"
  180. immutable: true
  181. enum:
  182. - value: "hostPath"
  183. description: Host Path (Path that already exists on the system)
  184. - value: "smb-pv-pvc"
  185. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  186. - variable: mountPath
  187. label: Mount Path
  188. description: The path inside the container to mount the storage.
  189. schema:
  190. type: path
  191. required: true
  192. - variable: hostPath
  193. label: Host Path
  194. description: The host path to use for storage.
  195. schema:
  196. type: hostpath
  197. show_if: [["type", "=", "hostPath"]]
  198. required: true
  199. - variable: server
  200. label: Server
  201. description: The server for the SMB share.
  202. schema:
  203. type: string
  204. show_if: [["type", "=", "smb-pv-pvc"]]
  205. required: true
  206. - variable: share
  207. label: Share
  208. description: The share name for the SMB share.
  209. schema:
  210. type: string
  211. show_if: [["type", "=", "smb-pv-pvc"]]
  212. required: true
  213. - variable: domain
  214. label: Domain (Optional)
  215. description: The domain for the SMB share.
  216. schema:
  217. type: string
  218. show_if: [["type", "=", "smb-pv-pvc"]]
  219. - variable: username
  220. label: Username
  221. description: The username for the SMB share.
  222. schema:
  223. type: string
  224. show_if: [["type", "=", "smb-pv-pvc"]]
  225. required: true
  226. - variable: password
  227. label: Password
  228. description: The password for the SMB share.
  229. schema:
  230. type: string
  231. show_if: [["type", "=", "smb-pv-pvc"]]
  232. required: true
  233. private: true
  234. - variable: size
  235. label: Size (in Gi)
  236. description: The size of the volume quota.
  237. schema:
  238. type: int
  239. show_if: [["type", "=", "smb-pv-pvc"]]
  240. required: true
  241. min: 1
  242. default: 1
  243. - variable: resources
  244. group: Resources Configuration
  245. label: ""
  246. schema:
  247. type: dict
  248. attrs:
  249. - variable: limits
  250. label: Limits
  251. schema:
  252. type: dict
  253. attrs:
  254. - variable: cpu
  255. label: CPU
  256. description: CPU limit for Syncthing.
  257. schema:
  258. type: string
  259. max_length: 6
  260. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  261. valid_chars_error: |
  262. Valid CPU limit formats are</br>
  263. - Plain Integer - eg. 1</br>
  264. - Float - eg. 0.5</br>
  265. - Milicpu - eg. 500m
  266. default: "4000m"
  267. required: true
  268. - variable: memory
  269. label: Memory
  270. description: Memory limit for Syncthing.
  271. schema:
  272. type: string
  273. max_length: 12
  274. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  275. valid_chars_error: |
  276. Valid Memory limit formats are</br>
  277. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  278. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  279. - Plain Integer in bytes - eg. 1024</br>
  280. - Exponent - eg. 134e6
  281. default: "8Gi"
  282. required: true