questions.yaml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. groups:
  2. - name: "Container Images"
  3. description: "Image to be used for container"
  4. - name: "Workload Configuration"
  5. description: "Configure workload deployment"
  6. - name: "Storage"
  7. description: "Configure Storage for Nextcloud"
  8. - name: "Minio Configuration"
  9. description: "Configure Minio credentials"
  10. portals:
  11. web_portal:
  12. protocols:
  13. - "http"
  14. host:
  15. - "$node_ip"
  16. ports:
  17. - "$variable-service.nodePort"
  18. questions:
  19. # Image related
  20. - variable: image
  21. description: "Docker Image Details"
  22. label: "Docker Image"
  23. group: "Container Images"
  24. schema:
  25. type: dict
  26. required: true
  27. attrs:
  28. - variable: repository
  29. description: "Docker image repository"
  30. label: "Image repository"
  31. schema:
  32. type: string
  33. default: "minio/minio"
  34. required: true
  35. - variable: tag
  36. description: "Tag to use for specified image"
  37. label: "Image Tag"
  38. schema:
  39. type: string
  40. default: "RELEASE.2020-11-19T23-48-16Z"
  41. - variable: pullPolicy
  42. description: "Docker Image Pull Policy"
  43. label: "Image Pull Policy"
  44. schema:
  45. type: string
  46. default: "IfNotPresent"
  47. enum:
  48. - value: "IfNotPresent"
  49. description: "Only pull image if not present on host"
  50. - value: "Always"
  51. description: "Always pull image even if present on host"
  52. - value: "Never"
  53. description: "Never pull image even if it's not present on host"
  54. - variable: updateStrategy
  55. label: "Minio update strategy"
  56. group: "Workload Configuration"
  57. schema:
  58. type: string
  59. default: "RollingUpdate"
  60. enum:
  61. - value: "RollingUpdate"
  62. description: "Create new pods and then kill old ones"
  63. - value: "Recreate"
  64. description: "Kill existing pods before creating new ones"
  65. - variable: extraArgs
  66. label: "Minio Extra Arguments"
  67. group: "Minio Configuration"
  68. schema:
  69. type: list
  70. default: []
  71. items:
  72. - variable: arg
  73. label: "Argument"
  74. schema:
  75. type: string
  76. - variable: accessKey
  77. label: "Access Key"
  78. group: "Minio Configuration"
  79. description: "Enter the S3 access ID"
  80. schema:
  81. type: string
  82. private: true
  83. required: true
  84. min_length: 5
  85. max_length: 20
  86. - variable: secretKey
  87. label: "Secret Key"
  88. group: "Minio Configuration"
  89. description: "Enter the S3 secret access key"
  90. schema:
  91. type: string
  92. private: true
  93. required: true
  94. min_length: 8
  95. max_length: 40
  96. - variable: environmentVariables
  97. label: "Minio image environment"
  98. group: "Minio Configuration"
  99. schema:
  100. type: list
  101. default: []
  102. items:
  103. - variable: environmentVariable
  104. label: "Environment Variable"
  105. schema:
  106. type: dict
  107. attrs:
  108. - variable: name
  109. label: "Name"
  110. schema:
  111. type: string
  112. - variable: value
  113. label: "Value"
  114. schema:
  115. type: string
  116. - variable: service
  117. description: "Minio Service Configuration"
  118. label: "Minio Service Configuration"
  119. group: "Minio Configuration"
  120. schema:
  121. type: dict
  122. required: true
  123. attrs:
  124. - variable: nodePort
  125. label: "Node Port to use for Minio"
  126. schema:
  127. type: int
  128. min: 9000
  129. max: 65535
  130. default: 9000
  131. required: true
  132. - variable: minioHostPathEnabled
  133. label: "Configure Host Path for Minio data"
  134. group: "Storage"
  135. schema:
  136. type: boolean
  137. default: false
  138. show_subquestions_if: true
  139. subquestions:
  140. - variable: minioHostPath
  141. label: "Specify HostPath for Minio data"
  142. schema:
  143. type: hostpath
  144. - variable: minioDataVolume
  145. label: "Minio Data Volume Defaults"
  146. group: "Storage"
  147. schema:
  148. type: dict
  149. $ref:
  150. - "normalize/ixVolume"
  151. show_if: [["minioHostPathEnabled", "=", false]]
  152. attrs:
  153. - variable: mountPath
  154. label: "Minio Data Mount Path"
  155. description: "Path where the volume will be mounted inside the pod"
  156. schema:
  157. type: path
  158. editable: false
  159. default: "/export"
  160. - variable: datasetName
  161. label: "Minio Dataset Name"
  162. schema:
  163. type: string
  164. default: "ix-minio"
  165. editable: false