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