questions.yaml 6.6 KB

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