diff --git a/infrastructure/network-policies/forgejo/base-egress.yaml b/infrastructure/network-policies/forgejo/base-egress.yaml new file mode 100644 index 0000000..794cc95 --- /dev/null +++ b/infrastructure/network-policies/forgejo/base-egress.yaml @@ -0,0 +1,20 @@ +apiVersion: cilium.io/v2 +kind: CiliumNetworkPolicy +metadata: + name: apps-base-egress + namespace: forgejo +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 diff --git a/infrastructure/network-policies/openproject/base-egress.yaml b/infrastructure/network-policies/openproject/base-egress.yaml new file mode 100644 index 0000000..8196264 --- /dev/null +++ b/infrastructure/network-policies/openproject/base-egress.yaml @@ -0,0 +1,20 @@ +apiVersion: cilium.io/v2 +kind: CiliumNetworkPolicy +metadata: + name: apps-base-egress + namespace: openproject +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 diff --git a/infrastructure/network-policies/pgadmin/base-egress.yaml b/infrastructure/network-policies/pgadmin/base-egress.yaml new file mode 100644 index 0000000..6ab05a7 --- /dev/null +++ b/infrastructure/network-policies/pgadmin/base-egress.yaml @@ -0,0 +1,20 @@ +apiVersion: cilium.io/v2 +kind: CiliumNetworkPolicy +metadata: + name: apps-base-egress + namespace: pgadmin +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 diff --git a/infrastructure/network-policies/platform-services/base-egress.yaml b/infrastructure/network-policies/platform-services/base-egress.yaml new file mode 100644 index 0000000..e3a4ffc --- /dev/null +++ b/infrastructure/network-policies/platform-services/base-egress.yaml @@ -0,0 +1,20 @@ +apiVersion: cilium.io/v2 +kind: CiliumNetworkPolicy +metadata: + name: apps-base-egress + namespace: platform-services +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