mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-28 01:01:12 +00:00
I will then expand this chapter to add examples showing how to isolate namespaces; but let's start with that.
15 lines
241 B
YAML
15 lines
241 B
YAML
kind: NetworkPolicy
|
|
apiVersion: networking.k8s.io/v1
|
|
metadata:
|
|
name: allow-testcurl-for-testweb
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
run: testweb
|
|
ingress:
|
|
- from:
|
|
- podSelector:
|
|
matchLabels:
|
|
run: testcurl
|
|
|