fix: route k8s API through nginx proxy, drop CiliumNetworkPolicy
This commit is contained in:
@@ -30,9 +30,14 @@ spec:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
egress:
|
||||
# Kubernetes API server egress is handled by CiliumNetworkPolicy
|
||||
# (k8s/cilium-netpol.yaml) using toEntities: kube-apiserver.
|
||||
# Standard NetworkPolicy ipBlock doesn't work with Cilium for service VIPs.
|
||||
# Kubernetes API server (via kube-api-proxy nginx in same namespace)
|
||||
- to:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
app: kube-api-proxy
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8443
|
||||
# Allow DNS
|
||||
- to:
|
||||
- namespaceSelector:
|
||||
|
||||
Reference in New Issue
Block a user