cka-SVV/nwp-lesson15.yaml
Sander van Vugt 5d3eb9de8c new files
2021-01-14 15:24:53 +01:00

18 lines
336 B
YAML

kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: only-allow-from-busybox-secure-ns
namespace: default
spec:
podSelector:
matchLabels:
app: web
ingress:
- from:
- namespaceSelector:
matchLabels:
type: secure
podSelector:
matchLabels:
type: monitoring