apiVersion: v1
kind: Service
metadata:
  name: {{ include "wg-access-server-helm.fullname" . }}
  labels:
    {{- include "wg-access-server-helm.labels" . | nindent 4 }}
spec:
  type: {{ .Values.service.type }}
  ports:
    - port: 80
      targetPort: http
      protocol: TCP
      name: http
    - port: 51820
      targetPort: wireguard
      protocol: UDP
      name: wireguard
  selector:
    {{- include "wg-access-server-helm.selectorLabels" . | nindent 4 }}
