summaryrefslogtreecommitdiff
path: root/yaml/network-policy.yaml
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-09-15 16:11:14 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-09-15 16:11:14 +0200
commit6921533ab3cb09b629b77ef5a531d59cbba5c4d9 (patch)
tree5bc74dfaa913c8db9d909af336e139f1630d4ce3 /yaml/network-policy.yaml
init repo
Diffstat (limited to 'yaml/network-policy.yaml')
-rw-r--r--yaml/network-policy.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/yaml/network-policy.yaml b/yaml/network-policy.yaml
new file mode 100644
index 0000000..2af8a27
--- /dev/null
+++ b/yaml/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