questions.yaml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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. questions:
  31. # Image related
  32. - variable: image
  33. description: "Docker Image Details"
  34. label: "Docker Image"
  35. group: "Container Images"
  36. schema:
  37. type: dict
  38. required: true
  39. attrs:
  40. - variable: repository
  41. description: "Docker image repository"
  42. label: "Image repository"
  43. schema:
  44. type: string
  45. required: true
  46. default: "plexinc/pms-docker"
  47. - variable: tag
  48. description: "Tag to use for specified image"
  49. label: "Image Tag"
  50. schema:
  51. type: string
  52. default: "1.20.2.3402-0fec14d92"
  53. - variable: pullPolicy
  54. description: "Docker Image Pull Policy"
  55. label: "Image Pull Policy"
  56. schema:
  57. type: string
  58. default: "IfNotPresent"
  59. enum:
  60. - value: "IfNotPresent"
  61. description: "Only pull image if not present on host"
  62. - value: "Always"
  63. description: "Always pull image even if present on host"
  64. - value: "Never"
  65. description: "Never pull image even if it's not present on host"
  66. - variable: claimToken
  67. label: "Plex Claim Token"
  68. group: "Plex Configuration"
  69. schema:
  70. type: string
  71. default: ""
  72. - variable: advertiseIp
  73. label: "Plex Advertise IP"
  74. group: "Plex Configuration"
  75. schema:
  76. type: string
  77. - variable: extraEnv
  78. label: "Environment variables for plex"
  79. group: "Plex Configuration"
  80. schema:
  81. type: dict
  82. additional_attrs: true
  83. attrs: []
  84. - variable: proxy
  85. label: "Configure Proxy environment variable"
  86. group: "Plex Configuration"
  87. schema:
  88. type: dict
  89. attrs:
  90. - variable: enabled
  91. label: "Enable Proxy"
  92. schema:
  93. type: boolean
  94. default: false
  95. - variable: http
  96. label: "HTTP Proxy"
  97. schema:
  98. type: string
  99. - variable: https
  100. label: "HTTPS Proxy"
  101. schema:
  102. type: string
  103. - variable: hostNetwork
  104. label: "Configure Host Network"
  105. group: "Networking"
  106. schema:
  107. type: boolean
  108. default: false
  109. - variable: timezone
  110. label: "Plex container timezone"
  111. group: "Plex Configuration"
  112. schema:
  113. type: string
  114. default: "Etc/UTC"
  115. $ref:
  116. - "definitions/timezone"
  117. # Update strategy
  118. - variable: strategyType
  119. description: "Upgrade Policy"
  120. label: "Update Strategy"
  121. group: "Scaling/Upgrade Policy"
  122. schema:
  123. type: string
  124. default: "Recreate"
  125. enum:
  126. - value: "RollingUpdate"
  127. description: "Create new pods and then kill old ones"
  128. - value: "Recreate"
  129. description: "Kill existing pods before creating new ones"
  130. # Port configuration
  131. - variable: plexServiceTCP
  132. label: "Configure Plex TCP Service"
  133. group: "Networking"
  134. schema:
  135. type: dict
  136. attrs:
  137. - variable: port
  138. label: "Port to expose for Plex UI"
  139. schema:
  140. type: int
  141. min: 9000
  142. max: 65535
  143. default: 32400
  144. - variable: transcodeHostPathEnabled
  145. label: "Configure Host Path for Transcode"
  146. group: "Storage"
  147. schema:
  148. type: boolean
  149. default: false
  150. show_subquestions_if: true
  151. subquestions:
  152. - variable: transcodeHostPath
  153. label: "Specify HostPath for Transcode"
  154. schema:
  155. type: hostpath
  156. required: true
  157. - variable: transcodeVolume
  158. label: "Configure iXVolume"
  159. group: "Storage"
  160. schema:
  161. type: dict
  162. show_if: [["transcodeHostPathEnabled", "=", false]]
  163. $ref:
  164. - "normalize/ixVolume"
  165. attrs:
  166. - variable: mountPath
  167. label: "Mount Path"
  168. description: "Path where the volume will be mounted inside the pod"
  169. schema:
  170. type: path
  171. editable: false
  172. default: "/transcode"
  173. - variable: datasetName
  174. label: "Dataset Name"
  175. schema:
  176. type: string
  177. default: "ix-plex_transcode"
  178. editable: false
  179. - variable: dataHostPathEnabled
  180. label: "Configure Host Path for Data"
  181. group: "Storage"
  182. schema:
  183. type: boolean
  184. default: false
  185. show_subquestions_if: true
  186. subquestions:
  187. - variable: dataHostPath
  188. label: "Specify HostPath for Data"
  189. schema:
  190. type: hostpath
  191. required: true
  192. - variable: dataVolume
  193. label: "Configure data iXVolume"
  194. group: "Storage"
  195. schema:
  196. type: dict
  197. show_if: [["dataHostPathEnabled", "=", false]]
  198. $ref:
  199. - "normalize/ixVolume"
  200. attrs:
  201. - variable: mountPath
  202. label: "Mount Path"
  203. description: "Path where the volume will be mounted inside the pod"
  204. schema:
  205. type: path
  206. editable: false
  207. default: "/data"
  208. - variable: datasetName
  209. label: "Dataset Name"
  210. schema:
  211. type: string
  212. default: "ix-plex_data"
  213. editable: false
  214. - variable: configHostPathEnabled
  215. label: "Configure Host Path for Config"
  216. group: "Storage"
  217. schema:
  218. type: boolean
  219. default: false
  220. show_subquestions_if: true
  221. subquestions:
  222. - variable: configHostPath
  223. label: "Specify HostPath for Config"
  224. schema:
  225. type: hostpath
  226. required: true
  227. - variable: configVolume
  228. label: "Configure iXVolume"
  229. group: "Storage"
  230. schema:
  231. type: dict
  232. show_if: [["configHostPathEnabled", "=", false]]
  233. $ref:
  234. - "normalize/ixVolume"
  235. attrs:
  236. - variable: mountPath
  237. label: "Mount Path"
  238. description: "Path where the volume will be mounted inside the pod"
  239. schema:
  240. type: path
  241. editable: false
  242. default: "/config"
  243. - variable: datasetName
  244. label: "Dataset Name"
  245. schema:
  246. type: string
  247. default: "ix-plex_config"
  248. editable: false
  249. # Specify GPU configuration
  250. - variable: gpuConfiguration
  251. label: "GPU Configuration"
  252. group: "Resource Reservation"
  253. schema:
  254. type: dict
  255. $ref:
  256. - "definitions/gpuConfiguration"