Added base Cilium egress policy for apps namespace
This commit is contained in:
parent
ce2baccf0f
commit
1acea43a6d
1 changed files with 20 additions and 0 deletions
20
infrastructure/network-policies/apps/base-egress.yaml
Normal file
20
infrastructure/network-policies/apps/base-egress.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
apiVersion: cilium.io/v2
|
||||||
|
kind: CiliumNetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: apps-base-egress
|
||||||
|
namespace: apps
|
||||||
|
spec:
|
||||||
|
endpointSelector: {}
|
||||||
|
egress:
|
||||||
|
- toEntities:
|
||||||
|
- kube-apiserver
|
||||||
|
- toEndpoints:
|
||||||
|
- matchLabels:
|
||||||
|
k8s:io.kubernetes.pod.namespace: kube-system
|
||||||
|
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