questions.yaml 9.6 KB

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