mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 02:20:53 +00:00
14 lines
265 B
YAML
14 lines
265 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: nginx
|
|
spec:
|
|
podSelector:
|
|
matchExpressions:
|
|
- {key: app, operator: In, values: [test]}
|
|
ingress:
|
|
- from:
|
|
- podSelector:
|
|
matchLabels:
|
|
app: nginx
|