Files
the-other-dude/infrastructure/helm/templates/wireguard-service.yaml
Jason Staack 491f314b7d feat(helm): add WireGuard deployment and service templates
Privileged deployment with NET_ADMIN, sysctl ip_forward, tun device
mount, and UDP LoadBalancer service on port 51820.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 18:48:02 -05:00

18 lines
561 B
YAML

{{- if .Values.wireguard.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "tod.fullname" . }}-wireguard
labels:
{{- include "tod.componentLabels" (dict "context" . "component" "wireguard") | nindent 4 }}
spec:
type: {{ .Values.wireguard.service.type | default "LoadBalancer" }}
ports:
- name: wireguard
port: {{ .Values.wireguard.service.port }}
targetPort: wireguard
protocol: UDP
selector:
{{- include "tod.componentSelectorLabels" (dict "context" . "component" "wireguard") | nindent 4 }}
{{- end }}