Rename base Cilium egress policies by namespace

This commit is contained in:
Arvind Prabhakar 2026-06-30 23:05:39 +00:00
commit cab45b8b79
4 changed files with 19 additions and 4 deletions

View file

@ -1,13 +1,18 @@
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: apps-base-egress
name: forgejo-base-egress
namespace: forgejo
spec:
endpointSelector: {}
egress:
# Allow access to the Kubernetes API
- toEntities:
- kube-apiserver
# Allow DNS lookups
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: kube-system
@ -18,3 +23,13 @@ spec:
protocol: UDP
- port: "53"
protocol: TCP
# Allow Forgejo to talk to PostgreSQL
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: platform-services
app: platform-postgres
toPorts:
- ports:
- port: "5432"
protocol: TCP

View file

@ -1,7 +1,7 @@
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: apps-base-egress
name: openproject-base-egress
namespace: openproject
spec:
endpointSelector: {}

View file

@ -1,7 +1,7 @@
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: apps-base-egress
name: pgadmin-base-egress
namespace: pgadmin
spec:
endpointSelector: {}

View file

@ -1,7 +1,7 @@
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: apps-base-egress
name: platform-services-base-egress
namespace: platform-services
spec:
endpointSelector: {}