questions.yaml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. groups:
  2. - name: "Emby Server Configuration"
  3. description: "Configure Emby Server"
  4. - name: "Networking"
  5. description: "Configure networking for container"
  6. - name: "Storage"
  7. description: "Persist and share data that is separate from the lifecycle of the container"
  8. - name: "Workload Details"
  9. description: "Configure how workload should be deployed"
  10. - name: "Scaling/Upgrade Policy"
  11. description: "Configure how pods are replaced when configuration is upgraded"
  12. - name: "Restart Policy"
  13. description: "Configure when pod should be restarted in case of failure"
  14. - name: "Resource Reservation"
  15. description: "Specify resources to be allocated to workload"
  16. - name: "Resource Limits"
  17. description: "Set CPU/memory limits for Kubernetes Pod"
  18. portals:
  19. web_portal:
  20. protocols:
  21. - "http"
  22. host:
  23. - "$node_ip"
  24. ports:
  25. - "$variable-embyServerHttp.port"
  26. path: "/web"
  27. questions:
  28. - variable: hostNetwork
  29. label: "Configure Host Network"
  30. group: "Networking"
  31. schema:
  32. type: boolean
  33. default: false
  34. - variable: environmentVariables
  35. label: "Environment Variables for Emby Server"
  36. group: "Emby Server Configuration"
  37. schema:
  38. type: list
  39. default: []
  40. items:
  41. - variable: environmentVariable
  42. label: "Environment Variable"
  43. schema:
  44. type: dict
  45. attrs:
  46. - variable: name
  47. label: "Name"
  48. schema:
  49. type: string
  50. - variable: value
  51. label: "Value"
  52. schema:
  53. type: string
  54. # Update strategy
  55. - variable: updateStrategy
  56. description: "Upgrade Policy"
  57. label: "Update Strategy"
  58. group: "Scaling/Upgrade Policy"
  59. schema:
  60. type: string
  61. default: "Recreate"
  62. enum:
  63. - value: "RollingUpdate"
  64. description: "Create new pods and then kill old ones"
  65. - value: "Recreate"
  66. description: "Kill existing pods before creating new ones"
  67. # Port configuration
  68. - variable: embyServerHttp
  69. label: "Configure Emby Server HTTP Service"
  70. group: "Networking"
  71. schema:
  72. type: dict
  73. attrs:
  74. - variable: port
  75. label: "Port to expose for Emby Server UI"
  76. schema:
  77. type: int
  78. min: 9000
  79. max: 65535
  80. default: 9096
  81. # Specify GPU configuration
  82. - variable: gpuConfiguration
  83. label: "GPU Configuration"
  84. group: "Resource Reservation"
  85. schema:
  86. type: dict
  87. $ref:
  88. - "definitions/gpuConfiguration"
  89. attrs: []
  90. - variable: appVolumeMounts
  91. label: "Emby Server Storage"
  92. group: "Storage"
  93. schema:
  94. type: dict
  95. attrs:
  96. - variable: config
  97. label: "Config Volume"
  98. schema:
  99. type: dict
  100. attrs:
  101. - variable: datasetName
  102. label: "Emby Server Config Volume Name"
  103. schema:
  104. type: string
  105. $ref:
  106. - "normalize/ixVolume"
  107. show_if: [["hostPathEnabled", "=", false]]
  108. default: "ix-emby_config"
  109. editable: false
  110. hidden: true
  111. - variable: mountPath
  112. label: "Emby Server Config Mount Path"
  113. description: "Path where the volume will be mounted inside the pod"
  114. schema:
  115. type: path
  116. editable: false
  117. hidden: true
  118. default: "/config"
  119. - variable: hostPathEnabled
  120. label: "Enable Host Path for Emby Server Config Volume"
  121. schema:
  122. type: boolean
  123. default: false
  124. show_subquestions_if: true
  125. subquestions:
  126. - variable: hostPath
  127. label: "Host Path for Emby Server Config Volume"
  128. schema:
  129. type: hostpath
  130. required: true
  131. - variable: extraAppVolumeMounts
  132. label: "Emby Server Extra Host Path Volumes"
  133. group: "Storage"
  134. schema:
  135. type: list
  136. items:
  137. - variable: extraAppVolume
  138. label: "Emby Server Host Path Volume"
  139. description: "Add an extra host path volume for emby application"
  140. schema:
  141. type: dict
  142. attrs:
  143. - variable: mountPath
  144. label: "Mount Path in Pod"
  145. description: "Path where the volume will be mounted inside the pod"
  146. schema:
  147. type: path
  148. required: true
  149. - variable: hostPath
  150. label: "Host Path"
  151. description: "Host path"
  152. schema:
  153. type: hostpath
  154. required: true
  155. - variable: readOnly
  156. label: "Read Only"
  157. description: "Mount hostpath in read-only mode"
  158. schema:
  159. type: boolean
  160. default: false
  161. - variable: enableResourceLimits
  162. label: "Enable Pod resource limits"
  163. group: "Resource Limits"
  164. schema:
  165. type: boolean
  166. default: false
  167. - variable: cpuLimit
  168. label: "CPU Limit"
  169. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  170. group: "Resource Limits"
  171. schema:
  172. type: string
  173. show_if: [["enableResourceLimits", "=", true]]
  174. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  175. default: "4000m"
  176. - variable: memLimit
  177. label: "Memory Limit"
  178. group: "Resource Limits"
  179. description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi"
  180. schema:
  181. type: string
  182. show_if: [["enableResourceLimits", "=", true]]
  183. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  184. default: "8Gi"