questions.yaml 11 KB

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