Skip to content

Commit

Permalink
Added network policy
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidOkulski committed Jan 8, 2025
1 parent 0e1a500 commit 18bbf3c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions helm/templates/allow-template-repo-to-patroni.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-template-repo-to-patroni
spec:
podSelector:
matchLabels:
app.kubernetes.io/instance: template-repo-patroni
app.kubernetes.io/name: patroni
policyTypes:
- Ingress
ingress:
- from:
- podSelector:
matchLabels:
app.kubernetes.io/name: template-repo-app
ports:
- protocol: TCP
port: 5432

0 comments on commit 18bbf3c

Please sign in to comment.