diff options
author | Santo Cariotti <santo@dcariotti.me> | 2024-09-15 16:11:14 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2024-09-15 16:11:14 +0200 |
commit | 6921533ab3cb09b629b77ef5a531d59cbba5c4d9 (patch) | |
tree | 5bc74dfaa913c8db9d909af336e139f1630d4ce3 /yaml/network-policy.yaml |
init repo
Diffstat (limited to 'yaml/network-policy.yaml')
-rw-r--r-- | yaml/network-policy.yaml | 18 |
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 |