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.
26 lines
531 B
YAML
26 lines
531 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: egress-pginstances2k8s
|
|
# netpol needed due to https://issues.arxes-tolina.de/browse/DEV-745
|
|
# allow connection against k8s-api server
|
|
spec:
|
|
egress:
|
|
- ports:
|
|
- port: 443
|
|
protocol: TCP
|
|
- port: 6443
|
|
protocol: TCP
|
|
to:
|
|
- ipBlock:
|
|
cidr: 10.3.0.2/32
|
|
- ipBlock:
|
|
cidr: 10.3.0.5/32
|
|
- ipBlock:
|
|
cidr: 10.3.0.6/32
|
|
podSelector:
|
|
matchLabels:
|
|
cluster-name: postgres-cluster
|
|
policyTypes:
|
|
- Egress
|