questions.yaml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. groups:
  2. - name: "Container Images"
  3. description: "Image to be used for container"
  4. - name: "Workload Configuration"
  5. description: "Configure Storage for IPFS"
  6. - name: "Storage"
  7. description: "Configure Storage for IPFS"
  8. - name: "IPFS Configuration"
  9. description: "Configure Storage for IPFS"
  10. portals:
  11. web_portal:
  12. protocols:
  13. - "http"
  14. host:
  15. - "$node_ip"
  16. ports:
  17. - "$variable-service.apiPort"
  18. path: "/webui"
  19. questions:
  20. - variable: updateStrategy
  21. label: "IPFS update strategy"
  22. group: "Workload Configuration"
  23. schema:
  24. type: string
  25. default: "Recreate"
  26. enum:
  27. - value: "RollingUpdate"
  28. description: "Create new pods and then kill old ones"
  29. - value: "Recreate"
  30. description: "Kill existing pods before creating new ones"
  31. - variable: environmentVariables
  32. label: "IPFS image environment"
  33. group: "IPFS Configuration"
  34. schema:
  35. type: list
  36. default: []
  37. items:
  38. - variable: environmentVariable
  39. label: "Environment Variable"
  40. schema:
  41. type: dict
  42. attrs:
  43. - variable: name
  44. label: "Name"
  45. schema:
  46. type: string
  47. - variable: value
  48. label: "Value"
  49. schema:
  50. type: string
  51. - variable: service
  52. description: "IPFS Service Configuration"
  53. label: "IPFS Service Configuration"
  54. group: "IPFS Configuration"
  55. schema:
  56. type: dict
  57. required: true
  58. attrs:
  59. - variable: swarmPort
  60. label: "Swarm Port to use for IPFS (Public)"
  61. schema:
  62. type: int
  63. min: 9000
  64. max: 65535
  65. default: 9401
  66. required: true
  67. - variable: apiPort
  68. label: "API Port to use for IPFS (local)"
  69. schema:
  70. type: int
  71. min: 9000
  72. max: 65535
  73. default: 9501
  74. required: true
  75. - variable: gatewayPort
  76. label: "Gateway Port to use for IPFS (local)"
  77. schema:
  78. type: int
  79. min: 9000
  80. max: 65535
  81. default: 9880
  82. required: true
  83. - variable: appVolumeMounts
  84. label: "IPFS Storage"
  85. group: "Storage"
  86. schema:
  87. type: dict
  88. attrs:
  89. - variable: staging
  90. label: "Staging Volume"
  91. schema:
  92. type: dict
  93. attrs:
  94. - variable: datasetName
  95. label: "IPFS Staging Volume Dataset Name"
  96. schema:
  97. type: string
  98. hidden: true
  99. $ref:
  100. - "normalize/ixVolume"
  101. show_if: [["hostPathEnabled", "=", false]]
  102. default: "ix-ipfs-staging"
  103. editable: false
  104. - variable: mountPath
  105. label: "IPFS Staging Mount Path"
  106. description: "Path where the volume will be mounted inside the pod"
  107. schema:
  108. type: path
  109. hidden: true
  110. editable: false
  111. default: "/export"
  112. - variable: hostPathEnabled
  113. label: "Enable Host Path for IPFS Staging Volume"
  114. schema:
  115. type: boolean
  116. default: false
  117. show_subquestions_if: true
  118. subquestions:
  119. - variable: hostPath
  120. label: "Host Path for IPFS Staging Volume"
  121. schema:
  122. type: hostpath
  123. required: true
  124. - variable: data
  125. label: "Data Volume"
  126. schema:
  127. type: dict
  128. attrs:
  129. - variable: datasetName
  130. label: "IPFS Data Volume Name"
  131. schema:
  132. type: string
  133. hidden: true
  134. $ref:
  135. - "normalize/ixVolume"
  136. show_if: [["hostPathEnabled", "=", false]]
  137. default: "ix-ipfs-data"
  138. editable: false
  139. - variable: mountPath
  140. label: "IPFS Data Mount Path"
  141. description: "Path where the volume will be mounted inside the pod"
  142. schema:
  143. type: path
  144. hidden: true
  145. editable: false
  146. default: "/data/ipfs"
  147. - variable: hostPathEnabled
  148. label: "Enable Host Path for IPFS Data Volume"
  149. schema:
  150. type: boolean
  151. default: false
  152. show_subquestions_if: true
  153. subquestions:
  154. - variable: hostPath
  155. label: "Host Path for IPFS Data Volume"
  156. schema:
  157. type: hostpath
  158. required: true