questions.yaml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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: updateStrategy
  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. # Specify GPU configuration
  136. - variable: gpuConfiguration
  137. label: "GPU Configuration"
  138. group: "Resource Reservation"
  139. schema:
  140. type: dict
  141. $ref:
  142. - "definitions/gpuConfiguration"
  143. attrs: []
  144. - variable: appVolumeMounts
  145. label: "Plex Storage"
  146. group: "Storage"
  147. schema:
  148. type: dict
  149. attrs:
  150. - variable: transcode
  151. label: "Transcode Volume"
  152. schema:
  153. type: dict
  154. attrs:
  155. - variable: datasetName
  156. label: "Plex Transcode Volume Name"
  157. schema:
  158. type: string
  159. $ref:
  160. - "normalize/ixVolume"
  161. show_if: [["hostPathEnabled", "=", false]]
  162. default: "ix-plex_transcode"
  163. hidden: true
  164. editable: false
  165. - variable: mountPath
  166. label: "Plex Transcode Mount Path"
  167. description: "Path where the volume will be mounted inside the pod"
  168. schema:
  169. type: path
  170. hidden: true
  171. editable: false
  172. default: "/transcode"
  173. - variable: hostPathEnabled
  174. label: "Enable Host Path for Plex Transcode Volume"
  175. schema:
  176. type: boolean
  177. default: false
  178. show_subquestions_if: true
  179. subquestions:
  180. - variable: hostPath
  181. label: "Host Path for Plex Transcode Volume"
  182. schema:
  183. type: hostpath
  184. required: true
  185. - variable: data
  186. label: "Data Volume"
  187. schema:
  188. type: dict
  189. attrs:
  190. - variable: datasetName
  191. label: "Plex Data Volume Name"
  192. schema:
  193. type: string
  194. $ref:
  195. - "normalize/ixVolume"
  196. show_if: [["hostPathEnabled", "=", false]]
  197. default: "ix-plex_data"
  198. editable: false
  199. hidden: true
  200. - variable: mountPath
  201. label: "Plex Data Mount Path"
  202. description: "Path where the volume will be mounted inside the pod"
  203. schema:
  204. type: path
  205. hidden: true
  206. editable: false
  207. default: "/data"
  208. - variable: hostPathEnabled
  209. label: "Enable Host Path for Plex Data Volume"
  210. schema:
  211. type: boolean
  212. default: false
  213. show_subquestions_if: true
  214. subquestions:
  215. - variable: hostPath
  216. label: "Host Path for Plex Data Volume"
  217. schema:
  218. type: hostpath
  219. required: true
  220. - variable: config
  221. label: "Config Volume"
  222. schema:
  223. type: dict
  224. attrs:
  225. - variable: datasetName
  226. label: "Plex Config Volume Name"
  227. schema:
  228. type: string
  229. $ref:
  230. - "normalize/ixVolume"
  231. show_if: [["hostPathEnabled", "=", false]]
  232. default: "ix-plex_config"
  233. editable: false
  234. hidden: true
  235. - variable: mountPath
  236. label: "Plex Config Mount Path"
  237. description: "Path where the volume will be mounted inside the pod"
  238. schema:
  239. type: path
  240. editable: false
  241. hidden: true
  242. default: "/config"
  243. - variable: hostPathEnabled
  244. label: "Enable Host Path for Plex Config Volume"
  245. schema:
  246. type: boolean
  247. default: false
  248. show_subquestions_if: true
  249. subquestions:
  250. - variable: hostPath
  251. label: "Host Path for Plex Config Volume"
  252. schema:
  253. type: hostpath
  254. required: true
  255. - variable: shared
  256. label: "Shared Volume"
  257. schema:
  258. type: dict
  259. hidden: true
  260. attrs:
  261. - variable: emptyDir
  262. label: "Temporary Volume"
  263. schema:
  264. type: boolean
  265. default: true
  266. editable: false
  267. - variable: mountPath
  268. label: "Plex Shared Mount Path"
  269. description: "Path where the volume will be mounted inside the pod"
  270. schema:
  271. type: path
  272. editable: false
  273. default: "/shared"
  274. - variable: shared-logs
  275. label: "Shared Logs Volume"
  276. schema:
  277. type: dict
  278. hidden: true
  279. attrs:
  280. - variable: emptyDir
  281. label: "Temporary Volume"
  282. schema:
  283. type: boolean
  284. default: true
  285. editable: false
  286. - variable: mountPath
  287. label: "Plex Shared Logs Mount Path"
  288. description: "Path where the volume will be mounted inside the pod"
  289. schema:
  290. type: path
  291. editable: false
  292. default: "/config/Library/Application Support/Plex Media Server/Logs"