Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
17966e29
Commit
17966e29
authored
Feb 03, 2021
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update plex chart format
parent
1e7b1845
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
159 additions
and
145 deletions
+159
-145
test/plex/1.0.1/migrations/migrate.py
test/plex/1.0.1/migrations/migrate.py
+16
-0
test/plex/1.0.1/questions.yaml
test/plex/1.0.1/questions.yaml
+137
-106
test/plex/1.0.1/templates/deployment.yaml
test/plex/1.0.1/templates/deployment.yaml
+6
-39
No files found.
test/plex/1.0.1/migrations/migrate.py
0 → 100644
View file @
17966e29
def
migrate
(
values
):
values
[
'appVolumeMounts'
]
=
{
'transcode'
:
{
'hostPathEnabled'
:
values
[
'transcodeHostPathEnabled'
],
**
({
'hostPath'
:
values
[
'transcodeHostPath'
]}
if
values
.
get
(
'transcodeHostPath'
)
else
{})
},
'config'
:
{
'hostPathEnabled'
:
values
[
'configHostPathEnabled'
],
**
({
'hostPath'
:
values
[
'configHostPath'
]}
if
values
.
get
(
'configHostPath'
)
else
{})
},
'data'
:
{
'hostPathEnabled'
:
values
[
'dataHostPathEnabled'
],
**
({
'hostPath'
:
values
[
'dataHostPath'
]}
if
values
.
get
(
'dataHostPath'
)
else
{})
},
}
return
values
test/plex/1.0.1/questions.yaml
View file @
17966e29
...
@@ -141,122 +141,153 @@ questions:
...
@@ -141,122 +141,153 @@ questions:
max
:
65535
max
:
65535
default
:
32400
default
:
32400
-
variable
:
transcodeHostPathEnabled
# Specify GPU configuration
label
:
"
Configure
Host
Path
for
Transcode"
-
variable
:
gpuConfiguration
group
:
"
Storage"
label
:
"
GPU
Configuration"
schema
:
group
:
"
Resource
Reservation"
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
transcodeHostPath
label
:
"
Specify
HostPath
for
Transcode"
schema
:
type
:
hostpath
required
:
true
-
variable
:
transcodeVolume
label
:
"
Transcode
Volume
Defaults"
group
:
"
Storage"
schema
:
schema
:
type
:
dict
type
:
dict
show_if
:
[[
"
transcodeHostPathEnabled"
,
"
="
,
false
]]
$ref
:
$ref
:
-
"
normalize/ixVolume"
-
"
definitions/gpuConfiguration"
attrs
:
-
variable
:
mountPath
label
:
"
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
editable
:
false
default
:
"
/transcode"
-
variable
:
datasetName
label
:
"
Transcode
Dataset
Name"
schema
:
type
:
string
default
:
"
ix-plex_transcode"
editable
:
false
-
variable
:
dataHostPathEnabled
label
:
"
Configure
Host
Path
for
Data"
group
:
"
Storage"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
dataHostPath
label
:
"
Specify
HostPath
for
Data"
schema
:
type
:
hostpath
required
:
true
-
variable
:
dataVolume
-
variable
:
appVolumeMounts
label
:
"
Data
Volume
Defaults
"
label
:
"
Plex
Storage
"
group
:
"
Storage"
group
:
"
Storage"
schema
:
schema
:
type
:
dict
type
:
dict
show_if
:
[[
"
dataHostPathEnabled"
,
"
="
,
false
]]
$ref
:
-
"
normalize/ixVolume"
attrs
:
attrs
:
-
variable
:
mountPath
-
variable
:
transcode
label
:
"
Mount
Path"
label
:
"
Transcode
Volume"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
schema
:
type
:
path
type
:
dict
editable
:
false
attrs
:
default
:
"
/data"
-
variable
:
datasetName
-
variable
:
datasetName
label
:
"
Plex
Transcode
Volume
Dataset
Name"
label
:
"
Data
Dataset
Name"
schema
:
type
:
string
$ref
:
-
"
normalize/ixVolume"
show_if
:
[[
"
hostPathEnabled"
,
"
="
,
false
]]
default
:
"
ix-plex_transcode"
editable
:
false
-
variable
:
mountPath
label
:
"
Plex
Transcode
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
editable
:
false
default
:
"
/transcode"
-
variable
:
hostPathEnabled
label
:
"
Enable
Host
Path
for
Plex
Transcode
Volume"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
hostPath
label
:
"
Host
Path
for
Plex
Transcode
Volume"
schema
:
type
:
hostpath
required
:
true
-
variable
:
data
label
:
"
Data
Volume"
schema
:
schema
:
type
:
string
type
:
dict
default
:
"
ix-plex_data"
attrs
:
editable
:
false
-
variable
:
datasetName
label
:
"
Plex
Data
Volume
Dataset
Name"
-
variable
:
configHostPathEnabled
schema
:
label
:
"
Configure
Host
Path
for
Config"
type
:
string
group
:
"
Storage"
$ref
:
schema
:
-
"
normalize/ixVolume"
type
:
boolean
show_if
:
[[
"
hostPathEnabled"
,
"
="
,
false
]]
default
:
false
default
:
"
ix-plex_data"
show_subquestions_if
:
true
editable
:
false
subquestions
:
-
variable
:
mountPath
-
variable
:
configHostPath
label
:
"
Plex
Data
Mount
Path"
label
:
"
Specify
HostPath
for
Config"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
editable
:
false
default
:
"
/data"
-
variable
:
hostPathEnabled
label
:
"
Enable
Host
Path
for
Plex
Data
Volume"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
hostPath
label
:
"
Host
Path
for
Plex
Data
Volume"
schema
:
type
:
hostpath
required
:
true
-
variable
:
config
label
:
"
Config
Volume"
schema
:
schema
:
type
:
hostpath
type
:
dict
required
:
true
attrs
:
-
variable
:
datasetName
-
variable
:
configVolume
label
:
"
Plex
Config
Volume
Dataset
Name"
label
:
"
Configuration
Volume
Defaults"
schema
:
group
:
"
Storage"
type
:
string
schema
:
$ref
:
type
:
dict
-
"
normalize/ixVolume"
show_if
:
[[
"
configHostPathEnabled"
,
"
="
,
false
]]
show_if
:
[[
"
hostPathEnabled"
,
"
="
,
false
]]
$ref
:
default
:
"
ix-plex_config"
-
"
normalize/ixVolume"
editable
:
false
attrs
:
-
variable
:
mountPath
-
variable
:
mountPath
label
:
"
Plex
Config
Mount
Path"
label
:
"
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
editable
:
false
default
:
"
/config"
-
variable
:
hostPathEnabled
label
:
"
Enable
Host
Path
for
Plex
Config
Volume"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
hostPath
label
:
"
Host
Path
for
Plex
Config
Volume"
schema
:
type
:
hostpath
required
:
true
-
variable
:
shared
label
:
"
Shared
Volume"
schema
:
schema
:
type
:
path
type
:
dict
editable
:
false
attrs
:
default
:
"
/config"
-
variable
:
emptyDir
-
variable
:
datasetName
label
:
"
Temporary
Volume"
label
:
"
Configuration
Dataset
Name"
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"
schema
:
schema
:
type
:
string
type
:
dict
default
:
"
ix-plex_config"
attrs
:
editable
:
false
-
variable
:
emptyDir
label
:
"
Temporary
Volume"
# Specify GPU configuration
schema
:
-
variable
:
gpuConfiguration
type
:
boolean
label
:
"
GPU
Configuration"
default
:
true
group
:
"
Resource
Reservation"
editable
:
false
schema
:
-
variable
:
mountPath
type
:
dict
label
:
"
Plex
Shared
Logs
Mount
Path"
$ref
:
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
-
"
definitions/gpuConfiguration"
schema
:
type
:
path
editable
:
false
default
:
"
/config/Library/Application
Support/Plex
Media
Server/Logs"
test/plex/1.0.1/templates/deployment.yaml
View file @
17966e29
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deployment
kind
:
Deployment
metadata
:
{{
include "common.deployment.metadata" . | nindent 0
}}
name
:
{{
include "common.names.fullname" .
}}
spec
:
{{
include "common.deployment.common_spec" . | nindent 2
}}
labels
:
{{
include "common.labels" . | nindent 4
}}
template
:
{{
include "common.deployment.pod.metadata" . | nindent 4
}}
spec
:
replicas
:
1
revisionHistoryLimit
:
3
strategy
:
type
:
{{
.Values.strategyType
}}
selector
:
matchLabels
:
{{
include "common.labels.selectorLabels" . | nindent 6
}}
template
:
metadata
:
labels
:
{{
include "common.labels.selectorLabels" . | nindent 8
}}
annotations
:
{{
include "common.annotations" . | nindent 8
}}
spec
:
spec
:
{{
- if .Values.hostNetwork
}}
{{
- if .Values.hostNetwork
}}
hostNetwork
:
{{
.Values.hostNetwork
}}
hostNetwork
:
{{
.Values.hostNetwork
}}
...
@@ -22,6 +11,8 @@ spec:
...
@@ -22,6 +11,8 @@ spec:
containers
:
containers
:
-
name
:
{{
.Chart.Name
}}
-
name
:
{{
.Chart.Name
}}
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
{{
include "common.storage.allContainerVolumeMounts" .Values | nindent 10
}}
{{
include "common.containers.gpuConfiguration" .Values | nindent 10
}}
ports
:
ports
:
-
name
:
pms
-
name
:
pms
protocol
:
TCP
protocol
:
TCP
...
@@ -77,28 +68,4 @@ spec:
...
@@ -77,28 +68,4 @@ spec:
initialDelaySeconds
:
5
initialDelaySeconds
:
5
failureThreshold
:
40
failureThreshold
:
40
periodSeconds
:
15
periodSeconds
:
15
volumeMounts
:
{{
include "common.storage.allAppVolumes" .Values | nindent 6
}}
-
name
:
data
mountPath
:
/data
-
name
:
config
mountPath
:
/config
-
name
:
transcode
mountPath
:
/transcode
-
name
:
shared
mountPath
:
/shared
-
name
:
shared-logs
mountPath
:
"
/config/Library/Application
Support/Plex
Media
Server/Logs"
{{
- if .Values.gpuConfiguration
}}
resources
:
limits
:
{{
- toYaml .Values.gpuConfiguration | nindent 14
}}
{{
- end
}}
volumes
:
{{
$emptyDir
:
= .Values.emptyDirVolumes
}}
{{
$vols
:
= list
}}
{{
$vols = mustAppend $vols (dict "name" "data" "emptyDirVolumes" $emptyDir "hostPathEnabled" .Values.dataHostPathEnabled "pathField" .Values.dataHostPath "datasetName" (.Values.dataVolume | default dict).datasetName )
}}
{{
$vols = mustAppend $vols (dict "name" "config" "emptyDirVolumes" $emptyDir "hostPathEnabled" .Values.configHostPathEnabled "pathField" .Values.configHostPath "datasetName" (.Values.configVolume | default dict).datasetName )
}}
{{
$vols = mustAppend $vols (dict "name" "transcode" "emptyDirVolumes" $emptyDir "hostPathEnabled" .Values.transcodeHostPathEnabled "pathField" .Values.transcodeHostPath "datasetName" (.Values.transcodeVolume | default dict).datasetName )
}}
{{
$vols = mustAppend $vols (dict "name" "shared" "emptyDirVolumes" true "hostPathEnabled" false "pathField" nil "datasetName" nil)
}}
{{
$vols = mustAppend $vols (dict "name" "shared-logs" "emptyDirVolumes" true "hostPathEnabled" false "pathField" nil "datasetName" nil)
}}
{{
include "common.storage.volumesConfiguration" (dict "ixVolumes" .Values.ixVolumes "volumes" $vols) | nindent 8
}}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment