fix: use pod ports (9000/9443) for authentik egress, not service ports
This commit is contained in:
@@ -86,15 +86,18 @@ spec:
|
|||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 8080
|
port: 8080
|
||||||
# Allow to IAM (Authentik) for JWKS fetch + API
|
# Allow to IAM (Authentik) for JWKS fetch + API
|
||||||
|
# Authentik pod listens on 9000 (http) and 9443 (https)
|
||||||
|
# Service translates 80→9000, 443→9443
|
||||||
|
# NetworkPolicy matches destination pod port, not service port
|
||||||
- to:
|
- to:
|
||||||
- namespaceSelector:
|
- namespaceSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
kubernetes.io/metadata.name: iam
|
kubernetes.io/metadata.name: iam
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 80
|
port: 9000
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 443
|
port: 9443
|
||||||
# Allow to SQS (queue management service)
|
# Allow to SQS (queue management service)
|
||||||
- to:
|
- to:
|
||||||
- namespaceSelector:
|
- namespaceSelector:
|
||||||
|
|||||||
Reference in New Issue
Block a user