Files
gitops-infra/environments/pubmedis/base/networkpolicy.yaml

21 lines
416 B
YAML

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: pubmedis-netpol
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: pubmedis
policyTypes:
- Ingress
- Egress
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: ingress-nginx
ports:
- port: 3000
protocol: TCP
egress:
- {}