Skip to content
Snippets Groups Projects
Verified Commit da3b1f25 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(shared): Add egress network policy for postgres operator

parent dfc25e2d
No related branches found
No related tags found
No related merge requests found
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-to-database
spec:
policyTypes:
- Ingress
ingress:
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: nginx-system
podSelector:
matchLabels:
app.kubernetes.io/name: haproxy
ports:
- protocol: TCP
port: 80
- protocol: TCP
port: 443
- to:
podSelector:
matchLabels:
application: spilo
podSelector:
matchLabels:
application: spilo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment