diff --git a/infrastructure/network-policies/apps/base-egress.yaml b/infrastructure/network-policies/apps/base-egress.yaml new file mode 100644 index 0000000..d631529 --- /dev/null +++ b/infrastructure/network-policies/apps/base-egress.yaml @@ -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