mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-21 15:30:19 +00:00
20 lines
345 B
YAML
20 lines
345 B
YAML
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
|
|
|