questions.yaml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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: mountPath
  138. label: Mount Path
  139. description: The path inside the container to mount the storage.
  140. schema:
  141. type: path
  142. required: true
  143. - variable: hostPath
  144. label: Host Path
  145. description: The host path to use for storage.
  146. schema:
  147. type: hostpath
  148. show_if: [["type", "=", "hostPath"]]
  149. required: true
  150. - variable: datasetName
  151. label: Dataset Name
  152. description: The name of the dataset to use for storage.
  153. schema:
  154. type: string
  155. show_if: [["type", "=", "ixVolume"]]
  156. required: true
  157. immutable: true
  158. default: "storage_entry"
  159. $ref:
  160. - "normalize/ixVolume"
  161. - variable: server
  162. label: Server
  163. description: The server for the SMB share.
  164. schema:
  165. type: string
  166. show_if: [["type", "=", "smb-pv-pvc"]]
  167. required: true
  168. - variable: share
  169. label: Share
  170. description: The share name for the SMB share.
  171. schema:
  172. type: string
  173. show_if: [["type", "=", "smb-pv-pvc"]]
  174. required: true
  175. - variable: domain
  176. label: Domain (Optional)
  177. description: The domain for the SMB share.
  178. schema:
  179. type: string
  180. show_if: [["type", "=", "smb-pv-pvc"]]
  181. - variable: username
  182. label: Username
  183. description: The username for the SMB share.
  184. schema:
  185. type: string
  186. show_if: [["type", "=", "smb-pv-pvc"]]
  187. required: true
  188. - variable: password
  189. label: Password
  190. description: The password for the SMB share.
  191. schema:
  192. type: string
  193. show_if: [["type", "=", "smb-pv-pvc"]]
  194. required: true
  195. private: true
  196. - variable: size
  197. label: Size (in Gi)
  198. description: The size of the volume quota.
  199. schema:
  200. type: int
  201. show_if: [["type", "=", "smb-pv-pvc"]]
  202. required: true
  203. min: 1
  204. default: 1
  205. - variable: resources
  206. group: Resources Configuration
  207. label: ""
  208. schema:
  209. type: dict
  210. attrs:
  211. - variable: limits
  212. label: Limits
  213. schema:
  214. type: dict
  215. attrs:
  216. - variable: cpu
  217. label: CPU
  218. description: CPU limit for Cloudflared.
  219. schema:
  220. type: string
  221. max_length: 6
  222. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  223. valid_chars_error: |
  224. Valid CPU limit formats are</br>
  225. - Plain Integer - eg. 1</br>
  226. - Float - eg. 0.5</br>
  227. - Milicpu - eg. 500m
  228. default: "4000m"
  229. required: true
  230. - variable: memory
  231. label: Memory
  232. description: Memory limit for Cloudflared.
  233. schema:
  234. type: string
  235. max_length: 12
  236. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  237. valid_chars_error: |
  238. Valid Memory limit formats are</br>
  239. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  240. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  241. - Plain Integer in bytes - eg. 1024</br>
  242. - Exponent - eg. 134e6
  243. default: "8Gi"
  244. required: true