agent-zero: fix fc_dms netpol egress port (8080 = pod targetPort, not svc 80)
NetworkPolicy matches the destination POD port. dms-web svc:80 -> containerPort 8080, so the egress must allow 8080 (the fc-chat rule already allows 80+8080, which is why chat worked and dms timed out). Add 8080 to the fc-dms egress.
This commit is contained in:
@@ -666,8 +666,9 @@ spec:
|
|||||||
- port: 5300
|
- port: 5300
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
# FlowerCore DMS Manager MCP (product-manager fan-out) — in-cluster
|
# FlowerCore DMS Manager MCP (product-manager fan-out) — in-cluster
|
||||||
# dms-web on port 80. Every in-cluster MCP target needs an explicit
|
# dms-web. NetworkPolicy matches the destination POD port: dms-web svc:80
|
||||||
# egress allow (the policy denies private ranges by default).
|
# targets containerPort 8080, so the egress MUST allow 8080 (not the svc
|
||||||
|
# port 80) — same as the fc-chat rule. Allow both for parity.
|
||||||
- to:
|
- to:
|
||||||
- namespaceSelector:
|
- namespaceSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
@@ -675,6 +676,8 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
- port: 8080
|
||||||
|
protocol: TCP
|
||||||
# Allow internet (for kubectl image pull, etc)
|
# Allow internet (for kubectl image pull, etc)
|
||||||
- to:
|
- to:
|
||||||
- ipBlock:
|
- ipBlock:
|
||||||
|
|||||||
Reference in New Issue
Block a user