update default deny
Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
68bebdae57
commit
bfe8435665
21 changed files with 470 additions and 235 deletions
28
platform/default-network-policies/kube-system-baseline.yaml
Normal file
28
platform/default-network-policies/kube-system-baseline.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
apiVersion: cilium.io/v2
|
||||
kind: CiliumNetworkPolicy
|
||||
metadata:
|
||||
name: kube-system-baseline
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector: {}
|
||||
|
||||
ingress:
|
||||
- fromEntities:
|
||||
- cluster
|
||||
- host
|
||||
- remote-node
|
||||
|
||||
egress:
|
||||
- toEntities:
|
||||
- kube-apiserver
|
||||
- cluster
|
||||
|
||||
- toEndpoints:
|
||||
- matchLabels:
|
||||
k8s:k8s-app: kube-dns
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "53"
|
||||
protocol: UDP
|
||||
- port: "53"
|
||||
protocol: TCP
|
||||
Loading…
Add table
Add a link
Reference in a new issue