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
bd0a06c0
Commit
bd0a06c0
authored
Dec 08, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly setup persistence values
parent
725ee078
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
130 additions
and
130 deletions
+130
-130
test/plex/2.1.0/questions.yaml
test/plex/2.1.0/questions.yaml
+106
-114
test/plex/2.1.0/templates/_storage.tpl
test/plex/2.1.0/templates/_storage.tpl
+9
-9
test/plex/2.1.0/templates/deployment.yaml
test/plex/2.1.0/templates/deployment.yaml
+12
-0
test/plex/2.1.0/values.yaml
test/plex/2.1.0/values.yaml
+3
-7
No files found.
test/plex/2.1.0/questions.yaml
View file @
bd0a06c0
...
@@ -144,127 +144,119 @@ questions:
...
@@ -144,127 +144,119 @@ questions:
max
:
65535
max
:
65535
default
:
32400
default
:
32400
# Persistence
-
variable
:
transcodeHostPathEnabled
-
variable
:
persistence
label
:
"
Configure
Host
Path
for
Transcode"
label
:
"
Configure
Persistent
Storage"
group
:
"
Storage"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
transcodeHostpath
label
:
"
Specify
HostPath
for
Transcode"
group
:
"
Storage"
schema
:
type
:
hostpath
required
:
true
-
variable
:
transcodeVolume
label
:
"
Configure
iXVolume"
group
:
"
Storage"
schema
:
type
:
dict
show_if
:
[[
"
transcodeHostPathEnabled"
,
"
="
,
false
]]
$ref
:
-
"
normalize/ixVolume"
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
:
"
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
group
:
"
Storage"
subquestions
:
-
variable
:
dataHostPath
label
:
"
Specify
HostPath
for
Data"
schema
:
type
:
hostpath
required
:
true
-
variable
:
dataVolume
label
:
"
Configure
data
iXVolume"
group
:
"
Storage"
group
:
"
Storage"
schema
:
schema
:
type
:
dict
type
:
dict
show_if
:
[[
"
dataHostPathEnabled"
,
"
="
,
false
]]
$ref
:
-
"
normalize/ixVolume"
attrs
:
attrs
:
-
variable
:
transcode
-
variable
:
mountPath
label
:
"
Configure
Transcode
Storage"
label
:
"
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
editable
:
false
default
:
"
/data"
-
variable
:
datasetName
label
:
"
Dataset
Name"
schema
:
type
:
string
default
:
"
ix-plex_data"
editable
:
false
-
variable
:
configHostPathEnabled
label
:
"
Configure
Host
Path
for
Config"
group
:
"
Storage"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
configHostPath
label
:
"
Specify
HostPath
for
Config"
group
:
"
Storage"
schema
:
schema
:
type
:
dict
type
:
hostpath
attrs
:
required
:
true
-
variable
:
hostPathEnabled
label
:
"
Configure
Host
Path
for
Transcode"
-
variable
:
configVolume
schema
:
label
:
"
Configure
iXVolume"
type
:
boolean
group
:
"
Storage"
default
:
false
schema
:
show_subquestions_if
:
true
type
:
dict
subquestions
:
show_if
:
[[
"
configHostPathEnabled"
,
"
="
,
false
]]
-
variable
:
hostPath
$ref
:
label
:
"
Specify
HostPath
for
Transcode"
-
"
normalize/ixVolume"
schema
:
attrs
:
type
:
hostpath
-
variable
:
mountPath
required
:
true
label
:
"
Mount
Path"
-
variable
:
volume
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
label
:
"
Configure
iXVolume"
schema
:
type
:
dict
show_if
:
[[
"
hostPathEnabled"
,
"
="
,
false
]]
$ref
:
-
"
normalize/ixVolume"
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
:
"
Dataset
Name"
schema
:
type
:
string
default
:
"
ix-plex_transcode"
editable
:
false
-
variable
:
data
label
:
"
Configure
Data
Storage"
schema
:
schema
:
type
:
dict
type
:
path
attrs
:
editable
:
false
-
variable
:
hostPathEnabled
default
:
"
/config"
label
:
"
Configure
Host
Path
for
Data"
-
variable
:
datasetName
schema
:
label
:
"
Dataset
Name"
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
hostPath
label
:
"
Specify
HostPath
for
Data"
schema
:
type
:
hostpath
required
:
true
-
variable
:
volume
label
:
"
Configure
iXVolume"
schema
:
type
:
dict
show_if
:
[[
"
hostPathEnabled"
,
"
="
,
false
]]
$ref
:
-
"
normalize/ixVolume"
attrs
:
-
variable
:
mountPath
label
:
"
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
editable
:
false
default
:
"
/data"
-
variable
:
datasetName
label
:
"
Dataset
Name"
schema
:
type
:
string
default
:
"
ix-plex_data"
editable
:
false
-
variable
:
config
label
:
"
Configure
Config
Storage"
schema
:
schema
:
type
:
dict
type
:
string
attrs
:
default
:
"
ix-plex_config"
-
variable
:
hostPathEnabled
editable
:
false
label
:
"
Configure
Host
Path
for
Config"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
hostPath
label
:
"
Specify
HostPath
for
Config"
schema
:
type
:
hostpath
required
:
true
-
variable
:
volume
label
:
"
Configure
iXVolume"
schema
:
type
:
dict
show_if
:
[[
"
hostPathEnabled"
,
"
="
,
false
]]
$ref
:
-
"
normalize/ixVolume"
attrs
:
-
variable
:
mountPath
label
:
"
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
editable
:
false
default
:
"
/config"
-
variable
:
datasetName
label
:
"
Dataset
Name"
schema
:
type
:
string
default
:
"
ix-plex_config"
editable
:
false
# Specify GPU configuration
# Specify GPU configuration
-
variable
:
gpuConfiguration
-
variable
:
gpuConfiguration
...
...
test/plex/2.1.0/templates/_storage.tpl
View file @
bd0a06c0
...
@@ -15,10 +15,10 @@ Retrieve host path for transcode
...
@@ -15,10 +15,10 @@ Retrieve host path for transcode
Let
'
s
please
remove
the
redundancy
Let
'
s
please
remove
the
redundancy
*/
}
}
*/
}
}
{{- define "configuredHostPathTranscode" -}}
{{- define "configuredHostPathTranscode" -}}
{{- if .Values.
persistence.transcode.h
ostPathEnabled -}}
{{- if .Values.
transcodeH
ostPathEnabled -}}
{{- .Values.
persistence.transcode.h
ostPath -}}
{{- .Values.
transcodeH
ostPath -}}
{{- else -}}
{{- else -}}
{{- $volDict := dict "datasetName" $.Values.
persistence.transcode.v
olume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- $volDict := dict "datasetName" $.Values.
transcodeV
olume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
...
@@ -28,10 +28,10 @@ Retrieve host path for data
...
@@ -28,10 +28,10 @@ Retrieve host path for data
Let
'
s
please
remove
the
redundancy
Let
'
s
please
remove
the
redundancy
*/
}
}
*/
}
}
{{- define "configuredHostPathData" -}}
{{- define "configuredHostPathData" -}}
{{- if .Values.
persistence.data.h
ostPathEnabled -}}
{{- if .Values.
dataH
ostPathEnabled -}}
{{- .Values.
persistence.data.h
ostPath -}}
{{- .Values.
dataH
ostPath -}}
{{- else -}}
{{- else -}}
{{- $volDict := dict "datasetName" $.Values.
persistence.data.v
olume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- $volDict := dict "datasetName" $.Values.
dataV
olume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
...
@@ -41,10 +41,10 @@ Retrieve host path for transcode
...
@@ -41,10 +41,10 @@ Retrieve host path for transcode
Let
'
s
please
remove
the
redundancy
Let
'
s
please
remove
the
redundancy
*/
}
}
*/
}
}
{{- define "configuredHostPathConfig" -}}
{{- define "configuredHostPathConfig" -}}
{{- if .Values.
persistence.config.h
ostPathEnabled -}}
{{- if .Values.
configH
ostPathEnabled -}}
{{- .Values.
persistence.config.h
ostPath -}}
{{- .Values.
configH
ostPath -}}
{{- else -}}
{{- else -}}
{{- $volDict := dict "datasetName" $.Values.
persistence.config.v
olume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- $volDict := dict "datasetName" $.Values.
configV
olume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
test/plex/2.1.0/templates/deployment.yaml
View file @
bd0a06c0
...
@@ -143,14 +143,26 @@ spec:
...
@@ -143,14 +143,26 @@ spec:
{{
- end
}}
{{
- end
}}
volumes
:
volumes
:
-
name
:
data
-
name
:
data
{{
- if .Values.emptyDirVolumes
}}
emptyDir
:
{}
{{
- else
}}
hostPath
:
hostPath
:
path
:
{{
template "configuredHostPathData" .
}}
path
:
{{
template "configuredHostPathData" .
}}
{{
- end
}}
-
name
:
config
-
name
:
config
{{
- if .Values.emptyDirVolumes
}}
emptyDir
:
{}
{{
- else
}}
hostPath
:
hostPath
:
path
:
{{
template "configuredHostPathConfig" .
}}
path
:
{{
template "configuredHostPathConfig" .
}}
{{
- end
}}
-
name
:
transcode
-
name
:
transcode
{{
- if .Values.emptyDirVolumes
}}
emptyDir
:
{}
{{
- else
}}
hostPath
:
hostPath
:
path
:
{{
template "configuredHostPathTranscode" .
}}
path
:
{{
template "configuredHostPathTranscode" .
}}
{{
- end
}}
-
name
:
shared
-
name
:
shared
emptyDir
:
{}
emptyDir
:
{}
-
name
:
shared-logs
-
name
:
shared-logs
...
...
test/plex/2.1.0/values.yaml
View file @
bd0a06c0
...
@@ -57,13 +57,9 @@ plexServiceTCP:
...
@@ -57,13 +57,9 @@ plexServiceTCP:
hostNetwork
:
false
hostNetwork
:
false
persistence
:
transcodeHostPathEnabled
:
false
transcode
:
dataHostPathEnabled
:
false
hostPathEnabled
:
false
configHostPathEnabled
:
false
data
:
hostPathEnabled
:
false
config
:
hostPathEnabled
:
false
proxy
:
proxy
:
# This allows to set a proxy environment variable, which PMS uses to fetch the token and assets like movie cover
# This allows to set a proxy environment variable, which PMS uses to fetch the token and assets like movie cover
...
...
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