|
@@ -1,361 +1,632 @@
|
|
|
groups:
|
|
|
- - name: "Plex Configuration"
|
|
|
- description: "Configure plex deployment"
|
|
|
- - name: "Networking"
|
|
|
- description: "Configure networking for container"
|
|
|
- - name: "Storage"
|
|
|
- description: "Persist and share data that is separate from the lifecycle of the container"
|
|
|
- - name: "Workload Details"
|
|
|
- description: "Configure how workload should be deployed"
|
|
|
- - name: "Scaling/Upgrade Policy"
|
|
|
- description: "Configure how pods are replaced when configuration is upgraded"
|
|
|
- - name: "Restart Policy"
|
|
|
- description: "Configure when pod should be restarted in case of failure"
|
|
|
- - name: "Resource Reservation"
|
|
|
- description: "Specify resources to be allocated to workload"
|
|
|
- - name: "Advanced DNS Settings"
|
|
|
- description: "Configure DNS settings"
|
|
|
- - name: "Resource Limits"
|
|
|
- description: "Set CPU/memory limits for Kubernetes Pod"
|
|
|
+ - name: Plex Configuration
|
|
|
+ description: Configure Plex
|
|
|
+ - name: User and Group Configuration
|
|
|
+ description: Configure User and Group for Plex
|
|
|
+ - name: Advanced Pod Configuration
|
|
|
+ description: Configure Advanced Pod Options for Plex
|
|
|
+ - name: Network Configuration
|
|
|
+ description: Configure Network for Plex
|
|
|
+ - name: Storage Configuration
|
|
|
+ description: Configure Storage for Plex
|
|
|
+ - name: Resources Configuration
|
|
|
+ description: Configure Resources for Plex
|
|
|
|
|
|
portals:
|
|
|
web_portal:
|
|
|
protocols:
|
|
|
- - "http"
|
|
|
+ - "$kubernetes-resource_configmap_portal_protocol"
|
|
|
host:
|
|
|
- - "$node_ip"
|
|
|
+ - "$kubernetes-resource_configmap_portal_host"
|
|
|
ports:
|
|
|
- - "$variable-plexServiceTCP.port"
|
|
|
- path: "/web"
|
|
|
+ - "$kubernetes-resource_configmap_portal_port"
|
|
|
+ path: "$kubernetes-resource_configmap_portal_path"
|
|
|
|
|
|
questions:
|
|
|
- - variable: enablePlexPass
|
|
|
- label: "Use PlexPass"
|
|
|
- group: "Plex Configuration"
|
|
|
+ - variable: TZ
|
|
|
+ group: Plex Configuration
|
|
|
+ label: Timezone
|
|
|
schema:
|
|
|
- type: boolean
|
|
|
- default: false
|
|
|
- - variable: dnsConfig
|
|
|
- label: "DNS Configuration"
|
|
|
- group: "Advanced DNS Settings"
|
|
|
+ type: string
|
|
|
+ default: Etc/UTC
|
|
|
+ required: true
|
|
|
+ $ref:
|
|
|
+ - definitions/timezone
|
|
|
+
|
|
|
+ - variable: plexConfig
|
|
|
+ label: ""
|
|
|
+ group: Plex Configuration
|
|
|
schema:
|
|
|
type: dict
|
|
|
attrs:
|
|
|
- - variable: options
|
|
|
- label: "DNS Options"
|
|
|
+ - variable: claimToken
|
|
|
+ label: Claim Token
|
|
|
+ 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.
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ default: ""
|
|
|
+ private: true
|
|
|
+ - variable: imageSelector
|
|
|
+ label: Image
|
|
|
+ description: |
|
|
|
+ The image to use for Plex.
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ default: "image"
|
|
|
+ required: true
|
|
|
+ enum:
|
|
|
+ - value: "image"
|
|
|
+ description: Plex Official Image
|
|
|
+ - value: "plexPassImage"
|
|
|
+ description: Plex Pass Image
|
|
|
+ - variable: additionalEnvs
|
|
|
+ label: Additional Environment Variables
|
|
|
+ description: Configure additional environment variables for Plex.
|
|
|
schema:
|
|
|
type: list
|
|
|
+ default: []
|
|
|
items:
|
|
|
- - variable: optionsEntry
|
|
|
- label: "Option Entry Configuration"
|
|
|
+ - variable: env
|
|
|
+ label: Environment Variable
|
|
|
schema:
|
|
|
type: dict
|
|
|
attrs:
|
|
|
- variable: name
|
|
|
- label: "Option Name"
|
|
|
+ label: Name
|
|
|
schema:
|
|
|
type: string
|
|
|
required: true
|
|
|
- variable: value
|
|
|
- label: "Option Value"
|
|
|
+ label: Value
|
|
|
schema:
|
|
|
type: string
|
|
|
required: true
|
|
|
|
|
|
- - variable: claimToken
|
|
|
- label: "Plex Claim Token"
|
|
|
- group: "Plex Configuration"
|
|
|
- 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."
|
|
|
+ - variable: plexID
|
|
|
+ label: ""
|
|
|
+ group: User and Group Configuration
|
|
|
schema:
|
|
|
- type: string
|
|
|
- default: ""
|
|
|
-
|
|
|
- - variable: hostNetwork
|
|
|
- label: "Configure Host Network"
|
|
|
- group: "Networking"
|
|
|
- schema:
|
|
|
- type: boolean
|
|
|
- default: false
|
|
|
+ type: dict
|
|
|
+ attrs:
|
|
|
+ - variable: user
|
|
|
+ label: User ID
|
|
|
+ description: The user id that Plex files will be owned by.
|
|
|
+ schema:
|
|
|
+ type: int
|
|
|
+ min: 568
|
|
|
+ default: 568
|
|
|
+ required: true
|
|
|
+ - variable: group
|
|
|
+ label: Group ID
|
|
|
+ description: The group id that Plex files will be owned by.
|
|
|
+ schema:
|
|
|
+ type: int
|
|
|
+ min: 568
|
|
|
+ default: 568
|
|
|
+ required: true
|
|
|
|
|
|
- - variable: environmentVariables
|
|
|
- label: "Environment Variables for Plex"
|
|
|
- group: "Plex Configuration"
|
|
|
+ - variable: podOptions
|
|
|
+ label: ""
|
|
|
+ group: Advanced Pod Configuration
|
|
|
schema:
|
|
|
- type: list
|
|
|
- default: []
|
|
|
- items:
|
|
|
- - variable: environmentVariable
|
|
|
- label: "Environment Variable"
|
|
|
+ type: dict
|
|
|
+ attrs:
|
|
|
+ - variable: dnsConfig
|
|
|
+ label: Advanced DNS Configuration
|
|
|
schema:
|
|
|
type: dict
|
|
|
attrs:
|
|
|
- - variable: name
|
|
|
- label: "Name"
|
|
|
+ - variable: options
|
|
|
+ label: DNS Options
|
|
|
schema:
|
|
|
- type: string
|
|
|
- - variable: value
|
|
|
- label: "Value"
|
|
|
- schema:
|
|
|
- type: string
|
|
|
-
|
|
|
- - variable: timezone
|
|
|
- label: "Plex container timezone"
|
|
|
- group: "Plex Configuration"
|
|
|
- schema:
|
|
|
- type: string
|
|
|
- default: "Etc/UTC"
|
|
|
- $ref:
|
|
|
- - "definitions/timezone"
|
|
|
-
|
|
|
- # Update strategy
|
|
|
- - variable: updateStrategy
|
|
|
- description: "Upgrade Policy"
|
|
|
- label: "Update Strategy"
|
|
|
- group: "Scaling/Upgrade Policy"
|
|
|
- schema:
|
|
|
- type: string
|
|
|
- default: "Recreate"
|
|
|
- enum:
|
|
|
- - value: "RollingUpdate"
|
|
|
- description: "Create new pods and then kill old ones"
|
|
|
- - value: "Recreate"
|
|
|
- description: "Kill existing pods before creating new ones"
|
|
|
+ type: list
|
|
|
+ items:
|
|
|
+ - variable: optionsEntry
|
|
|
+ label: DNS Option Entry
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ attrs:
|
|
|
+ - variable: name
|
|
|
+ label: Option Name
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ required: true
|
|
|
+ - variable: value
|
|
|
+ label: Option Value
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ required: true
|
|
|
|
|
|
- # Port configuration
|
|
|
- - variable: plexServiceTCP
|
|
|
- label: "Configure Plex TCP Service"
|
|
|
- group: "Networking"
|
|
|
+ - variable: plexNetwork
|
|
|
+ label: ""
|
|
|
+ group: Network Configuration
|
|
|
schema:
|
|
|
type: dict
|
|
|
attrs:
|
|
|
- - variable: port
|
|
|
- label: "Port to expose for Plex UI"
|
|
|
+ - variable: webPort
|
|
|
+ label: WebUI Port
|
|
|
+ description: The port for Plex WebUI
|
|
|
schema:
|
|
|
type: int
|
|
|
+ default: 32400
|
|
|
min: 9000
|
|
|
max: 65535
|
|
|
- default: 32400
|
|
|
-
|
|
|
- # Specify GPU configuration
|
|
|
- - variable: gpuConfiguration
|
|
|
- label: "GPU Configuration"
|
|
|
- group: "Resource Reservation"
|
|
|
- schema:
|
|
|
- type: dict
|
|
|
- $ref:
|
|
|
- - "definitions/gpuConfiguration"
|
|
|
- attrs: []
|
|
|
+ required: true
|
|
|
+ - variable: hostNetwork
|
|
|
+ label: Host Network
|
|
|
+ description: |
|
|
|
+ Bind to the host network. It's recommended to keep this disabled.
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
|
|
|
- - variable: appVolumeMounts
|
|
|
- label: "Plex Storage"
|
|
|
- group: "Storage"
|
|
|
+ - variable: plexStorage
|
|
|
+ label: ""
|
|
|
+ group: Storage Configuration
|
|
|
schema:
|
|
|
type: dict
|
|
|
attrs:
|
|
|
- - variable: transcode
|
|
|
- label: "Transcode Volume"
|
|
|
+ - variable: data
|
|
|
+ label: Plex Data Storage
|
|
|
+ description: The path to store Plex Data.
|
|
|
schema:
|
|
|
type: dict
|
|
|
attrs:
|
|
|
- - variable: datasetName
|
|
|
- label: "Plex Transcode Volume Name"
|
|
|
+ - variable: type
|
|
|
+ label: Type
|
|
|
+ description: |
|
|
|
+ ixVolume: Is dataset created automatically by the system.</br>
|
|
|
+ Host Path: Is a path that already exists on the system.
|
|
|
schema:
|
|
|
type: string
|
|
|
+ required: true
|
|
|
+ immutable: true
|
|
|
+ default: "ixVolume"
|
|
|
+ enum:
|
|
|
+ - value: "hostPath"
|
|
|
+ description: Host Path (Path that already exists on the system)
|
|
|
+ - value: "ixVolume"
|
|
|
+ description: ixVolume (Dataset created automatically by the system)
|
|
|
+ - variable: ixVolumeConfig
|
|
|
+ label: ixVolume Configuration
|
|
|
+ description: The configuration for the ixVolume dataset.
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["type", "=", "ixVolume"]]
|
|
|
$ref:
|
|
|
- "normalize/ixVolume"
|
|
|
- show_if: [["hostPathEnabled", "=", false]]
|
|
|
- default: "ix-plex_transcode"
|
|
|
- hidden: true
|
|
|
- editable: false
|
|
|
- - variable: mountPath
|
|
|
- label: "Plex Transcode Mount Path"
|
|
|
- description: "Path where the volume will be mounted inside the pod"
|
|
|
- schema:
|
|
|
- type: path
|
|
|
- hidden: true
|
|
|
- editable: false
|
|
|
- default: "/transcode"
|
|
|
- - variable: hostPathEnabled
|
|
|
- label: "Enable Host Path for Plex Transcode Volume"
|
|
|
+ attrs:
|
|
|
+ - variable: aclEnable
|
|
|
+ label: Enable ACL
|
|
|
+ description: Enable ACL for the dataset.
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
+ - variable: datasetName
|
|
|
+ label: Dataset Name
|
|
|
+ description: The name of the dataset to use for storage.
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ required: true
|
|
|
+ immutable: true
|
|
|
+ hidden: true
|
|
|
+ default: "data"
|
|
|
+ - variable: aclEntries
|
|
|
+ label: ACL Configuration
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["aclEnable", "=", true]]
|
|
|
+ attrs: []
|
|
|
+ - variable: hostPathConfig
|
|
|
+ label: Host Path Configuration
|
|
|
schema:
|
|
|
- type: boolean
|
|
|
- default: false
|
|
|
- show_subquestions_if: true
|
|
|
- subquestions:
|
|
|
+ type: dict
|
|
|
+ show_if: [["type", "=", "hostPath"]]
|
|
|
+ attrs:
|
|
|
+ - variable: aclEnable
|
|
|
+ label: Enable ACL
|
|
|
+ description: Enable ACL for the dataset.
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
+ - variable: acl
|
|
|
+ label: ACL Configuration
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["aclEnable", "=", true]]
|
|
|
+ attrs: []
|
|
|
+ $ref:
|
|
|
+ - "normalize/acl"
|
|
|
- variable: hostPath
|
|
|
- label: "Host Path for Plex Transcode Volume"
|
|
|
+ label: Host Path
|
|
|
+ description: The host path to use for storage.
|
|
|
schema:
|
|
|
type: hostpath
|
|
|
+ show_if: [["aclEnable", "=", false]]
|
|
|
required: true
|
|
|
- $ref:
|
|
|
- - "validations/lockedHostPath"
|
|
|
- - variable: data
|
|
|
- label: "Data Volume"
|
|
|
+ - variable: config
|
|
|
+ label: Plex Configuration Storage
|
|
|
+ description: The path to store Plex Configuration.
|
|
|
schema:
|
|
|
type: dict
|
|
|
attrs:
|
|
|
- - variable: datasetName
|
|
|
- label: "Plex Data Volume Name"
|
|
|
+ - variable: type
|
|
|
+ label: Type
|
|
|
+ description: |
|
|
|
+ ixVolume: Is dataset created automatically by the system.</br>
|
|
|
+ Host Path: Is a path that already exists on the system.
|
|
|
schema:
|
|
|
type: string
|
|
|
+ required: true
|
|
|
+ immutable: true
|
|
|
+ default: "ixVolume"
|
|
|
+ enum:
|
|
|
+ - value: "hostPath"
|
|
|
+ description: Host Path (Path that already exists on the system)
|
|
|
+ - value: "ixVolume"
|
|
|
+ description: ixVolume (Dataset created automatically by the system)
|
|
|
+ - variable: ixVolumeConfig
|
|
|
+ label: ixVolume Configuration
|
|
|
+ description: The configuration for the ixVolume dataset.
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["type", "=", "ixVolume"]]
|
|
|
$ref:
|
|
|
- "normalize/ixVolume"
|
|
|
- show_if: [["hostPathEnabled", "=", false]]
|
|
|
- default: "ix-plex_data"
|
|
|
- editable: false
|
|
|
- hidden: true
|
|
|
- - variable: mountPath
|
|
|
- label: "Plex Data Mount Path"
|
|
|
- description: "Path where the volume will be mounted inside the pod"
|
|
|
- schema:
|
|
|
- type: path
|
|
|
- hidden: true
|
|
|
- editable: false
|
|
|
- default: "/data"
|
|
|
- - variable: hostPathEnabled
|
|
|
- label: "Enable Host Path for Plex Data Volume"
|
|
|
+ attrs:
|
|
|
+ - variable: aclEnable
|
|
|
+ label: Enable ACL
|
|
|
+ description: Enable ACL for the dataset.
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
+ - variable: datasetName
|
|
|
+ label: Dataset Name
|
|
|
+ description: The name of the dataset to use for storage.
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ required: true
|
|
|
+ immutable: true
|
|
|
+ hidden: true
|
|
|
+ default: "config"
|
|
|
+ - variable: aclEntries
|
|
|
+ label: ACL Configuration
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["aclEnable", "=", true]]
|
|
|
+ attrs: []
|
|
|
+ - variable: hostPathConfig
|
|
|
+ label: Host Path Configuration
|
|
|
schema:
|
|
|
- type: boolean
|
|
|
- default: false
|
|
|
- show_subquestions_if: true
|
|
|
- subquestions:
|
|
|
+ type: dict
|
|
|
+ show_if: [["type", "=", "hostPath"]]
|
|
|
+ attrs:
|
|
|
+ - variable: aclEnable
|
|
|
+ label: Enable ACL
|
|
|
+ description: Enable ACL for the dataset.
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
+ - variable: acl
|
|
|
+ label: ACL Configuration
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["aclEnable", "=", true]]
|
|
|
+ attrs: []
|
|
|
+ $ref:
|
|
|
+ - "normalize/acl"
|
|
|
- variable: hostPath
|
|
|
- label: "Host Path for Plex Data Volume"
|
|
|
+ label: Host Path
|
|
|
+ description: The host path to use for storage.
|
|
|
schema:
|
|
|
type: hostpath
|
|
|
+ show_if: [["aclEnable", "=", false]]
|
|
|
required: true
|
|
|
- $ref:
|
|
|
- - "validations/lockedHostPath"
|
|
|
- - variable: config
|
|
|
- label: "Config Volume"
|
|
|
+ - variable: transcode
|
|
|
+ label: Plex Transcode Storage
|
|
|
+ description: The path to store Plex Transcode.
|
|
|
schema:
|
|
|
type: dict
|
|
|
attrs:
|
|
|
- - variable: datasetName
|
|
|
- label: "Plex Config Volume Name"
|
|
|
+ - variable: type
|
|
|
+ label: Type
|
|
|
+ description: |
|
|
|
+ ixVolume: Is dataset created automatically by the system.</br>
|
|
|
+ Host Path: Is a path that already exists on the system.</br>
|
|
|
+ emptyDir: Is a temporary directory that will be created on the disk or in memory.
|
|
|
schema:
|
|
|
type: string
|
|
|
+ required: true
|
|
|
+ immutable: true
|
|
|
+ default: "ixVolume"
|
|
|
+ enum:
|
|
|
+ - value: "hostPath"
|
|
|
+ description: Host Path (Path that already exists on the system)
|
|
|
+ - value: "ixVolume"
|
|
|
+ description: ixVolume (Dataset created automatically by the system)
|
|
|
+ - value: "emptyDir"
|
|
|
+ description: emptyDir (Temporary directory created on the disk or in memory)
|
|
|
+ - variable: ixVolumeConfig
|
|
|
+ label: ixVolume Configuration
|
|
|
+ description: The configuration for the ixVolume dataset.
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["type", "=", "ixVolume"]]
|
|
|
$ref:
|
|
|
- "normalize/ixVolume"
|
|
|
- show_if: [["hostPathEnabled", "=", false]]
|
|
|
- default: "ix-plex_config"
|
|
|
- editable: false
|
|
|
- hidden: true
|
|
|
- - variable: mountPath
|
|
|
- label: "Plex Config Mount Path"
|
|
|
- description: "Path where the volume will be mounted inside the pod"
|
|
|
+ attrs:
|
|
|
+ - variable: aclEnable
|
|
|
+ label: Enable ACL
|
|
|
+ description: Enable ACL for the dataset.
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
+ - variable: datasetName
|
|
|
+ label: Dataset Name
|
|
|
+ description: The name of the dataset to use for storage.
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ required: true
|
|
|
+ immutable: true
|
|
|
+ hidden: true
|
|
|
+ default: "transcode"
|
|
|
+ - variable: aclEntries
|
|
|
+ label: ACL Configuration
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["aclEnable", "=", true]]
|
|
|
+ attrs: []
|
|
|
+ - variable: emptyDirConfig
|
|
|
+ label: emptyDir Configuration
|
|
|
schema:
|
|
|
- type: path
|
|
|
- editable: false
|
|
|
- hidden: true
|
|
|
- default: "/config"
|
|
|
- - variable: hostPathEnabled
|
|
|
- label: "Enable Host Path for Plex Config Volume"
|
|
|
+ type: dict
|
|
|
+ show_if: [["type", "=", "emptyDir"]]
|
|
|
+ attrs:
|
|
|
+ - variable: medium
|
|
|
+ label: emptyDir Medium
|
|
|
+ description: |
|
|
|
+ Disk: Creates a temporary directory on the disk.</br>
|
|
|
+ Memory: Creates a temporary directory in memory.
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ default: ""
|
|
|
+ enum:
|
|
|
+ - value: ""
|
|
|
+ description: Disk (Temporary directory created on the disk)
|
|
|
+ - value: "Memory"
|
|
|
+ description: Memory (Temporary directory created in memory)
|
|
|
+ - variable: size
|
|
|
+ label: emptyDir Size Limit (in Gi)
|
|
|
+ description: |
|
|
|
+ The maximum size (in Gi) of the temporary directory.</br>
|
|
|
+ For example: 2
|
|
|
+ schema:
|
|
|
+ type: int
|
|
|
+ "null": true
|
|
|
+ default: 2
|
|
|
+ - variable: hostPathConfig
|
|
|
+ label: Host Path Configuration
|
|
|
schema:
|
|
|
- type: boolean
|
|
|
- default: false
|
|
|
- show_subquestions_if: true
|
|
|
- subquestions:
|
|
|
+ type: dict
|
|
|
+ show_if: [["type", "=", "hostPath"]]
|
|
|
+ attrs:
|
|
|
+ - variable: aclEnable
|
|
|
+ label: Enable ACL
|
|
|
+ description: Enable ACL for the dataset.
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
+ - variable: acl
|
|
|
+ label: ACL Configuration
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["aclEnable", "=", true]]
|
|
|
+ attrs: []
|
|
|
+ $ref:
|
|
|
+ - "normalize/acl"
|
|
|
- variable: hostPath
|
|
|
- label: "Host Path for Plex Config Volume"
|
|
|
+ label: Host Path
|
|
|
+ description: The host path to use for storage.
|
|
|
schema:
|
|
|
type: hostpath
|
|
|
+ show_if: [["aclEnable", "=", false]]
|
|
|
required: true
|
|
|
- $ref:
|
|
|
- - "validations/lockedHostPath"
|
|
|
- - variable: shared
|
|
|
- label: "Shared Volume"
|
|
|
- schema:
|
|
|
- type: dict
|
|
|
- hidden: true
|
|
|
- attrs:
|
|
|
- - variable: emptyDir
|
|
|
- label: "Temporary Volume"
|
|
|
- schema:
|
|
|
- type: boolean
|
|
|
- default: true
|
|
|
- editable: false
|
|
|
- - variable: mountPath
|
|
|
- label: "Plex Shared Mount Path"
|
|
|
- description: "Path where the volume will be mounted inside the pod"
|
|
|
- schema:
|
|
|
- type: path
|
|
|
- editable: false
|
|
|
- default: "/shared"
|
|
|
- - variable: shared-logs
|
|
|
- label: "Shared Logs Volume"
|
|
|
+
|
|
|
+ - variable: additionalStorages
|
|
|
+ label: Additional Storage
|
|
|
+ description: Additional storage for Plex.
|
|
|
schema:
|
|
|
- type: dict
|
|
|
- hidden: true
|
|
|
- attrs:
|
|
|
- - variable: emptyDir
|
|
|
- label: "Temporary Volume"
|
|
|
- schema:
|
|
|
- type: boolean
|
|
|
- default: true
|
|
|
- editable: false
|
|
|
- - variable: mountPath
|
|
|
- label: "Plex Shared Logs Mount Path"
|
|
|
- description: "Path where the volume will be mounted inside the pod"
|
|
|
+ type: list
|
|
|
+ default: []
|
|
|
+ items:
|
|
|
+ - variable: storageEntry
|
|
|
+ label: Storage Entry
|
|
|
schema:
|
|
|
- type: path
|
|
|
- editable: false
|
|
|
- default: "/config/Library/Application Support/Plex Media Server/Logs"
|
|
|
+ type: dict
|
|
|
+ attrs:
|
|
|
+ - variable: type
|
|
|
+ label: Type
|
|
|
+ description: |
|
|
|
+ ixVolume: Is dataset created automatically by the system.</br>
|
|
|
+ Host Path: Is a path that already exists on the system.</br>
|
|
|
+ SMB Share: Is a SMB share that is mounted to a persistent volume claim.
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ required: true
|
|
|
+ default: "ixVolume"
|
|
|
+ immutable: true
|
|
|
+ enum:
|
|
|
+ - value: "hostPath"
|
|
|
+ description: Host Path (Path that already exists on the system)
|
|
|
+ - value: "ixVolume"
|
|
|
+ description: ixVolume (Dataset created automatically by the system)
|
|
|
+ - value: "smb-pv-pvc"
|
|
|
+ description: SMB Share (Mounts a persistent volume claim to a SMB share)
|
|
|
+ - variable: readOnly
|
|
|
+ label: Read Only
|
|
|
+ description: Mount the volume as read only.
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
+ - variable: mountPath
|
|
|
+ label: Mount Path
|
|
|
+ description: The path inside the container to mount the storage.
|
|
|
+ schema:
|
|
|
+ type: path
|
|
|
+ required: true
|
|
|
+ - variable: hostPathConfig
|
|
|
+ label: Host Path Configuration
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["type", "=", "hostPath"]]
|
|
|
+ attrs:
|
|
|
+ - variable: aclEnable
|
|
|
+ label: Enable ACL
|
|
|
+ description: Enable ACL for the dataset.
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
+ - variable: acl
|
|
|
+ label: ACL Configuration
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["aclEnable", "=", true]]
|
|
|
+ attrs: []
|
|
|
+ $ref:
|
|
|
+ - "normalize/acl"
|
|
|
+ - variable: hostPath
|
|
|
+ label: Host Path
|
|
|
+ description: The host path to use for storage.
|
|
|
+ schema:
|
|
|
+ type: hostpath
|
|
|
+ show_if: [["aclEnable", "=", false]]
|
|
|
+ required: true
|
|
|
+ - variable: ixVolumeConfig
|
|
|
+ label: ixVolume Configuration
|
|
|
+ description: The configuration for the ixVolume dataset.
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["type", "=", "ixVolume"]]
|
|
|
+ $ref:
|
|
|
+ - "normalize/ixVolume"
|
|
|
+ attrs:
|
|
|
+ - variable: aclEnable
|
|
|
+ label: Enable ACL
|
|
|
+ description: Enable ACL for the dataset.
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
+ - variable: datasetName
|
|
|
+ label: Dataset Name
|
|
|
+ description: The name of the dataset to use for storage.
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ required: true
|
|
|
+ immutable: true
|
|
|
+ default: "storage_entry"
|
|
|
+ - variable: aclEntries
|
|
|
+ label: ACL Configuration
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["aclEnable", "=", true]]
|
|
|
+ attrs: []
|
|
|
+ - variable: smbConfig
|
|
|
+ label: SMB Share Configuration
|
|
|
+ description: The configuration for the SMB Share.
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ show_if: [["type", "=", "smb-pv-pvc"]]
|
|
|
+ attrs:
|
|
|
+ - variable: server
|
|
|
+ label: Server
|
|
|
+ description: The server for the SMB share.
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ required: true
|
|
|
+ - variable: share
|
|
|
+ label: Share
|
|
|
+ description: The share name for the SMB share.
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ required: true
|
|
|
+ - variable: domain
|
|
|
+ label: Domain (Optional)
|
|
|
+ description: The domain for the SMB share.
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ - variable: username
|
|
|
+ label: Username
|
|
|
+ description: The username for the SMB share.
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ required: true
|
|
|
+ - variable: password
|
|
|
+ label: Password
|
|
|
+ description: The password for the SMB share.
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ required: true
|
|
|
+ private: true
|
|
|
+ - variable: size
|
|
|
+ label: Size (in Gi)
|
|
|
+ description: The size of the volume quota.
|
|
|
+ schema:
|
|
|
+ type: int
|
|
|
+ required: true
|
|
|
+ min: 1
|
|
|
+ default: 1
|
|
|
|
|
|
- - variable: extraAppVolumeMounts
|
|
|
- label: "Plex Extra Host Path Volumes"
|
|
|
- group: "Storage"
|
|
|
+ - variable: resources
|
|
|
+ label: Resources Configuration
|
|
|
+ group: Resources Configuration
|
|
|
schema:
|
|
|
- type: list
|
|
|
- items:
|
|
|
- - variable: extraAppVolume
|
|
|
- label: "Plex Host Path Volume"
|
|
|
- description: "Add an extra host path volume for plex application"
|
|
|
+ type: dict
|
|
|
+ attrs:
|
|
|
+ - variable: limits
|
|
|
+ label: Limits
|
|
|
schema:
|
|
|
type: dict
|
|
|
attrs:
|
|
|
- - variable: mountPath
|
|
|
- label: "Mount Path in Pod"
|
|
|
- description: "Path where the volume will be mounted inside the pod"
|
|
|
+ - variable: cpu
|
|
|
+ label: CPU
|
|
|
+ description: CPU limit for Plex.
|
|
|
schema:
|
|
|
- type: path
|
|
|
+ type: string
|
|
|
+ max_length: 6
|
|
|
+ valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
|
|
|
+ valid_chars_error: |
|
|
|
+ Valid CPU limit formats are</br>
|
|
|
+ - Plain Integer - eg. 1</br>
|
|
|
+ - Float - eg. 0.5</br>
|
|
|
+ - Milicpu - eg. 500m
|
|
|
+ default: "4000m"
|
|
|
required: true
|
|
|
- - variable: hostPath
|
|
|
- label: "Host Path"
|
|
|
- description: "Host path"
|
|
|
+ - variable: memory
|
|
|
+ label: Memory
|
|
|
+ description: Memory limit for Plex.
|
|
|
schema:
|
|
|
- type: hostpath
|
|
|
+ type: string
|
|
|
+ max_length: 12
|
|
|
+ valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
|
|
|
+ valid_chars_error: |
|
|
|
+ Valid Memory limit formats are</br>
|
|
|
+ - Suffixed with E/P/T/G/M/K - eg. 1G</br>
|
|
|
+ - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
|
|
|
+ - Plain Integer in bytes - eg. 1024</br>
|
|
|
+ - Exponent - eg. 134e6
|
|
|
+ default: "8Gi"
|
|
|
required: true
|
|
|
- $ref:
|
|
|
- - "validations/lockedHostPath"
|
|
|
- - variable: readOnly
|
|
|
- label: "Read Only"
|
|
|
- description: "Mount hostpath in read-only mode"
|
|
|
- schema:
|
|
|
- type: boolean
|
|
|
- default: false
|
|
|
|
|
|
- - variable: enableResourceLimits
|
|
|
- label: "Enable Pod resource limits"
|
|
|
- group: "Resource Limits"
|
|
|
+ - variable: plexGPU
|
|
|
+ group: Resources Configuration
|
|
|
+ label: GPU Configuration
|
|
|
schema:
|
|
|
- type: boolean
|
|
|
- default: false
|
|
|
- - variable: cpuLimit
|
|
|
- label: "CPU Limit"
|
|
|
- description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
|
|
|
- group: "Resource Limits"
|
|
|
- schema:
|
|
|
- type: string
|
|
|
- show_if: [["enableResourceLimits", "=", true]]
|
|
|
- valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
|
|
|
- default: "4000m"
|
|
|
- - variable: memLimit
|
|
|
- label: "Memory Limit"
|
|
|
- group: "Resource Limits"
|
|
|
- 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"
|
|
|
- schema:
|
|
|
- type: string
|
|
|
- show_if: [["enableResourceLimits", "=", true]]
|
|
|
- valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
|
|
|
- default: "8Gi"
|
|
|
+ type: dict
|
|
|
+ $ref:
|
|
|
+ - "definitions/gpuConfiguration"
|
|
|
+ attrs: []
|