questions.yaml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. groups:
  2. - name: "Configuration"
  3. description: "Syncthing application configuration"
  4. - name: "Storage"
  5. description: "Configure storage for syncthing"
  6. - name: "Networking"
  7. description: "Networking Configuration for syncthing"
  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 syncthing"
  24. group: Networking
  25. schema:
  26. type: int
  27. min: 8000
  28. max: 65535
  29. default: 20910
  30. required: true
  31. - variable: tcp_port
  32. label: "TCP Port for syncthing"
  33. group: Networking
  34. schema:
  35. type: int
  36. min: 8000
  37. max: 65535
  38. default: 20978
  39. required: true
  40. - variable: udp_port
  41. label: "UDP Port for syncthing"
  42. group: Networking
  43. schema:
  44. type: int
  45. min: 8000
  46. max: 65535
  47. default: 20979
  48. required: true
  49. - variable: hostNetwork
  50. label: "Host Network"
  51. group: Networking
  52. schema:
  53. type: boolean
  54. default: false
  55. - variable: dnsConfig
  56. label: "DNS Configuration"
  57. group: "Advanced DNS Settings"
  58. schema:
  59. type: dict
  60. attrs:
  61. - variable: options
  62. label: "DNS Options"
  63. schema:
  64. type: list
  65. items:
  66. - variable: optionsEntry
  67. label: "Option Entry Configuration"
  68. schema:
  69. type: dict
  70. attrs:
  71. - variable: name
  72. label: "Option Name"
  73. schema:
  74. type: string
  75. required: true
  76. - variable: value
  77. label: "Option Value"
  78. schema:
  79. type: string
  80. required: true
  81. - variable: ownerUID
  82. label: "Owner User ID"
  83. group: Configuration
  84. schema:
  85. type: int
  86. default: 568
  87. min: 1
  88. max: 65535
  89. - variable: ownerGID
  90. label: "Owner Group ID"
  91. group: Configuration
  92. schema:
  93. type: int
  94. default: 568
  95. min: 1
  96. max: 65535
  97. - variable: environmentVariables
  98. label: "Syncthing environment"
  99. group: "Configuration"
  100. schema:
  101. type: list
  102. default: [ ]
  103. items:
  104. - variable: environmentVariable
  105. label: "Environment Variable"
  106. schema:
  107. type: dict
  108. attrs:
  109. - variable: name
  110. label: "Name"
  111. schema:
  112. type: string
  113. - variable: value
  114. label: "Value"
  115. schema:
  116. type: string
  117. - variable: appVolumeMounts
  118. label: "Syncthing Storage"
  119. group: "Storage"
  120. schema:
  121. type: dict
  122. attrs:
  123. - variable: config
  124. label: "Configuration Volume"
  125. schema:
  126. type: dict
  127. attrs:
  128. - variable: datasetName
  129. label: "Configuration Volume Dataset Name"
  130. schema:
  131. type: string
  132. hidden: true
  133. $ref:
  134. - "normalize/ixVolume"
  135. show_if: [["hostPathEnabled", "=", false]]
  136. default: "ix-syncthing_config"
  137. editable: false
  138. - variable: mountPath
  139. label: "Configuration Mount Path"
  140. description: "Path where the volume will be mounted inside the pod"
  141. schema:
  142. type: path
  143. hidden: true
  144. editable: true
  145. default: "/var/syncthing"
  146. - variable: hostPathEnabled
  147. label: "Enable Custom Host Path for Syncthing Configuration Volume"
  148. schema:
  149. type: boolean
  150. default: false
  151. show_subquestions_if: true
  152. subquestions:
  153. - variable: hostPath
  154. label: "Host Path for Syncthing Configuration Volume"
  155. schema:
  156. type: hostpath
  157. required: true
  158. $ref:
  159. - "validations/lockedHostPath"
  160. - variable: extraAppVolumeMounts
  161. label: "Extra Host Path Volumes"
  162. group: "Storage"
  163. schema:
  164. type: list
  165. items:
  166. - variable: extraAppVolume
  167. label: "Host Path Volume"
  168. description: "Add an extra host path volume for Syncthing application"
  169. schema:
  170. type: dict
  171. attrs:
  172. - variable: mountPath
  173. label: "Mount Path in Pod"
  174. description: "Path where the volume will be mounted inside the pod"
  175. schema:
  176. type: path
  177. required: true
  178. - variable: hostPath
  179. label: "Host Path"
  180. description: "Host path"
  181. schema:
  182. type: hostpath
  183. required: true
  184. $ref:
  185. - "validations/lockedHostPath"
  186. - variable: enableResourceLimits
  187. label: "Enable Pod resource limits"
  188. group: "Resource Limits"
  189. schema:
  190. type: boolean
  191. default: false
  192. - variable: cpuLimit
  193. label: "CPU Limit"
  194. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  195. group: "Resource Limits"
  196. schema:
  197. type: string
  198. show_if: [["enableResourceLimits", "=", true]]
  199. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  200. default: "4000m"
  201. - variable: memLimit
  202. label: "Memory Limit"
  203. group: "Resource Limits"
  204. 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"
  205. schema:
  206. type: string
  207. show_if: [["enableResourceLimits", "=", true]]
  208. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  209. default: "8Gi"