mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-21 23:40:19 +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"] |