JG-mirror/Kubernetes/Create-manifest-helm/WireGuard-Easy/ingress.yaml

26 lines
599 B
YAML

---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: wg-easy
namespace: wg-easy
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`www.wg-easy.yourdomain.com`) # change me
kind: Rule
services:
- name: wg-easy-web
port: 51821
- match: Host(`wg-easy.yourdomain.com`) # change me
kind: Rule
services:
- name: wg-easy-web
port: 51821
middlewares:
- name: default-headers
tls:
secretName: yourdomain-tls # change me