questions.yaml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. groups:
  2. - name: Joplin Configuration
  3. description: Configure Joplin
  4. - name: Network Configuration
  5. description: Configure Network for Joplin
  6. - name: Storage Configuration
  7. description: Configure Storage for Joplin
  8. - name: Resources Configuration
  9. description: Configure Resources for Joplin
  10. portals:
  11. web_portal:
  12. protocols:
  13. - "$kubernetes-resource_configmap_portal_protocol"
  14. host:
  15. - "$kubernetes-resource_configmap_portal_host"
  16. ports:
  17. - "$kubernetes-resource_configmap_portal_port"
  18. path: "$kubernetes-resource_configmap_portal_path"
  19. questions:
  20. - variable: joplinConfig
  21. label: ""
  22. group: Joplin Configuration
  23. schema:
  24. type: dict
  25. attrs:
  26. - variable: baseUrl
  27. label: Base URL
  28. description: |
  29. The base URL for Joplin.</br>
  30. Examples:</br>
  31. https://joplin.example.com
  32. http://192.168.1.100:30062
  33. schema:
  34. type: uri
  35. default: ""
  36. required: true
  37. - variable: additionalEnvs
  38. label: Additional Environment Variables
  39. description: Configure additional environment variables for Joplin.
  40. schema:
  41. type: list
  42. default: []
  43. items:
  44. - variable: env
  45. label: Environment Variable
  46. schema:
  47. type: dict
  48. attrs:
  49. - variable: name
  50. label: Name
  51. schema:
  52. type: string
  53. required: true
  54. - variable: value
  55. label: Value
  56. schema:
  57. type: string
  58. required: true
  59. - variable: joplinNetwork
  60. label: ""
  61. group: Network Configuration
  62. schema:
  63. type: dict
  64. attrs:
  65. - variable: webPort
  66. label: Web Port
  67. description: The port for the Joplin Web UI.
  68. schema:
  69. type: int
  70. default: 30062
  71. min: 9000
  72. max: 65535
  73. required: true
  74. - variable: hostNetwork
  75. label: Host Network
  76. description: |
  77. Bind to the host network. It's recommended to keep this disabled.</br>
  78. schema:
  79. type: boolean
  80. default: false
  81. - variable: joplinStorage
  82. label: ""
  83. group: Storage Configuration
  84. schema:
  85. type: dict
  86. attrs:
  87. - variable: pgData
  88. label: Joplin Postgres Data Storage
  89. description: The path to store Joplin Postgres Data.
  90. schema:
  91. type: dict
  92. attrs:
  93. - variable: type
  94. label: Type
  95. description: |
  96. ixVolume: Is dataset created automatically by the system.</br>
  97. Host Path: Is a path that already exists on the system.
  98. schema:
  99. type: string
  100. required: true
  101. immutable: true
  102. default: ixVolume
  103. enum:
  104. - value: hostPath
  105. description: Host Path (Path that already exists on the system)
  106. - value: ixVolume
  107. description: ixVolume (Dataset created automatically by the system)
  108. - variable: datasetName
  109. label: Dataset Name
  110. schema:
  111. type: string
  112. show_if: [["type", "=", "ixVolume"]]
  113. required: true
  114. hidden: true
  115. immutable: true
  116. default: pgData
  117. $ref:
  118. - "normalize/ixVolume"
  119. - variable: hostPath
  120. label: Host Path
  121. schema:
  122. type: hostpath
  123. show_if: [["type", "=", "hostPath"]]
  124. immutable: true
  125. required: true
  126. - variable: pgBackup
  127. label: Joplin Postgres Backup Storage
  128. description: The path to store Joplin Postgres Backup.
  129. schema:
  130. type: dict
  131. attrs:
  132. - variable: type
  133. label: Type
  134. description: |
  135. ixVolume: Is dataset created automatically by the system.</br>
  136. Host Path: Is a path that already exists on the system.
  137. schema:
  138. type: string
  139. required: true
  140. immutable: true
  141. default: ixVolume
  142. enum:
  143. - value: hostPath
  144. description: Host Path (Path that already exists on the system)
  145. - value: ixVolume
  146. description: ixVolume (Dataset created automatically by the system)
  147. - variable: datasetName
  148. label: Dataset Name
  149. schema:
  150. type: string
  151. show_if: [["type", "=", "ixVolume"]]
  152. required: true
  153. hidden: true
  154. immutable: true
  155. default: pgBackup
  156. $ref:
  157. - "normalize/ixVolume"
  158. - variable: hostPath
  159. label: Host Path
  160. schema:
  161. type: hostpath
  162. show_if: [["type", "=", "hostPath"]]
  163. immutable: true
  164. required: true
  165. - variable: resources
  166. group: Resources Configuration
  167. label: ""
  168. schema:
  169. type: dict
  170. attrs:
  171. - variable: limits
  172. label: Limits
  173. schema:
  174. type: dict
  175. attrs:
  176. - variable: cpu
  177. label: CPU
  178. description: CPU limit for Joplin.
  179. schema:
  180. type: string
  181. max_length: 6
  182. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  183. valid_chars_error: |
  184. Valid CPU limit formats are</br>
  185. - Plain Integer - eg. 1</br>
  186. - Float - eg. 0.5</br>
  187. - Milicpu - eg. 500m
  188. default: "4000m"
  189. required: true
  190. - variable: memory
  191. label: Memory
  192. description: Memory limit for Joplin.
  193. schema:
  194. type: string
  195. max_length: 12
  196. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  197. valid_chars_error: |
  198. Valid Memory limit formats are</br>
  199. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  200. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  201. - Plain Integer in bytes - eg. 1024</br>
  202. - Exponent - eg. 134e6
  203. default: "8Gi"
  204. required: true