From ff68c8cd24baef66ebb038d237b8f501c84edde5 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Fri, 6 Sep 2024 16:09:25 +0200 Subject: Add script and configuration for Kubernetes --- k8s/network-policy.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 k8s/network-policy.yaml (limited to 'k8s/network-policy.yaml') diff --git a/k8s/network-policy.yaml b/k8s/network-policy.yaml new file mode 100644 index 0000000..2af8a27 --- /dev/null +++ b/k8s/network-policy.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: allow-cas-postgres +spec: + podSelector: + matchLabels: + app: cas + policyTypes: + - Ingress + ingress: + - from: + - podSelector: + matchLabels: + app: postgres + ports: + - protocol: TCP + port: 5432 -- cgit v1.2.3-18-g5258