questions.yaml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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. - variable: value
  97. label: "Value"
  98. schema:
  99. type: string
  100. - variable: timezone
  101. label: "Plex container timezone"
  102. group: "Plex Configuration"
  103. schema:
  104. type: string
  105. default: "Etc/UTC"
  106. $ref:
  107. - "definitions/timezone"
  108. # Update strategy
  109. - variable: strategyType
  110. description: "Upgrade Policy"
  111. label: "Update Strategy"
  112. group: "Scaling/Upgrade Policy"
  113. schema:
  114. type: string
  115. default: "Recreate"
  116. enum:
  117. - value: "RollingUpdate"
  118. description: "Create new pods and then kill old ones"
  119. - value: "Recreate"
  120. description: "Kill existing pods before creating new ones"
  121. # Port configuration
  122. - variable: plexServiceTCP
  123. label: "Configure Plex TCP Service"
  124. group: "Networking"
  125. schema:
  126. type: dict
  127. attrs:
  128. - variable: port
  129. label: "Port to expose for Plex UI"
  130. schema:
  131. type: int
  132. min: 9000
  133. max: 65535
  134. default: 32400
  135. - variable: transcodeHostPathEnabled
  136. label: "Configure Host Path for Transcode"
  137. group: "Storage"
  138. schema:
  139. type: boolean
  140. default: false
  141. show_subquestions_if: true
  142. subquestions:
  143. - variable: transcodeHostPath
  144. label: "Specify HostPath for Transcode"
  145. schema:
  146. type: hostpath
  147. required: true
  148. - variable: transcodeVolume
  149. label: "Transcode Volume Defaults"
  150. group: "Storage"
  151. schema:
  152. type: dict
  153. show_if: [["transcodeHostPathEnabled", "=", false]]
  154. $ref:
  155. - "normalize/ixVolume"
  156. attrs:
  157. - variable: mountPath
  158. label: "Mount Path"
  159. description: "Path where the volume will be mounted inside the pod"
  160. schema:
  161. type: path
  162. editable: false
  163. default: "/transcode"
  164. - variable: datasetName
  165. label: "Transcode Dataset Name"
  166. schema:
  167. type: string
  168. default: "ix-plex_transcode"
  169. editable: false
  170. - variable: dataHostPathEnabled
  171. label: "Configure Host Path for Data"
  172. group: "Storage"
  173. schema:
  174. type: boolean
  175. default: false
  176. show_subquestions_if: true
  177. subquestions:
  178. - variable: dataHostPath
  179. label: "Specify HostPath for Data"
  180. schema:
  181. type: hostpath
  182. required: true
  183. - variable: dataVolume
  184. label: "Data Volume Defaults"
  185. group: "Storage"
  186. schema:
  187. type: dict
  188. show_if: [["dataHostPathEnabled", "=", false]]
  189. $ref:
  190. - "normalize/ixVolume"
  191. attrs:
  192. - variable: mountPath
  193. label: "Mount Path"
  194. description: "Path where the volume will be mounted inside the pod"
  195. schema:
  196. type: path
  197. editable: false
  198. default: "/data"
  199. - variable: datasetName
  200. label: "Data Dataset Name"
  201. schema:
  202. type: string
  203. default: "ix-plex_data"
  204. editable: false
  205. - variable: configHostPathEnabled
  206. label: "Configure Host Path for Config"
  207. group: "Storage"
  208. schema:
  209. type: boolean
  210. default: false
  211. show_subquestions_if: true
  212. subquestions:
  213. - variable: configHostPath
  214. label: "Specify HostPath for Config"
  215. schema:
  216. type: hostpath
  217. required: true
  218. - variable: configVolume
  219. label: "Configuration Volume Defaults"
  220. group: "Storage"
  221. schema:
  222. type: dict
  223. show_if: [["configHostPathEnabled", "=", false]]
  224. $ref:
  225. - "normalize/ixVolume"
  226. attrs:
  227. - variable: mountPath
  228. label: "Mount Path"
  229. description: "Path where the volume will be mounted inside the pod"
  230. schema:
  231. type: path
  232. editable: false
  233. default: "/config"
  234. - variable: datasetName
  235. label: "Configuration Dataset Name"
  236. schema:
  237. type: string
  238. default: "ix-plex_config"
  239. editable: false
  240. # Specify GPU configuration
  241. - variable: gpuConfiguration
  242. label: "GPU Configuration"
  243. group: "Resource Reservation"
  244. schema:
  245. type: dict
  246. $ref:
  247. - "definitions/gpuConfiguration"