---
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-web
          port: 80
      middlewares:
        - name: default-headers
        - name: dashboard-redirect
        - name: dashboard-prefix

  tls:
    secretName: yourdomain-tls
