JG-mirror/Pihole/Kubernetes/ingress.yaml
2024-07-08 11:19:54 +01:00

24 lines
491 B
YAML

---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: pihole
namespace: pihole
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`pihole.yourdomain.co.uk`)
kind: Rule
services:
- name: pihole
port: 80
middlewares:
- name: default-headers
- name: dashboard-redirect
- name: dashboard-prefix
tls:
secretName: yourdomain-tls