mirror of
https://github.com/truenas/charts.git
synced 2026-11-17 22:59:08 +00:00
Properly use host network when configured
This commit is contained in:
1 parent
8da36972d8
commit
36eee5eccb
4 files changed
+36
-93
No files matched your search
@@ -32,7 +32,7 @@ spec:
|
||||
protocol: TCP
|
||||
containerPort: 32400
|
||||
{{- if .Values.hostNetwork }}
|
||||
hostPort: {{ .Values.serviceTCP.port }}
|
||||
hostPort: {{ .Values.plexServiceTCP.port }}
|
||||
{{- end }}
|
||||
- name: plex-dlna
|
||||
protocol: TCP
|
||||
@@ -110,21 +110,21 @@ spec:
|
||||
httpGet:
|
||||
path: /identity
|
||||
port: 32400
|
||||
failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
|
||||
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
|
||||
failureThreshold: 5
|
||||
periodSeconds: 15
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /identity
|
||||
port: 32400
|
||||
failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
|
||||
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
|
||||
failureThreshold: 5
|
||||
periodSeconds: 15
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /identity
|
||||
port: 32400
|
||||
initialDelaySeconds: {{ .Values.probes.startup.initialDelaySeconds }}
|
||||
failureThreshold: {{ .Values.probes.startup.failureThreshold }}
|
||||
periodSeconds: {{ .Values.probes.startup.periodSeconds }}
|
||||
initialDelaySeconds: 5
|
||||
failureThreshold: 40
|
||||
periodSeconds: 15
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
@@ -136,12 +136,6 @@ spec:
|
||||
mountPath: /shared
|
||||
- name: shared-logs
|
||||
mountPath: "/config/Library/Application Support/Plex Media Server/Logs"
|
||||
{{- if .Values.plexPreferences.enabled }}
|
||||
- name: {{ .Values.plexPreferences.volume.name }}
|
||||
mountPath: {{ .Values.plexPreferences.volume.mountPath }}
|
||||
subPath: {{ .Values.plexPreferences.volume.subPath }}
|
||||
{{- end }}
|
||||
##### VOLUMES START #####
|
||||
volumes:
|
||||
- name: data
|
||||
hostPath:
|
||||
@@ -156,10 +150,3 @@ spec:
|
||||
emptyDir: {}
|
||||
- name: shared-logs
|
||||
emptyDir: {}
|
||||
{{- if .Values.plexPreferences.enabled }}
|
||||
- name: {{ .Values.plexPreferences.volume.name }}
|
||||
configMap:
|
||||
name: {{ .Values.plexPreferences.configmap.name }}
|
||||
defaultMode: {{ .Values.plexPreferences.volume.defaultMode }}
|
||||
{{- end }}
|
||||
##### VOLUMES END #####
|
||||
@@ -1,25 +1,27 @@
|
||||
{{- if eq .Values.hostNetwork false }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
{{- if .Values.hostNetwork }}
|
||||
name: {{ include "plex.fullname" . }}-tcp-cluster-ip
|
||||
{{- else }}
|
||||
name: {{ include "plex.fullname" . }}-tcp
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "plex.labels" . | nindent 4 }}
|
||||
{{- if .Values.serviceTCP.labels }}
|
||||
{{ toYaml .Values.serviceTCP.labels | indent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.serviceTCP.annotations }}
|
||||
annotations:
|
||||
{{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.hostNetwork }}
|
||||
type: ClusterIP
|
||||
{{- else }}
|
||||
type: NodePort
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: pms
|
||||
port: {{ .Values.serviceTCP.port }}
|
||||
port: {{ .Values.plexServiceTCP.port }}
|
||||
protocol: TCP
|
||||
targetPort: pms
|
||||
nodePort: {{.Values.serviceTCP.nodePort}}
|
||||
{{- if eq .Values.hostNetwork false }}
|
||||
nodePort: {{.Values.plexServiceTCP.port}}
|
||||
{{- end }}
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: pms
|
||||
@@ -31,4 +33,3 @@ spec:
|
||||
targetPort: plex-dlna
|
||||
selector:
|
||||
{{- include "plex.selectorLabels" . | nindent 4 }}
|
||||
{{- end }}
|
||||
Reference in new issue
Block a user