You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
prodwork01-mobene-deployment/templates/netpol_egress-postgres2prom...

22 lines
490 B
YAML

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: egress-postgres2prometheuspushgw
spec:
podSelector:
matchLabels:
cluster-name: postgres-cluster
egress:
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: monitoring
podSelector:
matchLabels:
app.kubernetes.io/instance: prometheus-pushgateway
ports:
- protocol: TCP
port: 9091
policyTypes:
- Egress