fix: netpol egress to real API server IPs on port 6443 (Cilium)
This commit is contained in:
@@ -31,12 +31,14 @@ spec:
|
|||||||
port: 8080
|
port: 8080
|
||||||
egress:
|
egress:
|
||||||
# Allow Kubernetes API server (ServiceAdapter CRD loader)
|
# Allow Kubernetes API server (ServiceAdapter CRD loader)
|
||||||
|
# Cilium doesn't match ipBlock against ClusterIP VIPs, so we target
|
||||||
|
# the real control-plane endpoint IPs on port 6443.
|
||||||
- to:
|
- to:
|
||||||
- ipBlock:
|
- ipBlock:
|
||||||
cidr: 10.96.0.1/32
|
cidr: 192.168.1.0/24
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 443
|
port: 6443
|
||||||
# Allow DNS
|
# Allow DNS
|
||||||
- to:
|
- to:
|
||||||
- namespaceSelector:
|
- namespaceSelector:
|
||||||
|
|||||||
Reference in New Issue
Block a user