questions.yaml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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.
  124. schema:
  125. type: string
  126. required: true
  127. default: "ixVolume"
  128. enum:
  129. - value: "hostPath"
  130. description: Host Path (Path that already exists on the system)
  131. - value: "ixVolume"
  132. description: ixVolume (Dataset created automatically by the system)
  133. - variable: mountPath
  134. label: Mount Path
  135. description: The path inside the container to mount the storage.
  136. schema:
  137. type: path
  138. required: true
  139. - variable: hostPath
  140. label: Host Path
  141. description: The host path to use for storage.
  142. schema:
  143. type: hostpath
  144. show_if: [["type", "=", "hostPath"]]
  145. required: true
  146. - variable: datasetName
  147. label: Dataset Name
  148. description: The name of the dataset to use for storage.
  149. schema:
  150. type: string
  151. show_if: [["type", "=", "ixVolume"]]
  152. required: true
  153. immutable: true
  154. default: "storage_entry"
  155. $ref:
  156. - "normalize/ixVolume"
  157. - variable: resources
  158. group: Resources Configuration
  159. label: ""
  160. schema:
  161. type: dict
  162. attrs:
  163. - variable: limits
  164. label: Limits
  165. schema:
  166. type: dict
  167. attrs:
  168. - variable: cpu
  169. label: CPU
  170. description: CPU limit for Cloudflared.
  171. schema:
  172. type: string
  173. max_length: 6
  174. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  175. valid_chars_error: |
  176. Valid CPU limit formats are</br>
  177. - Plain Integer - eg. 1</br>
  178. - Float - eg. 0.5</br>
  179. - Milicpu - eg. 500m
  180. default: "4000m"
  181. required: true
  182. - variable: memory
  183. label: Memory
  184. description: Memory limit for Cloudflared.
  185. schema:
  186. type: string
  187. max_length: 12
  188. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  189. valid_chars_error: |
  190. Valid Memory limit formats are</br>
  191. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  192. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  193. - Plain Integer in bytes - eg. 1024</br>
  194. - Exponent - eg. 134e6
  195. default: "8Gi"
  196. required: true