menu_book Course Curriculum (Kubernetes) expand_more
Workloads
Containers & Probes
Configuration
Networking
Storage
Scheduling
Security
NetworkPolicy egress
Learn NetworkPolicy egress in Kubernetes with a dedicated explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Intermediate
kubernetes-031.yml
yaml
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata: {name: worker-egress}
spec:
podSelector: {matchLabels: {app: worker}}
policyTypes: [Egress]
egress:
- to: [{namespaceSelector: {matchLabels: {name: services}}}]
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content