fix: update white-listing annotation

This commit is contained in:
2025-06-22 08:33:29 +02:00
parent 561c620f98
commit 383477822a
141 changed files with 1854 additions and 28 deletions
@@ -0,0 +1,13 @@
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-mail-egress
namespace: postfix
spec:
description: Allow mailserver to send mails to world
egress:
- toEntities:
- world
endpointSelector:
matchLabels:
app: smtp-relay
@@ -0,0 +1,21 @@
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-mail-ingress
namespace: postfix
spec:
description: Allow all services in cluster to send mail
endpointSelector:
matchLabels:
app: smtp-relay
ingress:
- fromEndpoints:
- matchExpressions:
- key: io.kubernetes.pod.namespace
operator: Exists
toPorts:
- ports:
- port: "25"
protocol: TCP
- port: "587"
protocol: TCP
@@ -0,0 +1,18 @@
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-prometheus-metrics
namespace: postfix
spec:
description: 'Allow prometheus metrics '
endpointSelector:
matchLabels:
app: smtp-relay
ingress:
- fromEndpoints:
- matchLabels:
io.kubernetes.pod.namespace: prometheus
toPorts:
- ports:
- port: "9154"
protocol: TCP