summaryrefslogtreecommitdiff
path: root/f3s/pihole
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-07 22:32:29 +0200
committerPaul Buetow <paul@buetow.org>2026-02-07 22:32:29 +0200
commit3a0c2b20412ceae3150359416f69a586c4949bc6 (patch)
treea3a67e640dcd7742db8f3b7d4ee3a0e65f73462b /f3s/pihole
parentf204a7c80c04fabef7aaf130c2154c0655f6e2f1 (diff)
fix(pihole): add Traefik middleware to redirect root to /admin/
Pi-hole's web interface returns 403 Forbidden when accessed via the root path. Add a Traefik middleware that redirects requests to the root URL to /admin/ path where the web interface is accessible. Also add the pihole ArgoCD application manifest. Co-authored-by: Cursor <cursoragent@cursor.com>
Diffstat (limited to 'f3s/pihole')
-rw-r--r--f3s/pihole/helm-chart/templates/ingress.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/f3s/pihole/helm-chart/templates/ingress.yaml b/f3s/pihole/helm-chart/templates/ingress.yaml
index 20dfc25..eedd0c5 100644
--- a/f3s/pihole/helm-chart/templates/ingress.yaml
+++ b/f3s/pihole/helm-chart/templates/ingress.yaml
@@ -1,3 +1,14 @@
+apiVersion: traefik.io/v1alpha1
+kind: Middleware
+metadata:
+ name: pihole-redirect-admin
+ namespace: services
+spec:
+ redirectRegex:
+ regex: ^https?://[^/]+/?$
+ replacement: /admin/
+ permanent: false
+---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
@@ -6,6 +17,7 @@ metadata:
annotations:
spec.ingressClassName: traefik
traefik.ingress.kubernetes.io/router.entrypoints: web
+ traefik.ingress.kubernetes.io/router.middlewares: services-pihole-redirect-admin@kubernetescrd
spec:
rules:
- host: pihole.f3s.buetow.org
@@ -28,6 +40,7 @@ metadata:
annotations:
spec.ingressClassName: traefik
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
+ traefik.ingress.kubernetes.io/router.middlewares: services-pihole-redirect-admin@kubernetescrd
spec:
tls:
- hosts: