softplayer-apps/charts/openvpn-xor/templates/service.yaml

19 lines
558 B
YAML
Raw Permalink Normal View History

2024-07-13 20:24:41 +00:00
apiVersion: v1
kind: Service
metadata:
name: {{ include "chart.fullname" . }}
labels:
{{- include "chart.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
{{- if .Values.service.nodePort }}
nodePort: {{ int .Values.service.nodePort }}
{{- end}}
targetPort: {{ .Values.service.port | default 1194 }}
protocol: {{ .Values.service.protocol | default "UDP" | quote }}
name: openvpn-xor
selector:
{{- include "chart.selectorLabels" . | nindent 4 }}