add networkpolicies

This commit is contained in:
James Turland
2024-01-16 12:55:53 +00:00
parent f7f0357684
commit 567dbfe3c0
7 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: multi-port-egress
namespace: default
spec:
podSelector:
matchLabels:
role: db
policyTypes:
- Egress
egress:
- to:
- ipBlock:
cidr: 10.0.0.0/24
ports:
- protocol: TCP
port: 32000
endPort: 32768