questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. groups:
  2. - name: Zerotier Configuration
  3. description: Configure Zerotier
  4. - name: Network Configuration
  5. description: Configure Network for Zerotier
  6. - name: Storage Configuration
  7. description: Configure Storage for Zerotier
  8. - name: Resources Configuration
  9. description: Configure Resources for Zerotier
  10. questions:
  11. - variable: zerotierConfig
  12. label: ""
  13. group: Zerotier Configuration
  14. schema:
  15. type: dict
  16. attrs:
  17. - variable: networks
  18. label: Networks
  19. description: The network(s) to join
  20. schema:
  21. type: list
  22. required: true
  23. min: 1
  24. default: []
  25. items:
  26. - variable: networkEntry
  27. label: Network
  28. schema:
  29. type: string
  30. required: true
  31. - variable: authToken
  32. label: Auth Token (API Key)
  33. description: |
  34. (Optional) The auth token for Zerotier.</br>
  35. Same as authtoken.secret.
  36. schema:
  37. type: string
  38. default: ""
  39. private: true
  40. - variable: identitySecret
  41. label: Identity Secret
  42. description: |
  43. (Optional) The identity secret for Zerotier.</br>
  44. Same as identity.secret.
  45. schema:
  46. type: string
  47. default: ""
  48. private: true
  49. - variable: identityPublic
  50. label: Identity Public
  51. description: |
  52. (Optional) The identity public for Zerotier.</br>
  53. Same as identity.public.
  54. schema:
  55. type: string
  56. default: ""
  57. private: true
  58. - variable: additionalEnvs
  59. label: Additional Environment Variables
  60. description: Configure additional environment variables for Zerotier.
  61. schema:
  62. type: list
  63. default: []
  64. items:
  65. - variable: env
  66. label: Environment Variable
  67. schema:
  68. type: dict
  69. attrs:
  70. - variable: name
  71. label: Name
  72. schema:
  73. type: string
  74. required: true
  75. - variable: value
  76. label: Value
  77. schema:
  78. type: string
  79. required: true
  80. - variable: zerotierNetwork
  81. label: ""
  82. group: Network Configuration
  83. schema:
  84. type: dict
  85. attrs:
  86. - variable: hostNetwork
  87. label: Host Network
  88. description: |
  89. Bind to the host network. It's recommended to keep this disabled.</br>
  90. schema:
  91. type: boolean
  92. default: false
  93. - variable: zerotierStorage
  94. label: ""
  95. group: Storage Configuration
  96. schema:
  97. type: dict
  98. attrs:
  99. - variable: additionalStorages
  100. label: Additional Storage
  101. description: Additional storage for Zerotier.
  102. schema:
  103. type: list
  104. default: []
  105. items:
  106. - variable: storageEntry
  107. label: Storage Entry
  108. schema:
  109. type: dict
  110. attrs:
  111. - variable: type
  112. label: Type
  113. description: |
  114. ixVolume: Is dataset created automatically by the system.</br>
  115. Host Path: Is a path that already exists on the system.</br>
  116. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  117. schema:
  118. type: string
  119. required: true
  120. default: "ixVolume"
  121. immutable: true
  122. enum:
  123. - value: "hostPath"
  124. description: Host Path (Path that already exists on the system)
  125. - value: "ixVolume"
  126. description: ixVolume (Dataset created automatically by the system)
  127. - value: "smb-pv-pvc"
  128. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  129. - variable: readOnly
  130. label: Read Only
  131. description: Mount the volume as read only.
  132. schema:
  133. type: boolean
  134. default: false
  135. - variable: mountPath
  136. label: Mount Path
  137. description: The path inside the container to mount the storage.
  138. schema:
  139. type: path
  140. required: true
  141. - variable: hostPathConfig
  142. label: Host Path Configuration
  143. schema:
  144. type: dict
  145. show_if: [["type", "=", "hostPath"]]
  146. attrs:
  147. - variable: aclEnable
  148. label: Enable ACL
  149. description: Enable ACL for the dataset.
  150. schema:
  151. type: boolean
  152. default: false
  153. - variable: acl
  154. label: ACL Configuration
  155. schema:
  156. type: dict
  157. show_if: [["aclEnable", "=", true]]
  158. attrs: []
  159. $ref:
  160. - "normalize/acl"
  161. - variable: hostPath
  162. label: Host Path
  163. description: The host path to use for storage.
  164. schema:
  165. type: hostpath
  166. show_if: [["aclEnable", "=", false]]
  167. required: true
  168. - variable: ixVolumeConfig
  169. label: ixVolume Configuration
  170. description: The configuration for the ixVolume dataset.
  171. schema:
  172. type: dict
  173. show_if: [["type", "=", "ixVolume"]]
  174. $ref:
  175. - "normalize/ixVolume"
  176. attrs:
  177. - variable: aclEnable
  178. label: Enable ACL
  179. description: Enable ACL for the dataset.
  180. schema:
  181. type: boolean
  182. default: false
  183. - variable: datasetName
  184. label: Dataset Name
  185. description: The name of the dataset to use for storage.
  186. schema:
  187. type: string
  188. required: true
  189. immutable: true
  190. default: "storage_entry"
  191. - variable: aclEntries
  192. label: ACL Configuration
  193. schema:
  194. type: dict
  195. show_if: [["aclEnable", "=", true]]
  196. attrs: []
  197. - variable: smbConfig
  198. label: SMB Share Configuration
  199. description: The configuration for the SMB Share.
  200. schema:
  201. type: dict
  202. show_if: [["type", "=", "smb-pv-pvc"]]
  203. attrs:
  204. - variable: server
  205. label: Server
  206. description: The server for the SMB share.
  207. schema:
  208. type: string
  209. required: true
  210. - variable: share
  211. label: Share
  212. description: The share name for the SMB share.
  213. schema:
  214. type: string
  215. required: true
  216. - variable: domain
  217. label: Domain (Optional)
  218. description: The domain for the SMB share.
  219. schema:
  220. type: string
  221. - variable: username
  222. label: Username
  223. description: The username for the SMB share.
  224. schema:
  225. type: string
  226. required: true
  227. - variable: password
  228. label: Password
  229. description: The password for the SMB share.
  230. schema:
  231. type: string
  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. required: true
  240. min: 1
  241. default: 1
  242. - variable: resources
  243. group: Resources Configuration
  244. label: ""
  245. schema:
  246. type: dict
  247. attrs:
  248. - variable: limits
  249. label: Limits
  250. schema:
  251. type: dict
  252. attrs:
  253. - variable: cpu
  254. label: CPU
  255. description: CPU limit for Zerotier.
  256. schema:
  257. type: string
  258. max_length: 6
  259. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  260. valid_chars_error: |
  261. Valid CPU limit formats are</br>
  262. - Plain Integer - eg. 1</br>
  263. - Float - eg. 0.5</br>
  264. - Milicpu - eg. 500m
  265. default: "4000m"
  266. required: true
  267. - variable: memory
  268. label: Memory
  269. description: Memory limit for Zerotier.
  270. schema:
  271. type: string
  272. max_length: 12
  273. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  274. valid_chars_error: |
  275. Valid Memory limit formats are</br>
  276. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  277. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  278. - Plain Integer in bytes - eg. 1024</br>
  279. - Exponent - eg. 134e6
  280. default: "8Gi"
  281. required: true