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 }}