90 lines
2.4 KiB
YAML
90 lines
2.4 KiB
YAML
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: stalwart-bootstrap
|
||
|
|
namespace: stalwart
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/name: stalwart-bootstrap
|
||
|
|
app.kubernetes.io/instance: stalwart
|
||
|
|
ingress:
|
||
|
|
- fromEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: stalwart
|
||
|
|
app.kubernetes.io/name: stalwart-controller
|
||
|
|
app.kubernetes.io/instance: stalwart
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8080"
|
||
|
|
protocol: TCP
|
||
|
|
- fromEntities:
|
||
|
|
- host
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8080"
|
||
|
|
protocol: TCP
|
||
|
|
egress:
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: postgres
|
||
|
|
cnpg.io/cluster: main
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "5432"
|
||
|
|
protocol: TCP
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: dragonfly
|
||
|
|
app.kubernetes.io/name: dragonfly
|
||
|
|
app: stalwart
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "6379"
|
||
|
|
protocol: TCP
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: versitygw
|
||
|
|
app.kubernetes.io/name: versitygw
|
||
|
|
app.kubernetes.io/instance: versitygw
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "7070"
|
||
|
|
protocol: TCP
|
||
|
|
- toCIDR:
|
||
|
|
- 10.66.127.81/32
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "443"
|
||
|
|
protocol: TCP
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: stalwart
|
||
|
|
app.kubernetes.io/name: stalwart-controller
|
||
|
|
app.kubernetes.io/instance: stalwart
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "9090"
|
||
|
|
protocol: TCP
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: kube-system
|
||
|
|
k8s-app: kube-dns
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "53"
|
||
|
|
protocol: UDP
|
||
|
|
- port: "53"
|
||
|
|
protocol: TCP
|
||
|
|
rules:
|
||
|
|
dns:
|
||
|
|
- matchPattern: "*"
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: zitadel
|
||
|
|
app.kubernetes.io/name: zitadel-oidc-internal
|
||
|
|
app.kubernetes.io/instance: zitadel
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8443"
|
||
|
|
protocol: TCP
|