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
db0ffe9d
Commit
db0ffe9d
authored
Dec 07, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow using host network for plex
parent
4524d88b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
27 deletions
+6
-27
test/plex/2.1.0/templates/deployment.yaml
test/plex/2.1.0/templates/deployment.yaml
+3
-0
test/plex/2.1.0/templates/service-tcp.yaml
test/plex/2.1.0/templates/service-tcp.yaml
+3
-26
test/plex/2.1.0/values.yaml
test/plex/2.1.0/values.yaml
+0
-1
No files found.
test/plex/2.1.0/templates/deployment.yaml
View file @
db0ffe9d
...
...
@@ -85,6 +85,9 @@ spec:
-
name
:
pms
protocol
:
TCP
containerPort
:
32400
{{
- if .Values.hostNetwork
}}
hostPort
:
{{
.Values.serviceTCP.port
}}
{{
- end
}}
-
name
:
plex-dlna
protocol
:
TCP
containerPort
:
32469
...
...
test/plex/2.1.0/templates/service-tcp.yaml
View file @
db0ffe9d
{{
- if eq .Values.hostNetwork false
}}
apiVersion
:
v1
kind
:
Service
metadata
:
...
...
@@ -12,38 +13,13 @@ metadata:
{{
toYaml . | indent 4
}}
{{
- end
}}
spec
:
{{
- if (or (eq .Values.serviceTCP.type "ClusterIP") (empty .Values.serviceTCP.type))
}}
type
:
ClusterIP
{{
- if .Values.serviceTCP.clusterIP
}}
clusterIP
:
{{
.Values.serviceTCP.clusterIP
}}
{{
end
}}
{{
- else if eq .Values.serviceTCP.type "LoadBalancer"
}}
type
:
{{
.Values.serviceTCP.type
}}
{{
- if .Values.serviceTCP.loadBalancerIP
}}
loadBalancerIP
:
{{
.Values.serviceTCP.loadBalancerIP
}}
{{
- end
}}
{{
- if .Values.serviceTCP.loadBalancerSourceRanges
}}
loadBalancerSourceRanges
:
{{
toYaml .Values.serviceTCP.loadBalancerSourceRanges | indent 4
}}
{{
- end -
}}
{{
- else
}}
type
:
{{
.Values.serviceTCP.type
}}
{{
- end
}}
{{
- if .Values.serviceTCP.externalIPs
}}
externalIPs
:
{{
toYaml .Values.serviceTCP.externalIPs | indent 4
}}
{{
- end
}}
{{
- if .Values.serviceTCP.externalTrafficPolicy
}}
externalTrafficPolicy
:
{{
.Values.serviceTCP.externalTrafficPolicy
}}
{{
- end
}}
type
:
NodePort
ports
:
-
name
:
pms
port
:
{{
.Values.serviceTCP.port
}}
protocol
:
TCP
targetPort
:
pms
{{
if (and (eq .Values.serviceTCP.type "NodePort") (not (empty .Values.serviceTCP.nodePort)))
}}
nodePort
:
{{
.Values.serviceTCP.nodePort
}}
{{
end
}}
-
name
:
http
port
:
80
targetPort
:
pms
...
...
@@ -55,3 +31,4 @@ spec:
targetPort
:
plex-dlna
selector
:
{{
- include "plex.selectorLabels" . | nindent 4
}}
{{
- end
}}
test/plex/2.1.0/values.yaml
View file @
db0ffe9d
...
...
@@ -68,7 +68,6 @@ securityContext: {}
# runAsUser: 1000
serviceTCP
:
enabled
:
true
type
:
NodePort
port
:
32400
## Specify the nodePort value for the LoadBalancer and NodePort service types.
...
...
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