constellation/dev-docs/howto/vpn/helm/templates/service.yaml
3u13r 0564e4ebb4
dev-docs: add on-prem terraform to vpn setup (#2619)
* vpn: add fake-on-prem infra

* dev-docs: move vpn helm
2023-11-23 16:13:37 +01:00

27 lines
586 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "..fullname" . }}-lb
labels:
{{- include "..labels" . | nindent 4 }}
spec:
type: LoadBalancer
selector:
{{- include "..selectorLabels" . | nindent 4 }}
component: frontend
externalTrafficPolicy: Local
ports:
{{- if .Values.ipsec.enabled }}
- name: isakmp
protocol: UDP
port: 500
- name: ipsec-nat-t
protocol: UDP
port: 4500
{{- end }}
{{- if .Values.wireguard.enabled }}
- name: wg
protocol: UDP
port: {{ .Values.wireguard.port }}
{{- end }}