Clean udp service
This commit is contained in:
@@ -4,38 +4,8 @@ metadata:
|
|||||||
name: {{ include "plex.fullname" . }}-udp
|
name: {{ include "plex.fullname" . }}-udp
|
||||||
labels:
|
labels:
|
||||||
{{- include "plex.labels" . | nindent 4 }}
|
{{- include "plex.labels" . | nindent 4 }}
|
||||||
{{- if .Values.serviceUDP.labels }}
|
|
||||||
{{ toYaml .Values.serviceUDP.labels | indent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.serviceUDP.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{ toYaml . | indent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
spec:
|
||||||
{{- if (or (eq .Values.serviceUDP.type "ClusterIP") (empty .Values.serviceUDP.type)) }}
|
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
{{- if .Values.serviceUDP.clusterIP }}
|
|
||||||
clusterIP: {{ .Values.serviceUDP.clusterIP }}
|
|
||||||
{{end}}
|
|
||||||
{{- else if eq .Values.serviceUDP.type "LoadBalancer" }}
|
|
||||||
type: {{ .Values.serviceUDP.type }}
|
|
||||||
{{- if .Values.serviceUDP.loadBalancerIP }}
|
|
||||||
loadBalancerIP: {{ .Values.serviceUDP.loadBalancerIP }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.serviceUDP.loadBalancerSourceRanges }}
|
|
||||||
loadBalancerSourceRanges:
|
|
||||||
{{ toYaml .Values.serviceUDP.loadBalancerSourceRanges | indent 4 }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- else }}
|
|
||||||
type: {{ .Values.serviceUDP.type }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.serviceUDP.externalIPs }}
|
|
||||||
externalIPs:
|
|
||||||
{{ toYaml .Values.serviceUDP.externalIPs | indent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.serviceUDP.externalTrafficPolicy }}
|
|
||||||
externalTrafficPolicy: {{ .Values.serviceUDP.externalTrafficPolicy }}
|
|
||||||
{{- end }}
|
|
||||||
ports:
|
ports:
|
||||||
- name: plex-dlna-udp
|
- name: plex-dlna-udp
|
||||||
port: 1900
|
port: 1900
|
||||||
|
|||||||
@@ -52,52 +52,11 @@ timezone: "UTC"
|
|||||||
# upgrade strategy type (e.g. Recreate or RollingUpdate)
|
# upgrade strategy type (e.g. Recreate or RollingUpdate)
|
||||||
strategyType: Recreate
|
strategyType: Recreate
|
||||||
|
|
||||||
imagePullSecrets: []
|
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
||||||
podSecurityContext: {}
|
|
||||||
# fsGroup: 2000
|
|
||||||
|
|
||||||
securityContext: {}
|
|
||||||
# capabilities:
|
|
||||||
# drop:
|
|
||||||
# - ALL
|
|
||||||
# readOnlyRootFilesystem: true
|
|
||||||
# runAsNonRoot: true
|
|
||||||
# runAsUser: 1000
|
|
||||||
|
|
||||||
serviceTCP:
|
serviceTCP:
|
||||||
type: NodePort
|
|
||||||
port: 32400
|
port: 32400
|
||||||
## Specify the nodePort value for the LoadBalancer and NodePort service types.
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
|
|
||||||
##
|
|
||||||
# nodePort:
|
|
||||||
## Provide any additional annotations which may be required. This can be used to
|
|
||||||
## set the LoadBalancer service type to internal only.
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
|
|
||||||
##
|
|
||||||
annotations: {}
|
|
||||||
# metallb.universe.tf/allow-shared-ip: plex-svc
|
|
||||||
labels: {}
|
|
||||||
|
|
||||||
serviceUDP:
|
|
||||||
type: ClusterIP
|
|
||||||
## Provide any additional annotations which may be required. This can be used to
|
|
||||||
## set the LoadBalancer service type to internal only.
|
|
||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
|
|
||||||
##
|
|
||||||
annotations: {}
|
|
||||||
# metallb.universe.tf/allow-shared-ip: plex-svc
|
|
||||||
labels: {}
|
|
||||||
## Use loadBalancerIP to request a specific static IP,
|
|
||||||
## otherwise leave blank
|
|
||||||
##
|
|
||||||
loadBalancerIP:
|
|
||||||
# loadBalancerSourceRanges: []
|
|
||||||
## Set the externalTrafficPolicy in the Service to either Cluster or Local
|
|
||||||
# externalTrafficPolicy: Cluster
|
|
||||||
|
|
||||||
plexPreferences:
|
plexPreferences:
|
||||||
# Enable init script that will read all environment variables starting with PLEX_PREFERENCE_
|
# Enable init script that will read all environment variables starting with PLEX_PREFERENCE_
|
||||||
|
|||||||
Reference in New Issue
Block a user