wip: unify sys and apps
This commit is contained in:
+13
@@ -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
|
||||
+21
@@ -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
|
||||
+18
@@ -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
|
||||
Reference in New Issue
Block a user