questions.yaml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. - "$kubernetes-resource_configmap_portal_port"
  26. path: "/web"
  27. questions:
  28. - variable: hostNetwork
  29. label: "Enable 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. show_if: [[ "hostNetwork", "!=", true]]
  73. type: dict
  74. attrs:
  75. - variable: port
  76. label: "Port to expose for Emby Server UI"
  77. schema:
  78. type: int
  79. min: 9000
  80. max: 65535
  81. default: 9096
  82. # Specify GPU configuration
  83. - variable: gpuConfiguration
  84. label: "GPU Configuration"
  85. group: "Resource Reservation"
  86. schema:
  87. type: dict
  88. $ref:
  89. - "definitions/gpuConfiguration"
  90. attrs: []
  91. - variable: appVolumeMounts
  92. label: "Emby Server Storage"
  93. group: "Storage"
  94. schema:
  95. type: dict
  96. attrs:
  97. - variable: config
  98. label: "Config Volume"
  99. schema:
  100. type: dict
  101. attrs:
  102. - variable: datasetName
  103. label: "Emby Server Config Volume Name"
  104. schema:
  105. type: string
  106. $ref:
  107. - "normalize/ixVolume"
  108. show_if: [["hostPathEnabled", "=", false]]
  109. default: "ix-emby_config"
  110. editable: false
  111. hidden: true
  112. - variable: mountPath
  113. label: "Emby Server Config Mount Path"
  114. description: "Path where the volume will be mounted inside the pod"
  115. schema:
  116. type: path
  117. editable: false
  118. hidden: true
  119. default: "/config"
  120. - variable: hostPathEnabled
  121. label: "Enable Host Path for Emby Server Config Volume"
  122. schema:
  123. type: boolean
  124. default: false
  125. show_subquestions_if: true
  126. subquestions:
  127. - variable: hostPath
  128. label: "Host Path for Emby Server Config Volume"
  129. schema:
  130. type: hostpath
  131. required: true
  132. - variable: extraAppVolumeMounts
  133. label: "Emby Server Extra Host Path Volumes"
  134. group: "Storage"
  135. schema:
  136. type: list
  137. items:
  138. - variable: extraAppVolume
  139. label: "Emby Server Host Path Volume"
  140. description: "Add an extra host path volume for emby application"
  141. schema:
  142. type: dict
  143. attrs:
  144. - variable: mountPath
  145. label: "Mount Path in Pod"
  146. description: "Path where the volume will be mounted inside the pod"
  147. schema:
  148. type: path
  149. required: true
  150. - variable: hostPath
  151. label: "Host Path"
  152. description: "Host path"
  153. schema:
  154. type: hostpath
  155. required: true
  156. - variable: readOnly
  157. label: "Read Only"
  158. description: "Mount hostpath in read-only mode"
  159. schema:
  160. type: boolean
  161. default: false
  162. - variable: enableResourceLimits
  163. label: "Enable Pod resource limits"
  164. group: "Resource Limits"
  165. schema:
  166. type: boolean
  167. default: false
  168. - variable: cpuLimit
  169. label: "CPU Limit"
  170. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  171. group: "Resource Limits"
  172. schema:
  173. type: string
  174. show_if: [["enableResourceLimits", "=", true]]
  175. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  176. default: "4000m"
  177. - variable: memLimit
  178. label: "Memory Limit"
  179. group: "Resource Limits"
  180. 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"
  181. schema:
  182. type: string
  183. show_if: [["enableResourceLimits", "=", true]]
  184. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  185. default: "8Gi"