apiVersion: cilium.io/v2 kind: CiliumNetworkPolicy metadata: name: stalwart namespace: stalwart spec: endpointSelector: matchLabels: app.kubernetes.io/name: stalwart app.kubernetes.io/instance: stalwart ingress: - fromEntities: - host toPorts: - ports: - port: "8080" protocol: TCP - 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: - ingress toPorts: - ports: - port: "8080" protocol: TCP - fromEndpoints: - matchLabels: k8s:io.kubernetes.pod.namespace: kube-system gateway.networking.k8s.io/gateway-name: gateway-internal 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: 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 - toFQDNs: - matchName: cdn.jsdelivr.net - matchName: data.phishtank.com - matchName: disposable.github.io - matchName: github.com - matchName: gist.githubusercontent.com - matchName: openphish.com - matchName: release-assets.githubusercontent.com toPorts: - ports: - port: "443" protocol: TCP - toFQDNs: - matchName: smtp.email.ap-osaka-1.oci.oraclecloud.com toPorts: - ports: - port: "587" protocol: TCP