mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-25 01:10:22 +00:00
17 lines
No EOL
328 B
YAML
17 lines
No EOL
328 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: egress-namespaces
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app: myapp
|
|
policyTypes:
|
|
- Egress
|
|
egress:
|
|
- to:
|
|
- namespaceSelector:
|
|
matchExpressions:
|
|
- key: namespace
|
|
operator: In
|
|
values: ["frontend", "backend"] |