Cleanup, fixed broken traefik middleware for auth

This commit is contained in:
Nik Afiq 2026-03-13 23:11:53 +09:00
parent 83f46c9748
commit 6a665449d7
3 changed files with 22 additions and 0 deletions

View File

@ -10,6 +10,12 @@ spec:
forwardAuth:
address: http://authentik-proxy-outpost.authentik.svc.cluster.local:9000/outpost.goauthentik.io/auth/traefik
trustForwardHeader: true
authRequestHeaders:
- Cookie
- X-Forwarded-Host
- X-Forwarded-Proto
- X-Forwarded-Uri
- X-Forwarded-For
authResponseHeaders:
- X-authentik-username
- X-authentik-groups

View File

@ -0,0 +1,15 @@
# Apply: kubectl apply -f manifests/core/coredns-custom.yaml
# Delete: kubectl delete -f manifests/core/coredns-custom.yaml
# Description: CoreDNS custom ConfigMap to forward .home.arpa DNS queries to Pihole at 192.168.7.77.
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns-custom
namespace: kube-system
data:
home.arpa.server: |
home.arpa:53 {
errors
cache 30
forward . 192.168.7.77
}

View File

@ -9,6 +9,7 @@ metadata:
spec:
entryPoints:
- websecure
- traefik
routes:
- match: Host(`traefik.home.arpa`) && PathPrefix(`/outpost.goauthentik.io`)
kind: Rule