questions.yaml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. groups:
  2. - name: "Container Images"
  3. description: "Image to be used for container"
  4. - name: "Container Entrypoint"
  5. description: "Configuration of the executable that will be run when the container is started"
  6. - name: "Container Environment Variables"
  7. description: "Set the environment that will be visible to the container"
  8. - name: "Networking"
  9. description: "Configure networking for container"
  10. - name: "Storage"
  11. description: "Persist and share data that is separate from the lifecycle of the container"
  12. - name: "Plex Configuration"
  13. description: "Configure plex deployment"
  14. - name: "Workload Details"
  15. description: "Configure how workload should be deployed"
  16. - name: "Scaling/Upgrade Policy"
  17. description: "Configure how pods are replaced when configuration is upgraded"
  18. - name: "Restart Policy"
  19. description: "Configure when pod should be restarted in case of failure"
  20. - name: "Resource Reservation"
  21. description: "Specify resources to be allocated to workload"
  22. portals:
  23. web_portal:
  24. protocols:
  25. - "http"
  26. host:
  27. - "$node_ip"
  28. ports:
  29. - "$variable-plexServiceTCP.port"
  30. path: "/web"
  31. questions:
  32. # Image related
  33. - variable: image
  34. description: "Docker Image Details"
  35. label: "Docker Image"
  36. group: "Container Images"
  37. schema:
  38. type: dict
  39. required: true
  40. attrs:
  41. - variable: repository
  42. description: "Docker image repository"
  43. label: "Image repository"
  44. schema:
  45. type: string
  46. required: true
  47. default: "plexinc/pms-docker"
  48. - variable: tag
  49. description: "Tag to use for specified image"
  50. label: "Image Tag"
  51. schema:
  52. type: string
  53. default: "1.20.2.3402-0fec14d92"
  54. - variable: pullPolicy
  55. description: "Docker Image Pull Policy"
  56. label: "Image Pull Policy"
  57. schema:
  58. type: string
  59. default: "IfNotPresent"
  60. enum:
  61. - value: "IfNotPresent"
  62. description: "Only pull image if not present on host"
  63. - value: "Always"
  64. description: "Always pull image even if present on host"
  65. - value: "Never"
  66. description: "Never pull image even if it's not present on host"
  67. - variable: claimToken
  68. label: "Plex Claim Token"
  69. group: "Plex Configuration"
  70. description: "The claim token for the server to obtain a real server token. If not provided, server is will not be automatically logged in. If server is already logged in, this parameter is ignored. You can obtain a claim token to login your server to your plex account by visiting https://www.plex.tv/claim."
  71. schema:
  72. type: string
  73. default: ""
  74. - variable: hostNetwork
  75. label: "Configure Host Network"
  76. group: "Networking"
  77. schema:
  78. type: boolean
  79. default: false
  80. - variable: environmentVariables
  81. label: "Environment Variables for Plex"
  82. group: "Plex Configuration"
  83. schema:
  84. type: list
  85. default: []
  86. items:
  87. - variable: environmentVariable
  88. label: "Environment Variable"
  89. schema:
  90. type: dict
  91. attrs:
  92. - variable: name
  93. label: "Name"
  94. schema:
  95. type: string
  96. required: true
  97. - variable: value
  98. label: "Value"
  99. schema:
  100. type: string
  101. required: true
  102. - variable: timezone
  103. label: "Plex container timezone"
  104. group: "Plex Configuration"
  105. schema:
  106. type: string
  107. default: "Etc/UTC"
  108. $ref:
  109. - "definitions/timezone"
  110. # Update strategy
  111. - variable: strategyType
  112. description: "Upgrade Policy"
  113. label: "Update Strategy"
  114. group: "Scaling/Upgrade Policy"
  115. schema:
  116. type: string
  117. default: "Recreate"
  118. enum:
  119. - value: "RollingUpdate"
  120. description: "Create new pods and then kill old ones"
  121. - value: "Recreate"
  122. description: "Kill existing pods before creating new ones"
  123. # Port configuration
  124. - variable: plexServiceTCP
  125. label: "Configure Plex TCP Service"
  126. group: "Networking"
  127. schema:
  128. type: dict
  129. attrs:
  130. - variable: port
  131. label: "Port to expose for Plex UI"
  132. schema:
  133. type: int
  134. min: 9000
  135. max: 65535
  136. default: 32400
  137. - variable: transcodeHostPathEnabled
  138. label: "Configure Host Path for Transcode"
  139. group: "Storage"
  140. schema:
  141. type: boolean
  142. default: false
  143. show_subquestions_if: true
  144. subquestions:
  145. - variable: transcodeHostPath
  146. label: "Specify HostPath for Transcode"
  147. schema:
  148. type: hostpath
  149. required: true
  150. - variable: transcodeVolume
  151. label: "Transcode Volume Defaults"
  152. group: "Storage"
  153. schema:
  154. type: dict
  155. show_if: [["transcodeHostPathEnabled", "=", false]]
  156. $ref:
  157. - "normalize/ixVolume"
  158. attrs:
  159. - variable: mountPath
  160. label: "Mount Path"
  161. description: "Path where the volume will be mounted inside the pod"
  162. schema:
  163. type: path
  164. editable: false
  165. default: "/transcode"
  166. - variable: datasetName
  167. label: "Transcode Dataset Name"
  168. schema:
  169. type: string
  170. default: "ix-plex_transcode"
  171. editable: false
  172. - variable: dataHostPathEnabled
  173. label: "Configure Host Path for Data"
  174. group: "Storage"
  175. schema:
  176. type: boolean
  177. default: false
  178. show_subquestions_if: true
  179. subquestions:
  180. - variable: dataHostPath
  181. label: "Specify HostPath for Data"
  182. schema:
  183. type: hostpath
  184. required: true
  185. - variable: dataVolume
  186. label: "Data Volume Defaults"
  187. group: "Storage"
  188. schema:
  189. type: dict
  190. show_if: [["dataHostPathEnabled", "=", false]]
  191. $ref:
  192. - "normalize/ixVolume"
  193. attrs:
  194. - variable: mountPath
  195. label: "Mount Path"
  196. description: "Path where the volume will be mounted inside the pod"
  197. schema:
  198. type: path
  199. editable: false
  200. default: "/data"
  201. - variable: datasetName
  202. label: "Data Dataset Name"
  203. schema:
  204. type: string
  205. default: "ix-plex_data"
  206. editable: false
  207. - variable: configHostPathEnabled
  208. label: "Configure Host Path for Config"
  209. group: "Storage"
  210. schema:
  211. type: boolean
  212. default: false
  213. show_subquestions_if: true
  214. subquestions:
  215. - variable: configHostPath
  216. label: "Specify HostPath for Config"
  217. schema:
  218. type: hostpath
  219. required: true
  220. - variable: configVolume
  221. label: "Configuration Volume Defaults"
  222. group: "Storage"
  223. schema:
  224. type: dict
  225. show_if: [["configHostPathEnabled", "=", false]]
  226. $ref:
  227. - "normalize/ixVolume"
  228. attrs:
  229. - variable: mountPath
  230. label: "Mount Path"
  231. description: "Path where the volume will be mounted inside the pod"
  232. schema:
  233. type: path
  234. editable: false
  235. default: "/config"
  236. - variable: datasetName
  237. label: "Configuration Dataset Name"
  238. schema:
  239. type: string
  240. default: "ix-plex_config"
  241. editable: false
  242. # Specify GPU configuration
  243. - variable: gpuConfiguration
  244. label: "GPU Configuration"
  245. group: "Resource Reservation"
  246. schema:
  247. type: dict
  248. $ref:
  249. - "definitions/gpuConfiguration"