Hands-on task
This task is step 20 of the course “Kubernetes: manifests from Namespace to RBAC”
k8s: NetworkPolicy
In /root/netpol.yaml there is a NetworkPolicy deny-ingress: right now it blocks all inbound traffic to app: db pods. Fix it: allow ingress only from pods labeled app: web. Edit the file in the Editor tab.
What you'll practise:
- kubernetes
- networkpolicy
- podselector
- yq
- yaml