You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
757 B
YAML
35 lines
757 B
YAML
{{- $fullName := include "wg-access-server.fullname" . -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ $fullName }}-web
|
|
labels:
|
|
{{- include "wg-access-server.labels" . | nindent 4 }}
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 80
|
|
targetPort: http
|
|
protocol: TCP
|
|
name: http
|
|
selector:
|
|
{{- include "wg-access-server.selectorLabels" . | nindent 4 }}
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ $fullName }}-wireguard
|
|
labels:
|
|
{{- include "wg-access-server.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.wireguard.service.type }}
|
|
ports:
|
|
- port: 51820
|
|
targetPort: wireguard
|
|
protocol: UDP
|
|
name: wireguard
|
|
selector:
|
|
{{- include "wg-access-server.selectorLabels" . | nindent 4 }}
|