questions.yaml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. groups:
  2. - name: "Storage"
  3. description: "Configure Storage for Chia"
  4. - name: "Farmr.net Configuration"
  5. description: "Configure farmr.net support"
  6. - name: "Chia Environment Variables"
  7. description: "Set the environment that will be visible to the container"
  8. - name: "Networking"
  9. description: "Configure networking for Chia container"
  10. portals:
  11. web_portal:
  12. protocols:
  13. - "https"
  14. host:
  15. - "www.truepool.io"
  16. ports:
  17. - "443"
  18. path: "/kb/truepool-docker-image/"
  19. questions:
  20. - variable: farmr_env
  21. label: "Enable 'farmr.net' support"
  22. group: "Farmr.net Configuration"
  23. description: "Configure 'farmr.net' support for chia"
  24. schema:
  25. type: string
  26. default: "off"
  27. enum:
  28. - value: "off"
  29. description: "OFF"
  30. - value: "farmer"
  31. description: "FARMER"
  32. - value: "harvester"
  33. description: "HARVESTER"
  34. - variable: appVolumeMounts
  35. label: "Chia Storage"
  36. group: "Storage"
  37. schema:
  38. type: dict
  39. attrs:
  40. - variable: config
  41. label: "Configuration Volume"
  42. schema:
  43. type: dict
  44. attrs:
  45. - variable: datasetName
  46. label: "Configuration Volume Dataset Name"
  47. schema:
  48. type: string
  49. hidden: true
  50. $ref:
  51. - "normalize/ixVolume"
  52. show_if: [["hostPathEnabled", "=", false]]
  53. default: "config"
  54. editable: false
  55. - variable: mountPath
  56. label: "Configuration Mount Path"
  57. description: "Path where the volume will be mounted inside the pod"
  58. schema:
  59. type: path
  60. hidden: true
  61. editable: true
  62. default: "/data"
  63. - variable: hostPathEnabled
  64. label: "Enable Custom Host Path for Chia Configuration Volume"
  65. schema:
  66. type: boolean
  67. default: false
  68. show_subquestions_if: true
  69. subquestions:
  70. - variable: hostPath
  71. label: "Host Path for Chia Configuration Volume"
  72. schema:
  73. type: hostpath
  74. required: true
  75. - variable: plots
  76. label: "Plot Volume"
  77. schema:
  78. type: dict
  79. attrs:
  80. - variable: datasetName
  81. label: "Plots Volume Name"
  82. schema:
  83. type: string
  84. hidden: true
  85. $ref:
  86. - "normalize/ixVolume"
  87. show_if: [["hostPathEnabled", "=", false]]
  88. default: "plots"
  89. editable: false
  90. - variable: mountPath
  91. label: "Plots Mount Path"
  92. description: "Path where the volume will be mounted inside the pod"
  93. schema:
  94. type: path
  95. hidden: true
  96. editable: false
  97. default: "/plots"
  98. - variable: hostPathEnabled
  99. label: "Enable Custom Host Path for Chia Plots Volume"
  100. schema:
  101. type: boolean
  102. default: false
  103. show_subquestions_if: true
  104. subquestions:
  105. - variable: hostPath
  106. label: "Host Path for Chia Plots Volume"
  107. schema:
  108. type: hostpath
  109. required: true
  110. - variable: extraAppVolumeMounts
  111. label: "Chia Extra Host Path Volumes"
  112. group: "Storage"
  113. schema:
  114. type: list
  115. items:
  116. - variable: extraAppVolume
  117. label: "Chia Host Path Volume"
  118. description: "Add an extra host path volume for chia application"
  119. schema:
  120. type: dict
  121. attrs:
  122. - variable: mountPath
  123. label: "Mount Path in Pod"
  124. description: "Path where the volume will be mounted inside the pod"
  125. schema:
  126. type: path
  127. required: true
  128. - variable: hostPath
  129. label: "Host Path"
  130. description: "Host path"
  131. schema:
  132. type: hostpath
  133. required: true
  134. - variable: environmentVariables
  135. label: "Environment Variables for Chia"
  136. group: "Chia Environment Variables"
  137. schema:
  138. type: list
  139. default: []
  140. items:
  141. - variable: environmentVariable
  142. label: "Environment Variable"
  143. schema:
  144. type: dict
  145. attrs:
  146. - variable: name
  147. label: "Name"
  148. schema:
  149. type: string
  150. - variable: value
  151. label: "Value"
  152. schema:
  153. type: string
  154. - variable: service
  155. description: "Networking Configuration"
  156. label: "Networking Configuration"
  157. group: "Networking"
  158. schema:
  159. type: dict
  160. required: true
  161. attrs:
  162. - variable: nodePort
  163. label: "Node Port to use for Chia"
  164. schema:
  165. type: int
  166. min: 8000
  167. max: 65535
  168. default: 8444
  169. required: true
  170. - variable: farmerPort
  171. label: "Farmer Port to use for Chia"
  172. schema:
  173. type: int
  174. min: 8000
  175. max: 65535
  176. default: 8447
  177. required: true