diff options
author | Aaditya Dhruv <[email protected]> | 2025-04-22 17:17:31 -0500 |
---|---|---|
committer | Aaditya Dhruv <[email protected]> | 2025-05-01 20:19:54 -0500 |
commit | 67bed55531276f019a9da0099a598b5cc263a3e6 (patch) | |
tree | 10e873044c1fd831776d797ee289ad2685de058f | |
parent | 55298a51cb0cc5e68c5a43869f2f32b899d3a622 (diff) |
Update PiHole Role
Updated PiHole ingress to redirect to the admin page correctly
-rw-r--r-- | roles/pihole/files/pihole/templates/ingress.yaml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/pihole/files/pihole/templates/ingress.yaml b/roles/pihole/files/pihole/templates/ingress.yaml index 8e84845..b5af48e 100644 --- a/roles/pihole/files/pihole/templates/ingress.yaml +++ b/roles/pihole/files/pihole/templates/ingress.yaml @@ -1,9 +1,22 @@ +--- +apiVersion: traefik.io/v1alpha1 +kind: Middleware +metadata: + name: prefix-admin-pihole + namespace: default +spec: + redirectRegex: + regex: "^https?://dns.home/$" + replacement: "https://dns.home/admin" + permanent: true +--- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: pihole annotations: cert-manager.io/cluster-issuer: "ca-issuer" + traefik.ingress.kubernetes.io/router.middlewares: default-prefix-admin-pihole@kubernetescrd spec: ingressClassName: traefik tls: |